Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

node-expat build error #60

Closed
tgyou opened this issue Jan 23, 2013 · 19 comments
Closed

node-expat build error #60

tgyou opened this issue Jan 23, 2013 · 19 comments

Comments

@tgyou
Copy link

tgyou commented Jan 23, 2013

Base system
CentOS 5.8 (Linux 2.6.18-308.4.1.el5)
Python 2.7.3

Node version
node-gyp 0.8.3
npm 1.2.2
node 0.8.7

RPM expat version
expat.i386-1.95.8-11.el5_8
expat.x86_64-1.95.8-11.el5_8
expat-devel.i386-1.95.8-11.el5_8
expat-devel.x86_64-1.95.8-11.el5_8

build error log

# npm -g install node-expat
npm http GET https://registry.npmjs.org/node-expat
npm http 304 https://registry.npmjs.org/node-expat

> node-expat@2.0.0 install /usr/local/node/lib/node_modules/node-expat
> node-gyp rebuild

make: Entering directory `/var/local/node/lib/node_modules/node-expat/build'
  CC(target) Release/obj.target/expat/deps/libexpat/lib/xmlparse.o
  CC(target) Release/obj.target/expat/deps/libexpat/lib/xmltok.o
  CC(target) Release/obj.target/expat/deps/libexpat/lib/xmlrole.o
  AR(target) Release/obj.target/deps/libexpat/libexpat.a
  CXX(target) Release/obj.target/node_expat/node-expat.o
  SOLINK_MODULE(target) Release/obj.target/node_expat.node
/usr/bin/ld:Release/obj.target/deps/libexpat/libexpat.a: file format not recognized; treating as linker script
/usr/bin/ld:Release/obj.target/deps/libexpat/libexpat.a:1: syntax error
collect2: ld returned 1 exit status
make: *** [Release/obj.target/node_expat.node] Error 1
make: Leaving directory `/var/local/node/lib/node_modules/node-expat/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/var/local/node/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:255:23)
gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:99:17)
gyp ERR! stack     at Process._handle.onexit (child_process.js:678:10)
gyp ERR! System Linux 2.6.18-308.4.1.el5
gyp ERR! command "node" "/var/local/node/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /var/local/node/lib/node_modules/node-expat
gyp ERR! node -v v0.8.17
gyp ERR! node-gyp -v v0.8.2
gyp ERR! not ok
npm ERR! node-expat@2.0.0 install: `node-gyp rebuild`
npm ERR! `sh "-c" "node-gyp rebuild"` failed with 1
npm ERR!
npm ERR! Failed at the node-expat@2.0.0 install script.
npm ERR! This is most likely a problem with the node-expat package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get their info via:
npm ERR!     npm owner ls node-expat
npm ERR! There is likely additional logging output above.

npm ERR! System Linux 2.6.18-308.4.1.el5
npm ERR! command "node" "/usr/local/node/bin/npm" "-g" "install" "node-expat"
npm ERR! cwd /root
npm ERR! node -v v0.8.17
npm ERR! npm -v 1.2.2
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /root/npm-debug.log
npm ERR! not ok code 0

please help...

@jimX11
Copy link

jimX11 commented Jan 29, 2013

I get a similar failure.

Maybe I'm causing the error. I'm just giving node.js a test spin and don't know my way around.

Base System
FreeBSD 9.1
Python 2.7.3

Node Version
node-gyp 0.8.3
npm 1.2.3
node 0.8.18

Expat version 2.0.1

build error log snippet:

gmake: Entering directory `/usr/home/jjm/src/node_modules/node-expat/build'
CC(target) Release/obj.target/expat/deps/libexpat/lib/xmlparse.o
CC(target) Release/obj.target/expat/deps/libexpat/lib/xmltok.o
CC(target) Release/obj.target/expat/deps/libexpat/lib/xmlrole.o
AR(target) Release/obj.target/deps/libexpat/libexpat.a
CXX(target) Release/obj.target/node_expat/node-expat.o
SOLINK_MODULE(target) Release/obj.target/node_expat.node
/usr/bin/ld:Release/obj.target/deps/libexpat/libexpat.a: file format not recognized; treating as linker script
/usr/bin/ld:Release/obj.target/deps/libexpat/libexpat.a:1: syntax error

@mfrobben
Copy link

mfrobben commented Feb 6, 2013

+1, different config on Mac OSX

ws@0.4.25 install /Users/mrobben/devproj/sold-backend/node_modules/socket.io-client/node_modules/ws
(node-gyp rebuild 2> builderror.log) || (exit 0)

gyp http GET http://nodejs.org/dist/v0.8.14/node-v0.8.14.tar.gz
gyp http GET http://nodejs.org/dist/v0.8.14/node-v0.8.14.tar.gz
gyp http 200 http://nodejs.org/dist/v0.8.14/node-v0.8.14.tar.gz
gyp http 200 http://nodejs.org/dist/v0.8.14/node-v0.8.14.tar.gz
CXX(target) Release/obj.target/bson/ext/bson.o
SOLINK_MODULE(target) Release/bson.node
SOLINK_MODULE(target) Release/bson.node: Finished
child process exited with code 0
CXX(target) Release/obj.target/bcrypt_lib/src/blowfish.o
CXX(target) Release/obj.target/bcrypt_lib/src/bcrypt.o
CXX(target) Release/obj.target/bcrypt_lib/src/bcrypt_node.o
SOLINK_MODULE(target) Release/bcrypt_lib.node
SOLINK_MODULE(target) Release/bcrypt_lib.node: Finished
gyp WARN install got an error, rolling back install
gyp ERR! configure error
gyp ERR! stack Error: unexpected eof
gyp ERR! stack at decorate (/usr/local/lib/node_modules/npm/node_modules/fstream/lib/abstract.js:67:36)
gyp ERR! stack at Extract.Abstract.error (/usr/local/lib/node_modules/npm/node_modules/fstream/lib/abstract.js:61:12)
gyp ERR! stack at Extract._streamEnd (/usr/local/lib/node_modules/npm/node_modules/tar/lib/extract.js:75:22)
gyp ERR! stack at BlockStream. (/usr/local/lib/node_modules/npm/node_modules/tar/lib/parse.js:50:8)
gyp ERR! stack at BlockStream.EventEmitter.emit (events.js:93:17)
gyp ERR! stack at BlockStream._emitChunk (/usr/local/lib/node_modules/npm/node_modules/block-stream/block-stream.js:203:10)
gyp ERR! stack at BlockStream.resume (/usr/local/lib/node_modules/npm/node_modules/block-stream/block-stream.js:58:15)
gyp ERR! stack at Extract.Reader.resume (/usr/local/lib/node_modules/npm/node_modules/fstream/lib/reader.js:252:34)
gyp ERR! stack at DirWriter.ondrain (stream.js:48:14)
gyp ERR! stack at DirWriter.EventEmitter.emit (events.js:93:17)
gyp ERR! System Darwin 12.2.1
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "build"
gyp ERR! cwd /Users/mrobben/devproj/sold-backend/node_modules/mongoose/node_modules/mongodb/node_modules/bson
gyp ERR! node -v v0.8.14
gyp ERR! node-gyp -v v0.7.1
gyp ERR! not ok
make: *** [node_gyp] Error 1
child process exited with code 2
python: can't open file '/Users/mrobben/.node-gyp/0.8.14/tools/gyp/gyp': [Errno 2] No such file or directory
gyp ERR! configure error
gyp ERR! stack Error: gyp failed with exit code: 2
gyp ERR! stack at ChildProcess.onCpExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:350:16)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:99:17)
gyp ERR! stack at Process._handle.onexit (child_process.js:678:10)
gyp ERR! System Darwin 12.2.1
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/mrobben/devproj/sold-backend/node_modules/xml2json/node_modules/node-expat
gyp ERR! node -v v0.8.14
gyp ERR! node-gyp -v v0.7.1
gyp ERR! not ok
npm ERR! node-expat@2.0.0 install: node-gyp rebuild
npm ERR! sh "-c" "node-gyp rebuild" failed with 1
npm ERR!
npm ERR! Failed at the node-expat@2.0.0 install script.
npm ERR! This is most likely a problem with the node-expat package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls node-expat
npm ERR! There is likely additional logging output above.

npm ERR! System Darwin 12.2.1
npm ERR! command "node" "/usr/local/bin/npm" "install"
npm ERR! cwd /Users/mrobben/devproj/sold-backend
npm ERR! node -v v0.8.14
npm ERR! npm -v 1.1.65
npm ERR! code ELIFECYCLE

@kahlow
Copy link

kahlow commented Feb 11, 2013

try running npm cache clean

@jimX11
Copy link

jimX11 commented Feb 12, 2013

after npm cache clean my node-gyp went from 0.8.3 to 0.8.4, but node-expat install failed with same type of "file format not recognized" message.

[ ~/src]$ npm install node-expat
npm WARN package.json application-name@0.0.1 No README.md file found!
npm http GET https://registry.npmjs.org/node-expat
npm http 200 https://registry.npmjs.org/node-expat
npm http GET https://registry.npmjs.org/node-expat/-/node-expat-2.0.0.tgz
npm http 200 https://registry.npmjs.org/node-expat/-/node-expat-2.0.0.tgz

> node-expat@2.0.0 install /usr/home/jim/src/node_modules/node-expat
> node-gyp rebuild

gmake: Entering directory `/usr/home/jim/src/node_modules/node-expat/build'
  CC(target) Release/obj.target/expat/deps/libexpat/lib/xmlparse.o
  CC(target) Release/obj.target/expat/deps/libexpat/lib/xmltok.o
  CC(target) Release/obj.target/expat/deps/libexpat/lib/xmlrole.o
  AR(target) Release/obj.target/deps/libexpat/libexpat.a
  CXX(target) Release/obj.target/node_expat/node-expat.o
  SOLINK_MODULE(target) Release/obj.target/node_expat.node
