Installation Problems #10

Closed
JohnHardy opened this Issue Jan 25, 2012 · 1 comment

Comments

Projects
None yet
3 participants
@JohnHardy

Hey Guys,

When I try to install (fresh server) I get the following output:

root@s16009678:/home/john# npm install xml-stream -g
npm http GET https://registry.npmjs.org/xml-stream
npm http 304 https://registry.npmjs.org/xml-stream
npm http GET https://registry.npmjs.org/iconv
npm http GET https://registry.npmjs.org/node-expat
npm http 304 https://registry.npmjs.org/node-expat
npm http 304 https://registry.npmjs.org/iconv
npm WARN node-expat@1.3.2 dependencies field should be hash of <name>:<version-range> pairs
npm WARN node-expat@1.3.2 devDependencies field should be hash of <name>:<version-range> pairs

> node-expat@1.3.2 install /usr/lib/node_modules/xml-stream/node_modules/node-expat
> node-waf configure build

Checking for program g++ or c++          : /usr/bin/g++
Checking for program cpp                 : /usr/bin/cpp
Checking for program ar                  : /usr/bin/ar
Checking for program ranlib              : /usr/bin/ranlib
Checking for g++                         : ok
Checking for node path                   : ok /usr/lib/node_modules/
Checking for node prefix                 : ok /usr
'configure' finished successfully (0.020s)
Waf: Entering directory `/usr/lib/node_modules/xml-stream/node_modules/node-expat/build'
[1/2] cxx: node-expat.cc -> build/Release/node-expat_1.o
../node-expat.cc:3:25: error: node_events.h: No such file or directory
../node-expat.cc:17: error: expected class-name before â{â token
../node-expat.cc: In static member function âstatic void Parser::Initialize(v8::Handle<v8::Object>)â:
../node-expat.cc:24: error: âEventEmitterâ has not been declared
../node-expat.cc: In static member function âstatic v8::Handle<v8::Value> Parser::New(const v8::Arguments&)â:
../node-expat.cc:63: error: âclass Parserâ has no member named âWrapâ
../node-expat.cc: In constructor âParser::Parser(const XML_Char*)â:
../node-expat.cc:68: error: class âParserâ does not have any field named âEventEmitterâ
../node-expat.cc: In static member function âstatic void Parser::StartElement(void*, const XML_Char*, const XML_Char**)â:
../node-expat.cc:264: error: âclass Parserâ has no member named âEmitâ
../node-expat.cc: In static member function âstatic void Parser::EndElement(void*, const XML_Char*)â:
../node-expat.cc:274: error: âclass Parserâ has no member named âEmitâ
../node-expat.cc: In static member function âstatic void Parser::StartCdata(void*)â:
../node-expat.cc:283: error: âclass Parserâ has no member named âEmitâ
../node-expat.cc: In static member function âstatic void Parser::EndCdata(void*)â:
../node-expat.cc:292: error: âclass Parserâ has no member named âEmitâ
../node-expat.cc: In static member function âstatic void Parser::Text(void*, const XML_Char*, int)â:
../node-expat.cc:302: error: âclass Parserâ has no member named âEmitâ
../node-expat.cc: In static member function âstatic void Parser::ProcessingInstruction(void*, const XML_Char*, const XML_Char*)â:
../node-expat.cc:312: error: âclass Parserâ has no member named âEmitâ
../node-expat.cc: In static member function âstatic void Parser::Comment(void*, const XML_Char*)â:
../node-expat.cc:322: error: âclass Parserâ has no member named âEmitâ
../node-expat.cc: In static member function âstatic void Parser::XmlDecl(void*, const XML_Char*, const XML_Char*, int)â:
../node-expat.cc:335: error: âclass Parserâ has no member named âEmitâ
../node-expat.cc: In static member function âstatic void Parser::EntityDecl(void*, const XML_Char*, int, const XML_Char*, int, const XML_Char*, const XML_Char*, const XML_Char*, const XML_Char*)â:
../node-expat.cc:353: error: âclass Parserâ has no member named âEmitâ
Waf: Leaving directory `/usr/lib/node_modules/xml-stream/node_modules/node-expat/build'
Build failed:  -> task failed (err #1):
        {task: cxx node-expat.cc -> node-expat_1.o}
npm ERR! error installing node-expat@1.3.2
npm ERR! error installing xml-stream@0.4.0

npm ERR! node-expat@1.3.2 install: `node-waf configure build`
npm ERR! `sh "-c" "node-waf configure build"` failed with 1
npm ERR!
npm ERR! Failed at the node-expat@1.3.2 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-waf configure build
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!
npm ERR! System Linux 3.0.0-14-server
npm ERR! command "node" "/usr/bin/npm" "install" "xml-stream" "-g"
npm ERR! cwd /home/john
npm ERR! node -v v0.6.8
npm ERR! npm -v 1.1.0-2
npm ERR! code ELIFECYCLE
npm ERR! message node-expat@1.3.2 install: `node-waf configure build`
npm ERR! message `sh "-c" "node-waf configure build"` failed with 1
npm ERR! errno {}

npm ERR! Error: ENOENT, no such file or directory '/usr/lib/node_modules/xml-stream/node_modules/___iconv.npm/package/deps/libiconv/libcharset/tools/hpux-11.00'
npm ERR! You may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <npm-@googlegroups.com>
npm ERR!
npm ERR! System Linux 3.0.0-14-server
npm ERR! command "node" "/usr/bin/npm" "install" "xml-stream" "-g"
npm ERR! cwd /home/john
npm ERR! node -v v0.6.8
npm ERR! npm -v 1.1.0-2
npm ERR! path /usr/lib/node_modules/xml-stream/node_modules/___iconv.npm/package/deps/libiconv/libcharset/tools/hpux-11.00
npm ERR! fstream_path /usr/lib/node_modules/xml-stream/node_modules/___iconv.npm/package/deps/libiconv/libcharset/tools/hpux-11.00
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! message ENOENT, no such file or directory '/usr/lib/node_modules/xml-stream/node_modules/___iconv.npm/package/deps/libiconv/libcharset/tools/hpux-11.00'
npm ERR! errno {}
npm ERR! fstream_stack Object.oncomplete (/usr/lib/node_modules/npm/node_modules/fstream/lib/writer.js:204:26)
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /home/john/npm-debug.log
npm not ok

I figured it was something to do with node-expat so I installed the latest version of that:

root@s16009678:/home/john# npm install node-expat -g
npm http GET https://registry.npmjs.org/node-expat
npm http 304 https://registry.npmjs.org/node-expat

> node-expat@1.4.4 install /usr/lib/node_modules/node-expat
> node-waf configure build

Checking for program g++ or c++          : /usr/bin/g++
Checking for program cpp                 : /usr/bin/cpp
Checking for program ar                  : /usr/bin/ar
Checking for program ranlib              : /usr/bin/ranlib
Checking for g++                         : ok
Checking for node path                   : ok /usr/lib/node_modules/
Checking for node prefix                 : ok /usr
Checking for header expat.h              : yes
'configure' finished successfully (0.080s)
Waf: Entering directory `/usr/lib/node_modules/node-expat/build'
[1/2] cxx: node-expat.cc -> build/Release/node-expat_1.o
[2/2] cxx_link: build/Release/node-expat_1.o -> build/Release/node-expat.node
Waf: Leaving directory `/usr/lib/node_modules/node-expat/build'
'build' finished successfully (0.202s)
node-expat@1.4.4 /usr/lib/node_modules/node-expat

I think [2/2] being yellow means it has a warning.. but it all reports ok.

I tried npm install xml-stream again and it gave be the same warning as before.

This is my first experience with node, so I am probably missing something. Any chance you could help me get this working because I'm pretty confused?

Cheers,

John

@mattiasb

This comment has been minimized.

Show comment Hide comment
@mattiasb

mattiasb Feb 6, 2012

I'm experiencing this too. Bumping the node-expat dependency to ~1.4.0 solves the problem for me.

mattiasb commented Feb 6, 2012

I'm experiencing this too. Bumping the node-expat dependency to ~1.4.0 solves the problem for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment