Git Product home page Git Product logo

Comments (14)

astro avatar astro commented on June 1, 2024

You're missing the libexpat header files.

from node-expat.

 avatar commented on June 1, 2024

Sorry ! :)

from node-expat.

astro avatar astro commented on June 1, 2024

Does anyone mind telling me the rpm line for the distro? I'd like to add it to the README file.

from node-expat.

lynns avatar lynns commented on June 1, 2024

how do I go about getting the libexpat header files somewhere that node-waf can see them?

from node-expat.

 avatar commented on June 1, 2024

In my Fedora fc16 it was easy as: sudo yum install expat-devel

from node-expat.

lynns avatar lynns commented on June 1, 2024

That worked great. Thanks so much.

On Mon, Dec 19, 2011 at 8:26 AM, Jakub Rรกฤek <
[email protected]

wrote:

In my Fedora fc16 it was easy as: sudo yum install expat-devel


Reply to this email directly or view it on GitHub:
#22 (comment)

from node-expat.

eanticev avatar eanticev commented on June 1, 2024

Can't get this to work on OSX.

So apparently the macports "expat-devel" is no longer available, and the "expat" port does install the .h file, but the npm install command still can't find it.

Anyone have any idea how to tell npm/node-waf where to look for the expat.h file?

from node-expat.

0x80 avatar 0x80 commented on June 1, 2024

Hi eanticev, I have the exact same problem it seems. It appeared when updating to node 0.8 and its version of npm 1.1.32.

Nothing changed in the way I have libexpat and its headers installed. Previous macports install of "expat" also installed the headers. And I can confirm there're available in the standard location /opt/local/include/expat.h.

Why can't npm / node-expat find it there or what can I do to check the paths where it does look?

from node-expat.

astro avatar astro commented on June 1, 2024

Ah great, since when is /opt/local a standard prefix? :-)

If you confirm the path we could modify wscript like in issue #38.

from node-expat.

0x80 avatar 0x80 commented on June 1, 2024

... since Macports is fairly common amongst OSX users :)

I would use Homebrew instead, which installs to /usr/local, but it can't handle universal binary well. With Macports it's easy to install universal binary. I need universal binary because node-expat (or node) seems to require a i386 build.

from node-expat.

eanticev avatar eanticev commented on June 1, 2024

Actually now that I've learned a bit more about the wscript, I figured this doesn't really need to be an update, most of us can add the "/opt/local/include" header path for OSX mac ports ourselves.

I added it to the "configure" set and it still wasn't found, so I just made it a non-mandatory check, and then it did install with npm. Basically I had to do this:
https://gist.github.com/2998471

However, it's not actually working - I think it's compiling with the wrong architecture.

I noticed this:
https://github.com/astro/node-expat/blob/master/tools/module.gyp#L59

How do I enable the x64 compilation in this case?

from node-expat.

tomerd avatar tomerd commented on June 1, 2024

first, thank you for coming up with this library!

as others mention, i too am having an issue on osx [snow leopard]. issue started after upgrading to node 8.0 from 6.15
in my case expat.h is installed correctly and found in /usr/include as expected by the wscript but node-expat (1.6) is not liking it. notice the error is "not installed " and not "not found" (Checking for header expat.h: not installed )

downgrading to 6.15 worked, so definitely something that changed since 6.15

from node-expat.

0x80 avatar 0x80 commented on June 1, 2024

Like eanticev said already I think it's more an issue of architecture than location of the header file. If you look in the configure log you see an error that expat is compiled for the wrong architecture. In the direct output from npm this results in the error "header expat.h: not installed".

from node-expat.

isnolan avatar isnolan commented on June 1, 2024

yum install expat-devel

from node-expat.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.