/usr/bin/ld:Release/obj.target/deps/libexpat/libexpat.a: file format not recognized; treating as linker script
/usr/bin/ld:Release/obj.target/deps/libexpat/libexpat.a:1: syntax error
gmake: *** [Release/obj.target/node_expat.node] Error 1
gmake: Leaving directory `/usr/home/jim/src/node_modules/node-expat/build'
gyp ERR! build error 
gyp ERR! stack Error: `gmake` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/home/jim/src/node_modules/node-gyp/lib/build.js:255:23)
gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:99:17)
gyp ERR! stack     at Process._handle.onexit (child_process.js:678:10)
gyp ERR! System FreeBSD 9.1-RELEASE
gyp ERR! command "node" "/usr/home/jim/src/node_modules/.bin/node-gyp" "rebuild"
gyp ERR! cwd /usr/home/jim/src/node_modules/node-expat
gyp ERR! node -v v0.8.18
gyp ERR! node-gyp -v v0.8.4
gyp ERR! not ok 
npm ERR! node-expat@2.0.0 install: `node-gyp rebuild`
npm ERR! `sh "-c" "node-gyp rebuild"` failed with 1
npm ERR! 
npm ERR! Failed at the node-expat@2.0.0 install script.
npm ERR! This is most likely a problem with the node-expat package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get their info via:
npm ERR!     npm owner ls node-expat
npm ERR! There is likely additional logging output above.

npm ERR! System FreeBSD 9.1-RELEASE
npm ERR! command "node" "/usr/local/bin/npm" "install" "node-expat"
npm ERR! cwd /usr/home/jim/src
npm ERR! node -v v0.8.18
npm ERR! npm -v 1.2.4
npm ERR! code ELIFECYCLE
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /usr/home/jim/src/npm-debug.log
npm ERR! not ok code 0

@astro
Copy link
Collaborator

astro commented Feb 17, 2013

Ping @TooTallNate (#48)

@TooTallNate
Copy link
Contributor

Can someone include the V=1 env variable so that we can see the commands being run?

@jimX11
Copy link

jimX11 commented Feb 19, 2013

Does this help you help me?

[jjm@nakamura ~/Jay/src]$ export v=1
[jjm@nakamura ~/Jay/src]$ npm -d install node-expat
npm info it worked if it ends with ok
npm info using npm@1.2.4
npm info using node@v0.8.20
npm info trying registry request attempt 1 at 21:16:22
npm http GET https://registry.npmjs.org/node-expat
npm http 304 https://registry.npmjs.org/node-expat
npm info install node-expat@2.0.0 into /usr/home/jjm/Jay/src
npm info installOne node-expat@2.0.0
npm info /usr/home/jjm/Jay/src/node_modules/node-expat unbuild
npm info preinstall node-expat@2.0.0
npm info build /usr/home/jjm/Jay/src/node_modules/node-expat
npm info linkStuff node-expat@2.0.0
npm info install node-expat@2.0.0

> node-expat@2.0.0 install /usr/home/jjm/Jay/src/node_modules/node-expat
> node-gyp rebuild

gyp info it worked if it ends with ok
gyp info using node-gyp@0.8.4
gyp info using node@0.8.20 | freebsd | x64
gyp info spawn python
gyp info spawn args [ '/usr/home/jjm/Jay/src/node_modules/node-gyp/gyp/gyp',
gyp info spawn args   'binding.gyp',
gyp info spawn args   '-f',
gyp info spawn args   'make',
gyp info spawn args   '-I',
gyp info spawn args   '/usr/home/jjm/Jay/src/node_modules/node-expat/build/config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/usr/home/jjm/Jay/src/node_modules/node-gyp/addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/home/jjm/.node-gyp/0.8.20/common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=/home/jjm/.node-gyp/0.8.20',
gyp info spawn args   '-Dmodule_root_dir=/usr/home/jjm/Jay/src/node_modules/node-expat',
gyp info spawn args   '--depth=.',
gyp info spawn args   '--generator-output',
gyp info spawn args   'build',
gyp info spawn args   '-Goutput_dir=.' ]
gyp gmake: Entering directory `/usr/home/jjm/Jay/src/node_modules/node-expat/build'
info spawn gmake
  CC(target) Release/obj.target/expat/deps/libexpat/lib/xmlparse.o
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
  CC(target) Release/obj.target/expat/deps/libexpat/lib/xmltok.o
  CC(target) Release/obj.target/expat/deps/libexpat/lib/xmlrole.o
  AR(target) Release/obj.target/deps/libexpat/libexpat.a
  CXX(target) Release/obj.target/node_expat/node-expat.o
  SOLINK_MODULE(target) Release/obj.target/node_expat.node
/usr/bin/ld:Release/obj.target/deps/libexpat/libexpat.a: file format not recognized; treating as linker script
/usr/bin/ld:Release/obj.target/deps/libexpat/libexpat.a:1: syntax error
gmake: *** [Release/obj.target/node_expat.node] Error 1
gmake: Leaving directory `/usr/home/jjm/Jay/src/node_modules/node-expat/build'
gyp ERR! build error
gyp ERR! stack Error: `gmake` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/home/jjm/Jay/src/node_modules/node-gyp/lib/build.js:255:23)
gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:99:17)
gyp ERR! stack     at Process._handle.onexit (child_process.js:678:10)
gyp ERR! System FreeBSD 9.1-RELEASE
gyp ERR! command "node" "/usr/home/jjm/Jay/src/node_modules/.bin/node-gyp" "rebuild"
gyp ERR! cwd /usr/home/jjm/Jay/src/node_modules/node-expat
gyp ERR! node -v v0.8.20
gyp ERR! node-gyp -v v0.8.4
gyp ERR! not ok 
npm info node-expat@2.0.0 Failed to exec install script
npm info /usr/home/jjm/Jay/src/node_modules/node-expat unbuild
npm info preuninstall node-expat@2.0.0
npm info uninstall node-expat@2.0.0
npm info postuninstall node-expat@2.0.0
npm ERR! node-expat@2.0.0 install: `node-gyp rebuild`
npm ERR! `sh "-c" "node-gyp rebuild"` failed with 1
npm ERR! 
npm ERR! Failed at the node-expat@2.0.0 install script.
npm ERR! This is most likely a problem with the node-expat package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get their info via:
npm ERR!     npm owner ls node-expat
npm ERR! There is likely additional logging output above.

npm ERR! System FreeBSD 9.1-RELEASE
npm ERR! command "node" "/usr/local/bin/npm" "-d" "install" "node-expat"
npm ERR! cwd /usr/home/jjm/Jay/src
npm ERR! node -v v0.8.20
npm ERR! npm -v 1.2.4
npm ERR! code ELIFECYCLE
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /usr/home/jjm/Jay/src/npm-debug.log
npm ERR! not ok code 0

@TooTallNate
Copy link
Contributor

It needs to be V=1, not v=1 (capitol V).

@jimX11
Copy link

jimX11 commented Feb 19, 2013

Sorry, I redo with V=1.

[jjm@rocky ~/src]$ export V=1
[jjm@rocky ~/src]$npm install -d node-expat
npm info it worked if it ends with ok
npm info using npm@1.2.4
npm info using node@v0.8.20
npm info trying registry request attempt 1 at 15:08:31
npm http GET https://registry.npmjs.org/node-expat
npm http 304 https://registry.npmjs.org/node-expat
npm info install node-expat@2.0.0 into /usr/home/jjm/src
npm info installOne node-expat@2.0.0
npm info /usr/home/jjm/src/node_modules/node-expat unbuild
npm info preinstall node-expat@2.0.0
npm info build /usr/home/jjm/src/node_modules/node-expat
npm info linkStuff node-expat@2.0.0
npm info install node-expat@2.0.0

> node-expat@2.0.0 install /usr/home/jjm/src/node_modules/node-expat
> node-gyp rebuild

gyp info it worked if it ends with ok
gyp info using node-gyp@0.8.4
gyp info using node@0.8.20 | freebsd | ia32
gyp info spawn python
gyp info spawn args [ '/usr/home/jjm/src/node_modules/node-gyp/gyp/gyp',
gyp info spawn args   'binding.gyp',
gyp info spawn args   '-f',
gyp info spawn args   'make',
gyp info spawn args   '-I',
gyp info spawn args   '/usr/home/jjm/src/node_modules/node-expat/build/config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/usr/home/jjm/src/node_modules/node-gyp/addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/home/jjm/.node-gyp/0.8.20/common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=/home/jjm/.node-gyp/0.8.20',
gyp info spawn args   '-Dmodule_root_dir=/usr/home/jjm/src/node_modules/node-expat',
gyp info spawn args   '--depth=.',
gyp info spawn args   '--generator-output',
gyp info spawn args   'build',
gyp info spawn args   '-Goutput_dir=.' ]
gypgmake: Entering directory `/usr/home/jjm/src/node_modules/node-expat/build'
 info spawn gmake
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
  cc '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DPIC' '-DHAVE_EXPAT_CONFIG_H' '-DNDEBUG' -I/home/jjm/.node-gyp/0.8.20/src -I/home/jjm/.node-gyp/0.8.20/deps/uv/include -I/home/jjm/.node-gyp/0.8.20/deps/v8/include -I../deps/libexpat -I../deps/libexpat/lib  -fPIC -Wall -pthread -m32 -O2 -fno-strict-aliasing -fno-tree-vrp -fno-tree-sink  -MMD -MF ./Release/.deps/Release/obj.target/expat/deps/libexpat/lib/xmlparse.o.d.raw  -c -o Release/obj.target/expat/deps/libexpat/lib/xmlparse.o ../deps/libexpat/lib/xmlparse.c
  cc '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DPIC' '-DHAVE_EXPAT_CONFIG_H' '-DNDEBUG' -I/home/jjm/.node-gyp/0.8.20/src -I/home/jjm/.node-gyp/0.8.20/deps/uv/include -I/home/jjm/.node-gyp/0.8.20/deps/v8/include -I../deps/libexpat -I../deps/libexpat/lib  -fPIC -Wall -pthread -m32 -O2 -fno-strict-aliasing -fno-tree-vrp -fno-tree-sink  -MMD -MF ./Release/.deps/Release/obj.target/expat/deps/libexpat/lib/xmltok.o.d.raw  -c -o Release/obj.target/expat/deps/libexpat/lib/xmltok.o ../deps/libexpat/lib/xmltok.c
  cc '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DPIC' '-DHAVE_EXPAT_CONFIG_H' '-DNDEBUG' -I/home/jjm/.node-gyp/0.8.20/src -I/home/jjm/.node-gyp/0.8.20/deps/uv/include -I/home/jjm/.node-gyp/0.8.20/deps/v8/include -I../deps/libexpat -I../deps/libexpat/lib  -fPIC -Wall -pthread -m32 -O2 -fno-strict-aliasing -fno-tree-vrp -fno-tree-sink  -MMD -MF ./Release/.deps/Release/obj.target/expat/deps/libexpat/lib/xmlrole.o.d.raw  -c -o Release/obj.target/expat/deps/libexpat/lib/xmlrole.o ../deps/libexpat/lib/xmlrole.c
  rm -f Release/obj.target/deps/libexpat/libexpat.a && ar crsT Release/obj.target/deps/libexpat/libexpat.a Release/obj.target/expat/deps/libexpat/lib/xmlparse.o Release/obj.target/expat/deps/libexpat/lib/xmltok.o Release/obj.target/expat/deps/libexpat/lib/xmlrole.o
  g++ '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DBUILDING_NODE_EXTENSION' -I/home/jjm/.node-gyp/0.8.20/src -I/home/jjm/.node-gyp/0.8.20/deps/uv/include -I/home/jjm/.node-gyp/0.8.20/deps/v8/include -I../deps/libexpat -I../deps/libexpat/lib  -fPIC -Wall -pthread -m32 -O2 -fno-strict-aliasing -fno-tree-vrp -fno-tree-sink -fno-rtti -fno-exceptions -MMD -MF ./Release/.deps/Release/obj.target/node_expat/node-expat.o.d.raw  -c -o Release/obj.target/node_expat/node-expat.o ../node-expat.cc
  lockf ./Release/linker.lock g++ -shared -pthread -rdynamic -m32  -Wl,-soname=node_expat.node -o Release/obj.target/node_expat.node -Wl,--start-group Release/obj.target/node_expat/node-expat.o Release/obj.target/deps/libexpat/libexpat.a -Wl,--end-group 
