Comments (14)
You're missing the libexpat header files.
from node-expat.
Sorry ! :)
from node-expat.
Does anyone mind telling me the rpm
line for the distro? I'd like to add it to the README
file.
from node-expat.
how do I go about getting the libexpat header files somewhere that node-waf can see them?
from node-expat.
In my Fedora fc16 it was easy as: sudo yum install expat-devel
from node-expat.
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.
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.
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.
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.
... 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.
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.
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.
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.
yum install expat-devel
from node-expat.
Related Issues (20)
- Getting error in running a js file using xml2json in windows HOT 6
- Build Fails on Ubuntu 18.04 Node 12.3.1 HOT 9
- Memory leak and incorrect behavior of stop/resume HOT 3
- TypeError when I use it in a vue project! HOT 1
- node-expat cannot be imported in worker threads
- Robustness to control chars
- Node 14 update HOT 4
- Error with Java on Windows Server 12 HOT 1
- Build fails Linux Mint 20.1 Cinnamon HOT 1
- Stop() or Pause() emit "parser suspended" error then close ?
- Travis build is failing for Node.js version 16.13.0
- [CVE-2022-23852] of underlying libexpat HOT 4
- Cannot install on Windows 10 HOT 1
- How to solve 'ERR_DLOPEN_FAILED' with node_expat.node: Exec format error HOT 1
- Could not locate the bindings file node_expat.node [BUG]
- failed in npm install on nodejs 20 HOT 2
- Build failure on node v21.2.0 HOT 1
- Build failure on node v21.6.1 HOT 1
- Empty link?
- Build failure with node 22.2.0
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-expat.