/usr/bin/ld:Release/obj.target/deps/libexpat/libexpat.a: file format not recognized; treating as linker script
/usr/bin/ld:Release/obj.target/deps/libexpat/libexpat.a:1: syntax error
gmake: *** [Release/obj.target/node_expat.node] Error 1
gmake: Leaving directory `/usr/home/jjm/src/node_modules/node-expat/build'
gyp ERR! build error 
gyp ERR! stack Error: `gmake` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/home/jjm/src/node_modules/node-gyp/lib/build.js:255:23)
gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:99:17)
gyp ERR! stack     at Process._handle.onexit (child_process.js:678:10)
gyp ERR! System FreeBSD 9.1-RELEASE
gyp ERR! command "node" "/usr/home/jjm/src/node_modules/.bin/node-gyp" "rebuild"
gyp ERR! cwd /usr/home/jjm/src/node_modules/node-expat
gyp ERR! node -v v0.8.20
gyp ERR! node-gyp -v v0.8.4
gyp ERR! not ok 
npm info node-expat@2.0.0 Failed to exec install script
npm info /usr/home/jjm/src/node_modules/node-expat unbuild
npm info preuninstall node-expat@2.0.0
npm info uninstall node-expat@2.0.0
npm info postuninstall node-expat@2.0.0
npm ERR! node-expat@2.0.0 install: `node-gyp rebuild`
npm ERR! `sh "-c" "node-gyp rebuild"` failed with 1
npm ERR! 
npm ERR! Failed at the node-expat@2.0.0 install script.
npm ERR! This is most likely a problem with the node-expat package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get their info via:
npm ERR!     npm owner ls node-expat
npm ERR! There is likely additional logging output above.

npm ERR! System FreeBSD 9.1-RELEASE
npm ERR! command "node" "/usr/local/bin/npm" "install" "-d" "node-expat"
npm ERR! cwd /usr/home/jjm/src
npm ERR! node -v v0.8.20
npm ERR! npm -v 1.2.4
npm ERR! code ELIFECYCLE
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /usr/home/jjm/src/npm-debug.log
npm ERR! not ok code 0

@jimX11
Copy link

jimX11 commented Feb 20, 2013

Maybe this is more helpful?

[jjm@rocky ~/src]$ export V=1
[jjm@rocky ~/src]$ node-gyp rebuild
gyp info it worked if it ends with ok
gyp info using node-gyp@0.8.4
gyp info using node@0.8.20 | freebsd | ia32
gyp info spawn python
gyp info spawn args [ '/usr/local/lib/node_modules/node-gyp/gyp/gyp',
gyp info spawn args   'binding.gyp',
gyp info spawn args   '-f',
gyp info spawn args   'make',
gyp info spawn args   '-I',
gyp info spawn args   '/usr/home/jjm/src/build/config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/usr/local/lib/node_modules/node-gyp/addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/home/jjm/.node-gyp/0.8.20/common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=/home/jjm/.node-gyp/0.8.20',
gyp info spawn args   '-Dmodule_root_dir=/usr/home/jjm/src',
gyp info spawn args   '--depth=.',
gyp info spawn args   '--generator-output',
gyp info spawn args   'build',
gyp info spawn args   '-Goutput_dir=.' ]
gyp: binding.gyp not found (cwd: /usr/home/jjm/src) while trying to load binding.gyp
gyp ERR! configure error 
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (/usr/local/lib/node_modules/node-gyp/lib/configure.js:416:16)
gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:99:17)
gyp ERR! stack     at Process._handle.onexit (child_process.js:678:10)
gyp ERR! System FreeBSD 9.1-RELEASE
gyp ERR! command "node" "/usr/local/bin/node-gyp" "rebuild"
gyp ERR! cwd /usr/home/jjm/src
gyp ERR! node -v v0.8.20
gyp ERR! node-gyp -v v0.8.4
gyp ERR! not ok

@jimX11
Copy link

jimX11 commented Mar 6, 2013

Same error using node 0.8.21, npm 1.2.12.

[jjm@rocky:~/src] export V=1 && npm -d install node-expat
npm info it worked if it ends with ok
npm info using npm@1.2.12
npm info using node@v0.8.21
npm info trying registry request attempt 1 at 10:27:14
npm http GET https://registry.npmjs.org/node-expat
npm http 304 https://registry.npmjs.org/node-expat
npm info install node-expat@2.0.0 into /usr/home/jjm/src
npm info installOne node-expat@2.0.0
npm info /usr/home/jjm/src/node_modules/node-expat unbuild
npm info preinstall node-expat@2.0.0
npm info build /usr/home/jjm/src/node_modules/node-expat
npm info linkStuff node-expat@2.0.0
npm info install node-expat@2.0.0

> node-expat@2.0.0 install /usr/home/jjm/src/node_modules/node-expat
> node-gyp rebuild

gyp info it worked if it ends with ok
gyp info using node-gyp@0.8.4
gyp info using node@0.8.21 | freebsd | ia32
gyp info spawn python
gyp info spawn args [ '/usr/home/jjm/src/node_modules/node-gyp/gyp/gyp',
gyp info spawn args   'binding.gyp',
gyp info spawn args   '-f',
gyp info spawn args   'make',
gyp info spawn args   '-I',
gyp info spawn args   '/usr/home/jjm/src/node_modules/node-expat/build/config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/usr/home/jjm/src/node_modules/node-gyp/addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/home/jjm/.node-gyp/0.8.21/common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=/home/jjm/.node-gyp/0.8.21',
gyp info spawn args   '-Dmodule_root_dir=/usr/home/jjm/src/node_modules/node-expat',
gyp info spawn args   '--depth=.',
gyp info spawn args   '--generator-output',
gyp info spawn args   'build',
gyp info spawn args   '-Goutput_dir=.' ]
gmake: Entering directory `/usr/home/jjm/src/node_modules/node-expat/build'
gyp  cc '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DPIC' '-DHAVE_EXPAT_CONFIG_H' '-DNDEBUG' -I/home/jjm/.node-gyp/0.8.21/src -I/home/jjm/.node-gyp/0.8.21/deps/uv/include -I/home/jjm/.node-gyp/0.8.21/deps/v8/include -I../deps/libexpat -I../deps/libexpat/lib  -fPIC -Wall -pthread -m32 -O2 -fno-strict-aliasing -fno-tree-vrp -fno-tree-sink  -MMD -MF ./Release/.deps/Release/obj.target/expat/deps/libexpat/lib/xmlparse.o.d.raw  -c -o Release/obj.target/expat/deps/libexpat/lib/xmlparse.o ../deps/libexpat/lib/xmlparse.c
 info spawn gmake
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
  cc '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DPIC' '-DHAVE_EXPAT_CONFIG_H' '-DNDEBUG' -I/home/jjm/.node-gyp/0.8.21/src -I/home/jjm/.node-gyp/0.8.21/deps/uv/include -I/home/jjm/.node-gyp/0.8.21/deps/v8/include -I../deps/libexpat -I../deps/libexpat/lib  -fPIC -Wall -pthread -m32 -O2 -fno-strict-aliasing -fno-tree-vrp -fno-tree-sink  -MMD -MF ./Release/.deps/Release/obj.target/expat/deps/libexpat/lib/xmltok.o.d.raw  -c -o Release/obj.target/expat/deps/libexpat/lib/xmltok.o ../deps/libexpat/lib/xmltok.c
  cc '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DPIC' '-DHAVE_EXPAT_CONFIG_H' '-DNDEBUG' -I/home/jjm/.node-gyp/0.8.21/src -I/home/jjm/.node-gyp/0.8.21/deps/uv/include -I/home/jjm/.node-gyp/0.8.21/deps/v8/include -I../deps/libexpat -I../deps/libexpat/lib  -fPIC -Wall -pthread -m32 -O2 -fno-strict-aliasing -fno-tree-vrp -fno-tree-sink  -MMD -MF ./Release/.deps/Release/obj.target/expat/deps/libexpat/lib/xmlrole.o.d.raw  -c -o Release/obj.target/expat/deps/libexpat/lib/xmlrole.o ../deps/libexpat/lib/xmlrole.c
  rm -f Release/obj.target/deps/libexpat/libexpat.a && ar crsT Release/obj.target/deps/libexpat/libexpat.a Release/obj.target/expat/deps/libexpat/lib/xmlparse.o Release/obj.target/expat/deps/libexpat/lib/xmltok.o Release/obj.target/expat/deps/libexpat/lib/xmlrole.o
  g++ '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DBUILDING_NODE_EXTENSION' -I/home/jjm/.node-gyp/0.8.21/src -I/home/jjm/.node-gyp/0.8.21/deps/uv/include -I/home/jjm/.node-gyp/0.8.21/deps/v8/include -I../deps/libexpat -I../deps/libexpat/lib  -fPIC -Wall -pthread -m32 -O2 -fno-strict-aliasing -fno-tree-vrp -fno-tree-sink -fno-rtti -fno-exceptions -MMD -MF ./Release/.deps/Release/obj.target/node_expat/node-expat.o.d.raw  -c -o Release/obj.target/node_expat/node-expat.o ../node-expat.cc
  lockf ./Release/linker.lock g++ -shared -pthread -rdynamic -m32  -Wl,-soname=node_expat.node -o Release/obj.target/node_expat.node -Wl,--start-group Release/obj.target/node_expat/node-expat.o Release/obj.target/deps/libexpat/libexpat.a -Wl,--end-group 
/usr/bin/ld:Release/obj.target/deps/libexpat/libexpat.a: file format not recognized; treating as linker script
/usr/bin/ld:Release/obj.target/deps/libexpat/libexpat.a:1: syntax error
gmake: *** [Release/obj.target/node_expat.node] Error 1
gmake: Leaving directory `/usr/home/jjm/src/node_modules/node-expat/build
gyp ERR! build error 
gyp ERR! stack Error: `gmake` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/home/jjm/src/node_modules/node-gyp/lib/build.js:255:23)
gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:99:17)
gyp ERR! stack     at Process._handle.onexit (child_process.js:678:10)
gyp ERR! System FreeBSD 9.1-RELEASE
gyp ERR! command "node" "/usr/home/jjm/src/node_modules/.bin/node-gyp" "rebuild"
gyp ERR! cwd /usr/home/jjm/src/node_modules/node-expat
gyp ERR! node -v v0.8.21
gyp ERR! node-gyp -v v0.8.4
gyp ERR! not ok 
npm info node-expat@2.0.0 Failed to exec install script
npm info /usr/home/jjm/src/node_modules/node-expat unbuild
npm info preuninstall node-expat@2.0.0
npm info uninstall node-expat@2.0.0
npm info postuninstall node-expat@2.0.0
npm ERR! node-expat@2.0.0 install: `node-gyp rebuild`
npm ERR! `sh "-c" "node-gyp rebuild"` failed with 1
npm ERR! 
npm ERR! Failed at the node-expat@2.0.0 install script.
npm ERR! This is most likely a problem with the node-expat package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get their info via:
npm ERR!     npm owner ls node-expat
npm ERR! There is likely additional logging output above.

npm ERR! System FreeBSD 9.1-RELEASE
npm ERR! command "node" "/usr/local/bin/npm" "-d" "install" "node-expat"
npm ERR! cwd /usr/home/jjm/src
npm ERR! node -v v0.8.21
npm ERR! npm -v 1.2.12
npm ERR! code ELIFECYCLE
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /usr/home/jjm/src/npm-debug.log
npm ERR! not ok code 0

@gromain
Copy link

gromain commented Apr 16, 2013

Hi,

Same problem here on an Odroid X2 running Linaro.
Here is the install log:

root@odroidx2:/opt/node#npm -g -ddd install node-expat
npm info it worked if it ends with ok
npm verb cli [ '/usr/local/bin/node',
npm verb cli   '/usr/local/bin/npm',
npm verb cli   '-g',
npm verb cli   '-ddd',
npm verb cli   'install',
npm verb cli   'node-expat' ]
npm info using npm@1.2.18
npm info using node@v0.11.1-pre
npm verb read json /usr/local/lib/package.json
npm verb read json /usr/local/lib/package.json
npm verb cache add [ 'node-expat', null ]
npm verb cache add name=undefined spec="node-expat" args=["node-expat",null]
npm verb parsed url { protocol: null,
npm verb parsed url   slashes: null,
npm verb parsed url   auth: null,
npm verb parsed url   host: null,
npm verb parsed url   port: null,
npm verb parsed url   hostname: null,
npm verb parsed url   hash: null,
npm verb parsed url   search: null,
npm verb parsed url   query: null,
npm verb parsed url   pathname: 'node-expat',
npm verb parsed url   path: 'node-expat',
npm verb parsed url   href: 'node-expat' }
npm sill lockFile b3f7a70b-node-expat node-expat
npm verb lock node-expat /root/.npm/b3f7a70b-node-expat.lock
npm sill lockFile b3f7a70b-node-expat node-expat
npm sill lockFile b3f7a70b-node-expat node-expat
npm verb addNamed [ 'node-expat', '' ]
npm verb addNamed [ null, '' ]
npm sill lockFile e847ba55-node-expat node-expat@
npm verb lock node-expat@ /root/.npm/e847ba55-node-expat.lock
npm sill addNameRange { name: 'node-expat', range: '', hasData: false }
npm verb url raw node-expat
npm verb url resolving [ 'https://registry.npmjs.org/', './node-expat' ]
npm verb url resolved https://registry.npmjs.org/node-expat
npm info trying registry request attempt 1 at 11:54:15
npm verb etag "B8RJ7CCXKECOB63K7437D8MT5"
npm http GET https://registry.npmjs.org/node-expat
npm http 304 https://registry.npmjs.org/node-expat
npm sill registry.get cb [ 304,
npm sill registry.get   { server: 'CouchDB/1.3.0 (Erlang OTP/R15B03)',
npm sill registry.get     etag: '"B8RJ7CCXKECOB63K7437D8MT5"',
npm sill registry.get     date: 'Tue, 16 Apr 2013 11:54:16 GMT',
npm sill registry.get     'content-length': '0' } ]
npm verb etag node-expat from cache
npm sill addNameRange number 2 { name: 'node-expat', range: '', hasData: true }
npm sill addNameRange versions [ 'node-expat',
npm sill addNameRange   [ '0.0.4',
npm sill addNameRange     '0.0.5',
npm sill addNameRange     '0.0.6',
npm sill addNameRange     '1.0.0',
npm sill addNameRange     '1.0.1',
npm sill addNameRange     '1.1.0',
npm sill addNameRange     '1.1.1',
npm sill addNameRange     '1.2.0',
npm sill addNameRange     '1.3.0',
npm sill addNameRange     '1.3.1',
npm sill addNameRange     '1.3.2',
npm sill addNameRange     '1.4.0',
npm sill addNameRange     '1.4.1',
npm sill addNameRange     '1.4.2',
npm sill addNameRange     '1.4.3',
npm sill addNameRange     '1.4.4',
npm sill addNameRange     '1.4.5',
npm sill addNameRange     '1.5.0',
npm sill addNameRange     '1.6.0',
npm sill addNameRange     '1.6.1',
npm sill addNameRange     '2.0.0' ] ]
npm verb addNamed [ 'node-expat', '2.0.0' ]
npm verb addNamed [ '2.0.0', '2.0.0' ]
npm sill lockFile 6c34ffd2-node-expat-2-0-0 node-expat@2.0.0
npm verb lock node-expat@2.0.0 /root/.npm/6c34ffd2-node-expat-2-0-0.lock
npm verb read json /root/.npm/node-expat/2.0.0/package/package.json
npm sill lockFile 6c34ffd2-node-expat-2-0-0 node-expat@2.0.0
npm sill lockFile 6c34ffd2-node-expat-2-0-0 node-expat@2.0.0
npm sill lockFile e847ba55-node-expat node-expat@
npm sill lockFile e847ba55-node-expat node-expat@
npm sill resolved [ { name: 'node-expat',
npm sill resolved     version: '2.0.0',
npm sill resolved     main: './lib/node-expat',
npm sill resolved     description: 'NodeJS binding for fast XML parsing.',
npm sill resolved     keywords: [ 'xml', 'sax', 'expat', 'libexpat', 'parse', 'parsing' ],
npm sill resolved     scripts: { test: 'vows --spec ./test.js', install: 'node-gyp rebuild' },
npm sill resolved     dependencies: {},
npm sill resolved     devDependencies: { vows: '>=0.5.12' },
npm sill resolved     repository: { type: 'git', path: 'git://github.com/astro/node-expat.git' },
npm sill resolved     homepage: 'http://github.com/astro/node-expat',
npm sill resolved     bugs: 'http://github.com/astro/node-expat/issues',
npm sill resolved     author:
npm sill resolved      { name: 'Astro',
npm sill resolved        email: 'astro@spaceboyz.net',
npm sill resolved        url: 'http://spaceboyz.net/~astro/' },
npm sill resolved     contributors:
npm sill resolved      [ [Object],
npm sill resolved        [Object],
npm sill resolved        [Object],
npm sill resolved        [Object],
npm sill resolved        [Object],
npm sill resolved        [Object],
npm sill resolved        [Object],
npm sill resolved        [Object],
npm sill resolved        [Object],
npm sill resolved        [Object],
npm sill resolved        [Object],
npm sill resolved        [Object] ],
npm sill resolved     licenses: [ [Object] ],
npm sill resolved     engines: { node: '>=0.4' },
npm sill resolved     gypfile: true,
npm sill resolved     readme: '# node-expat #\n\n## Motivation ##\n\nYou use [node.js](http://github.com/ry/node) for speed? You process\nXML streams? Then you want the fastest XML parser: [libexpat](http://expat.sourceforge.net/)!\n\n## Speed ##\n\nA stupid speed test is supplied in `bench.js`. We measure how many\n25-byte elements a SAX parser can process:\n\n- [node-xml](http://github.com/robrighter/node-xml) (pure JavaScript): 23,000 el/s\n- [libxmljs](http://github.com/polotek/libxmljs) (libxml2 binding): 77,000 el/s\n- [node-expat](http://github.com/astro/node-expat) (libexpat binding, this): 113,000 el/s\n\nThese numbers were recorded on a Core 2 2400 MHz.\n\n## Instructions ##\n\nInstall node-expat:\n\n    npm i node-expat\n\n## Usage ##\n\nImportant events emitted by a parser:\n\n- *startElement* with `name, attrs`\n- *endElement* with `name`\n- *text* with `string`\n\nThere are more. Use `test.js` for reference.\n\nIt\'s possible to stop and resume the parser from within element handlers using the parsers \nstop() and resume() methods.\n\n## Error handling ##\n\nWe don\'t emit an error event because libexpat doesn\'t use a callback\neither. Instead, check that `parse()` returns `true`. A descriptive\nstring can be obtained via `getError()` to provide user feedback.\n\nAlternatively, use the Parser like a node Stream. `write()` will emit\nerror events.\n\n## Namespace handling ##\n\nA word about special parsing of *xmlns:* this is not neccessary in a\nbare SAX parser like this, given that the DOM replacement you are\nusing (if any) is not relevant to the parser.\n',
npm sill resolved     readmeFilename: 'README.markdown',
npm sill resolved     _id: 'node-expat@2.0.0',
npm sill resolved     _from: 'node-expat@' } ]
npm info install node-expat@2.0.0 into /usr/local/lib
npm info installOne node-expat@2.0.0
npm verb from cache /root/.npm/node-expat/2.0.0/package/package.json
npm info /usr/local/lib/node_modules/node-expat unbuild
npm verb read json /usr/local/lib/node_modules/node-expat/package.json
npm verb tar unpack /root/.npm/node-expat/2.0.0/package.tgz
npm sill lockFile 81814a1c-ocal-lib-node-modules-node-expat /usr/local/lib/node_modules/node-expat
npm verb lock /usr/local/lib/node_modules/node-expat /root/.npm/81814a1c-ocal-lib-node-modules-node-expat.lock
npm sill lockFile 04e5837b-npm-node-expat-2-0-0-package-tgz /root/.npm/node-expat/2.0.0/package.tgz
npm verb lock /root/.npm/node-expat/2.0.0/package.tgz /root/.npm/04e5837b-npm-node-expat-2-0-0-package-tgz.lock
npm sill gunzTarPerm modes [ '755', '644' ]
npm sill gunzTarPerm extractEntry package.json
npm sill gunzTarPerm extractEntry .npmignore
npm sill gunzTarPerm extractEntry LICENSE
npm sill gunzTarPerm extractEntry bench.js
npm sill gunzTarPerm extractEntry test.js
npm sill gunzTarPerm extractEntry binding.gyp
npm sill gunzTarPerm extractEntry .travis.yml
npm sill gunzTarPerm extractEntry lib/node-expat.js
npm sill gunzTarPerm extractEntry node-expat.cc
npm sill gunzTarPerm extractEntry README.markdown
npm sill gunzTarPerm extractEntry test-mystic-library.xml
npm sill gunzTarPerm extractEntry deps/libexpat/README
npm sill gunzTarPerm extractEntry deps/libexpat/doc/expat.png
npm sill gunzTarPerm extractEntry deps/libexpat/doc/reference.html
npm sill gunzTarPerm extractEntry deps/libexpat/doc/style.css
npm sill gunzTarPerm extractEntry deps/libexpat/doc/valid-xhtml10.png
npm sill gunzTarPerm extractEntry deps/libexpat/doc/xmlwf.1
npm sill gunzTarPerm extractEntry deps/libexpat/doc/xmlwf.sgml
npm sill gunzTarPerm extractEntry deps/libexpat/COPYING
npm sill gunzTarPerm extractEntry deps/libexpat/Changes
npm sill gunzTarPerm extractEntry deps/libexpat/ConfigureChecks.cmake
npm sill gunzTarPerm extractEntry deps/libexpat/MANIFEST
npm sill gunzTarPerm extractEntry deps/libexpat/Makefile.in
npm sill gunzTarPerm extractEntry deps/libexpat/CMake.README
npm sill gunzTarPerm extractEntry deps/libexpat/aclocal.m4
npm sill gunzTarPerm extractEntry deps/libexpat/amiga/expat_68k_handler_stubs.c
npm sill gunzTarPerm extractEntry deps/libexpat/amiga/Makefile
npm sill gunzTarPerm extractEntry deps/libexpat/amiga/expat.xml
npm sill gunzTarPerm extractEntry deps/libexpat/amiga/expat_68k.c
npm sill gunzTarPerm extractEntry deps/libexpat/amiga/expat_68k.h
npm sill gunzTarPerm extractEntry deps/libexpat/amiga/README.txt
npm sill gunzTarPerm extractEntry deps/libexpat/amiga/expat_base.h
npm sill gunzTarPerm extractEntry deps/libexpat/amiga/expat_lib.c
npm sill gunzTarPerm extractEntry deps/libexpat/amiga/expat_vectors.c
npm sill gunzTarPerm extractEntry deps/libexpat/amiga/include/inline4/expat.h
npm sill gunzTarPerm extractEntry deps/libexpat/amiga/include/interfaces/expat.h
npm sill gunzTarPerm extractEntry deps/libexpat/amiga/include/libraries/expat.h
npm sill gunzTarPerm extractEntry deps/libexpat/amiga/include/proto/expat.h
npm sill gunzTarPerm extractEntry deps/libexpat/amiga/launch.c
npm sill gunzTarPerm extractEntry deps/libexpat/bcb5/expatw.mak
npm sill gunzTarPerm extractEntry deps/libexpat/bcb5/README.txt
npm sill gunzTarPerm extractEntry deps/libexpat/bcb5/elements.bpf
npm sill gunzTarPerm extractEntry deps/libexpat/bcb5/elements.bpr
npm sill gunzTarPerm extractEntry deps/libexpat/bcb5/elements.mak
npm sill gunzTarPerm extractEntry deps/libexpat/bcb5/expat.bpf
npm sill gunzTarPerm extractEntry deps/libexpat/bcb5/expat.bpr
npm sill gunzTarPerm extractEntry deps/libexpat/bcb5/expat.mak
npm sill gunzTarPerm extractEntry deps/libexpat/bcb5/expat_static.bpf
npm sill gunzTarPerm extractEntry deps/libexpat/bcb5/expat_static.bpr
npm sill gunzTarPerm extractEntry deps/libexpat/bcb5/expat_static.mak
npm sill gunzTarPerm extractEntry deps/libexpat/bcb5/expatw.bpf
npm sill gunzTarPerm extractEntry deps/libexpat/bcb5/expatw.bpr
npm sill gunzTarPerm extractEntry deps/libexpat/bcb5/all_projects.bpg
npm sill gunzTarPerm extractEntry deps/libexpat/bcb5/expatw_static.bpf
npm sill gunzTarPerm extractEntry deps/libexpat/bcb5/expatw_static.bpr
npm sill gunzTarPerm extractEntry deps/libexpat/bcb5/expatw_static.mak
npm sill gunzTarPerm extractEntry deps/libexpat/bcb5/libexpat_mtd.def
npm sill gunzTarPerm extractEntry deps/libexpat/bcb5/libexpatw_mtd.def
npm sill gunzTarPerm extractEntry deps/libexpat/bcb5/makefile.mak
npm sill gunzTarPerm extractEntry deps/libexpat/bcb5/outline.bpf
npm sill gunzTarPerm extractEntry deps/libexpat/bcb5/outline.bpr
npm sill gunzTarPerm extractEntry deps/libexpat/bcb5/outline.mak
npm sill gunzTarPerm extractEntry deps/libexpat/bcb5/setup.bat
npm sill gunzTarPerm extractEntry deps/libexpat/bcb5/xmlwf.bpf
npm sill gunzTarPerm extractEntry deps/libexpat/bcb5/xmlwf.bpr
npm sill gunzTarPerm extractEntry deps/libexpat/bcb5/xmlwf.mak
npm sill gunzTarPerm extractEntry deps/libexpat/configure
npm sill gunzTarPerm extractEntry deps/libexpat/configure.in
npm sill gunzTarPerm extractEntry deps/libexpat/conftools/PrintPath
npm sill gunzTarPerm extractEntry deps/libexpat/conftools/ac_c_bigendian_cross.m4
npm sill gunzTarPerm extractEntry deps/libexpat/conftools/config.guess
npm sill gunzTarPerm extractEntry deps/libexpat/conftools/config.sub
npm sill gunzTarPerm extractEntry deps/libexpat/conftools/expat.m4
npm sill gunzTarPerm extractEntry deps/libexpat/conftools/get-version.sh
npm sill gunzTarPerm extractEntry deps/libexpat/conftools/install-sh
npm sill gunzTarPerm extractEntry deps/libexpat/conftools/ltmain.sh
npm sill gunzTarPerm extractEntry deps/libexpat/conftools/mkinstalldirs
npm sill gunzTarPerm extractEntry deps/libexpat/CMakeLists.txt
npm sill gunzTarPerm extractEntry deps/libexpat/examples/elements.c
npm sill gunzTarPerm extractEntry deps/libexpat/examples/elements.dsp
npm sill gunzTarPerm extractEntry deps/libexpat/examples/outline.c
npm sill gunzTarPerm extractEntry deps/libexpat/examples/outline.dsp
npm sill gunzTarPerm extractEntry deps/libexpat/expat.dsw
npm sill gunzTarPerm extractEntry deps/libexpat/expat.pc.in
npm sill gunzTarPerm extractEntry deps/libexpat/expat_config.h
npm sill gunzTarPerm extractEntry deps/libexpat/expat_config.h.cmake
npm sill gunzTarPerm extractEntry deps/libexpat/expat_config.h.in
npm sill gunzTarPerm extractEntry deps/libexpat/lib/libexpat.def
npm sill gunzTarPerm extractEntry deps/libexpat/lib/Makefile.MPW
npm sill gunzTarPerm extractEntry deps/libexpat/lib/ascii.h
npm sill gunzTarPerm extractEntry deps/libexpat/lib/asciitab.h
npm sill gunzTarPerm extractEntry deps/libexpat/lib/expat.dsp
npm sill gunzTarPerm extractEntry deps/libexpat/lib/expat.h
npm sill gunzTarPerm extractEntry deps/libexpat/lib/expat_external.h
npm sill gunzTarPerm extractEntry deps/libexpat/lib/expat_static.dsp
npm sill gunzTarPerm extractEntry deps/libexpat/lib/expatw.dsp
npm sill gunzTarPerm extractEntry deps/libexpat/lib/expatw_static.dsp
npm sill gunzTarPerm extractEntry deps/libexpat/lib/iasciitab.h
npm sill gunzTarPerm extractEntry deps/libexpat/lib/internal.h
npm sill gunzTarPerm extractEntry deps/libexpat/lib/latin1tab.h
npm sill gunzTarPerm extractEntry deps/libexpat/lib/amigaconfig.h
npm sill gunzTarPerm extractEntry deps/libexpat/lib/libexpatw.def
npm sill gunzTarPerm extractEntry deps/libexpat/lib/macconfig.h
npm sill gunzTarPerm extractEntry deps/libexpat/lib/nametab.h
npm sill gunzTarPerm extractEntry deps/libexpat/lib/utf8tab.h
npm sill gunzTarPerm extractEntry deps/libexpat/lib/winconfig.h
npm sill gunzTarPerm extractEntry deps/libexpat/lib/xmlparse.c
npm sill gunzTarPerm extractEntry deps/libexpat/lib/xmlrole.c
npm sill gunzTarPerm extractEntry deps/libexpat/lib/xmlrole.h
npm sill gunzTarPerm extractEntry deps/libexpat/lib/xmltok.c
npm sill gunzTarPerm extractEntry deps/libexpat/lib/xmltok.h
npm sill gunzTarPerm extractEntry deps/libexpat/lib/xmltok_impl.c
npm sill gunzTarPerm extractEntry deps/libexpat/lib/xmltok_impl.h
npm sill gunzTarPerm extractEntry deps/libexpat/lib/xmltok_ns.c
npm sill gunzTarPerm extractEntry deps/libexpat/libexpat.gyp
npm sill gunzTarPerm extractEntry deps/libexpat/m4/libtool.m4
npm sill gunzTarPerm extractEntry deps/libexpat/m4/ltoptions.m4
npm sill gunzTarPerm extractEntry deps/libexpat/m4/ltsugar.m4
npm sill gunzTarPerm extractEntry deps/libexpat/m4/ltversion.m4
npm sill gunzTarPerm extractEntry deps/libexpat/m4/lt~obsolete.m4
npm sill gunzTarPerm extractEntry deps/libexpat/tests/README.txt
npm sill gunzTarPerm extractEntry deps/libexpat/tests/benchmark/README.txt
npm sill gunzTarPerm extractEntry deps/libexpat/tests/benchmark/benchmark.c
npm sill gunzTarPerm extractEntry deps/libexpat/tests/benchmark/benchmark.dsp
npm sill gunzTarPerm extractEntry deps/libexpat/tests/benchmark/benchmark.dsw
npm sill gunzTarPerm extractEntry deps/libexpat/tests/chardata.c
npm sill gunzTarPerm extractEntry deps/libexpat/tests/chardata.h
npm sill gunzTarPerm extractEntry deps/libexpat/tests/minicheck.c
npm sill gunzTarPerm extractEntry deps/libexpat/tests/minicheck.h
npm sill gunzTarPerm extractEntry deps/libexpat/tests/runtests.c
npm sill gunzTarPerm extractEntry deps/libexpat/tests/runtestspp.cpp
npm sill gunzTarPerm extractEntry deps/libexpat/tests/xmltest.sh
npm sill gunzTarPerm extractEntry deps/libexpat/version.c
npm sill gunzTarPerm extractEntry deps/libexpat/vms/README.vms
npm sill gunzTarPerm extractEntry deps/libexpat/vms/descrip.mms
npm sill gunzTarPerm extractEntry deps/libexpat/vms/expat_config.h
npm sill gunzTarPerm extractEntry deps/libexpat/win32/MANIFEST.txt
npm sill gunzTarPerm extractEntry deps/libexpat/win32/README.txt
npm sill gunzTarPerm extractEntry deps/libexpat/win32/expat.iss
npm sill gunzTarPerm extractEntry deps/libexpat/xmlwf/xmlfile.h
npm sill gunzTarPerm extractEntry deps/libexpat/xmlwf/codepage.c
npm sill gunzTarPerm extractEntry deps/libexpat/xmlwf/ct.c
npm sill gunzTarPerm extractEntry deps/libexpat/xmlwf/filemap.h
npm sill gunzTarPerm extractEntry deps/libexpat/xmlwf/readfilemap.c
npm sill gunzTarPerm extractEntry deps/libexpat/xmlwf/unixfilemap.c
npm sill gunzTarPerm extractEntry deps/libexpat/xmlwf/win32filemap.c
npm sill gunzTarPerm extractEntry deps/libexpat/xmlwf/xmlfile.c
npm sill gunzTarPerm extractEntry deps/libexpat/xmlwf/codepage.h
npm sill gunzTarPerm extractEntry deps/libexpat/xmlwf/xmlmime.c
npm sill gunzTarPerm extractEntry deps/libexpat/xmlwf/xmlmime.h
npm sill gunzTarPerm extractEntry deps/libexpat/xmlwf/xmltchar.h
npm sill gunzTarPerm extractEntry deps/libexpat/xmlwf/xmlurl.h
npm sill gunzTarPerm extractEntry deps/libexpat/xmlwf/xmlwf.c
npm sill gunzTarPerm extractEntry deps/libexpat/xmlwf/xmlwf.dsp
npm sill gunzTarPerm extractEntry deps/libexpat/xmlwf/xmlwin32url.cxx
npm verb read json /usr/local/lib/node_modules/node-expat/package.json
npm sill lockFile 81814a1c-ocal-lib-node-modules-node-expat /usr/local/lib/node_modules/node-expat
npm sill lockFile 81814a1c-ocal-lib-node-modules-node-expat /usr/local/lib/node_modules/node-expat
npm sill lockFile 04e5837b-npm-node-expat-2-0-0-package-tgz /root/.npm/node-expat/2.0.0/package.tgz
npm sill lockFile 04e5837b-npm-node-expat-2-0-0-package-tgz /root/.npm/node-expat/2.0.0/package.tgz
npm info preinstall node-expat@2.0.0
npm verb from cache /usr/local/lib/node_modules/node-expat/package.json
npm verb readDependencies using package.json deps
npm verb from cache /usr/local/lib/node_modules/node-expat/package.json
npm verb readDependencies using package.json deps
npm sill resolved []
npm verb about to build /usr/local/lib/node_modules/node-expat
npm info build /usr/local/lib/node_modules/node-expat
npm verb from cache /usr/local/lib/node_modules/node-expat/package.json
npm verb linkStuff [ true,
npm verb linkStuff   '/usr/local/lib/node_modules',
npm verb linkStuff   true,
npm verb linkStuff   '/usr/local/lib/node_modules' ]
npm info linkStuff node-expat@2.0.0
npm verb linkBins node-expat@2.0.0
npm verb linkMans node-expat@2.0.0
npm verb rebuildBundles node-expat@2.0.0
npm info install node-expat@2.0.0
npm verb unsafe-perm in lifecycle false

> node-expat@2.0.0 install /usr/local/lib/node_modules/node-expat
> node-gyp rebuild

npm verb set uid from=0 to=nobody
npm verb set uid from=0 to=65534
npm sill exec sh "-c" "node-gyp rebuild"
npm sill sh,-c,node-gyp rebuild,/usr/local/lib/node_modules/node-expat spawning
gyp info it worked if it ends with ok
gyp verb cli [ 'node',
gyp verb cli   '/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js',
gyp verb cli   'rebuild' ]
gyp info using node-gyp@0.9.5
gyp info using node@0.11.1-pre | linux | arm
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing "build" directory
gyp verb command configure []
gyp verb check python checking for Python executable "python" in the PATH
gyp verb `which` succeeded for `%s` python /usr/bin/python
gyp verb check python version `python -c "import platform; print(platform.python_version());"` returned: "2.7.3\n"
gyp verb get node dir no --target version specified, falling back to host node version: v0.11.1-pre
gyp verb command install [ 'v0.11.1-pre' ]
gyp verb install input version string "v0.11.1-pre"
gyp verb installing legacy version? false
gyp verb detected "pre" node version v0.11.1-pre
gyp ERR! configure error
gyp ERR! stack Error: "pre" versions of node cannot be installed, use the --nodedir flag instead
gyp ERR! stack     at install (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/install.js:69:16)
gyp ERR! stack     at Object.self.commands.(anonymous function) [as install] (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/node-gyp.js:56:37)
gyp ERR! stack     at getNodeDir (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:219:20)
gyp ERR! stack     at /usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:105:9
gyp ERR! stack     at ChildProcess.exithandler (child_process.js:630:7)
gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack     at maybeClose (child_process.js:730:16)
gyp ERR! stack     at Socket.<anonymous> (child_process.js:943:11)
gyp ERR! stack     at Socket.EventEmitter.emit (events.js:95:17)
gyp ERR! stack     at Pipe.close (net.js:451:12)
gyp ERR! System Linux 3.0.63-odroidx2
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/node-expat
gyp ERR! node -v v0.11.1-pre
gyp ERR! node-gyp -v v0.9.5
gyp ERR! not ok
npm info node-expat@2.0.0 Failed to exec install script
npm info /usr/local/lib/node_modules/node-expat unbuild
npm verb from cache /usr/local/lib/node_modules/node-expat/package.json
npm info preuninstall node-expat@2.0.0
npm info uninstall node-expat@2.0.0
npm verb true,/usr/local/lib/node_modules,/usr/local/lib/node_modules unbuild node-expat@2.0.0
npm info postuninstall node-expat@2.0.0
npm ERR! node-expat@2.0.0 install: `node-gyp rebuild`
npm ERR! `sh "-c" "node-gyp rebuild"` failed with 1
npm ERR!
npm ERR! Failed at the node-expat@2.0.0 install script.
npm ERR! This is most likely a problem with the node-expat package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get their info via:
npm ERR!     npm owner ls node-expat
npm ERR! There is likely additional logging output above.

npm ERR! System Linux 3.0.63-odroidx2
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "-g" "-ddd" "install" "node-expat"
npm ERR! cwd /opt/node
npm ERR! node -v v0.11.1-pre
npm ERR! npm -v 1.2.18
npm ERR! code ELIFECYCLE
npm verb exit [ 1, true ]
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /opt/node/npm-debug.log
npm ERR! not ok code 0
root@odroidx2:/opt/node# uname -a
Linux odroidx2 3.0.63-odroidx2 #4 SMP PREEMPT Fri Feb 15 19:48:45 KST 2013 armv7l armv7l armv7l GNU/Linux

Hope this helps

@javias
Copy link

javias commented Apr 25, 2013

facing the same issue in centos

@stewsnooze
Copy link

Have you made sure that you have the local libexpat dev files.

I got this error and then simply install the -dev package for libexpat for successingtons!

 aptitude install libexpat1-dev

@javias
Copy link

javias commented Apr 25, 2013

i don't have aptitude. With NPM, i get - 'libexpat1-dev' is not in the npm
registry.

On Thu, Apr 25, 2013 at 3:10 AM, Stewart Robinson
notifications@github.comwrote:

Have you made sure that you have the local libexpat dev files.

I got this error and then simply install the -dev package for libexpat for
successingtons!

aptitude install libexpat1-dev


Reply to this email directly or view it on GitHubhttps://github.com//issues/60#issuecomment-16998549
.

@stewsnooze
Copy link

how about
apt-get install libexpat1-dev

@vtambourine
Copy link

@stewsnooze, thank you a lot! This helped me on Ubuntu.

@lloydwatkin
Copy link
Contributor

@javias for you it'll be yum install libexpat. I'd suggest doing a yum search libexpat and installing relevant packages.

@sonnyp sonnyp closed this as completed Nov 19, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests