xmppo / node-expat Goto Github PK
View Code? Open in Web Editor NEWlibexpat XML SAX parser binding for node.js
Home Page: https://github.com/xmppo/node-expat
License: MIT License
libexpat XML SAX parser binding for node.js
Home Page: https://github.com/xmppo/node-expat
License: MIT License
Owner@BATMAN ~ $ npm install node-expat -g > [email protected] install /usr/local/lib/node_modules/node-expat > ./install.sh 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 : not found Checking for node prefix : ok /usr/local 'configure' finished successfully (0.092s) Waf: Entering directory `/usr/local/lib/node_modules/node-expat/build' [1/2] cxx: node-expat.cc -> build/default/node-expat_1.o ../node-expat.cc:6:19: expat.h: No such file or directory ../node-expat.cc:63: error: expected`,' or `...' before '*' token ../node-expat.cc:64: error: ISO C++ forbids declaration of`XML_Char' with no type ../node-expat.cc:174: error: `XML_Char' has not been declared ../node-expat.cc:175: error: ISO C++ forbids declaration of`encoding' with no type ../node-expat.cc:193: error: ISO C++ forbids declaration of `XML_LChar' with no type ../node-expat.cc:193: error: expected`;' before '_' token ../node-expat.cc:200: error: expected `;' before "private" ../node-expat.cc:202: error:`XML_Parser' does not name a type ../node-expat.cc:211: error: expected `,' or`...' before '_' token ../node-expat.cc:212: error: ISO C++ forbids declaration of `XML_Char' with no type ../node-expat.cc:226: error: expected`,' or `...' before '*' token ../node-expat.cc:227: error: ISO C++ forbids declaration of`XML_Char' with no type ../node-expat.cc:254: error: expected `,' or`...' before '_' token ../node-expat.cc:255: error: ISO C++ forbids declaration of `XML_Char' with no type ../node-expat.cc:264: error: expected`,' or `...' before '_' token ../node-expat.cc:265: error: ISO C++ forbids declaration of `XML_Char' with no type ../node-expat.cc:274: error: expected`,' or `...' before '*' token ../node-expat.cc:275: error: ISO C++ forbids declaration of`XML_Char' with no type ../node-expat.cc:284: error: expected `,' or`...' before '_' token ../node-expat.cc:286: error: ISO C++ forbids declaration of `XML_Char' with no type ../node-expat.cc: In static member function`static v8::Handlev8::Value Parser::New(const v8::Arguments&)': ../node-expat.cc:49: error: `XML_Char' undeclared (first use this function) ../node-expat.cc:49: error: (Each undeclared identifier is reported only once for each function it appears in.) ../node-expat.cc:49: error: expected primary-expression before '=' token ../node-expat.cc:52: error: expected primary-expression before '=' token ../node-expat.cc:52: error:`XML_Char' has not been declared ../node-expat.cc:53: error: expected primary-expression before ',' token ../node-expat.cc:56: error: expected primary-expression before ')' token ../node-expat.cc:57: error: expected primary-expression before ')' token ../node-expat.cc:58: error: expected primary-expression before ';' token ../node-expat.cc: In constructor `Parser::Parser(int)': ../node-expat.cc:66: error:`parser' undeclared (first use this function) ../node-expat.cc:66: error: expected primary-expression before ')' token ../node-expat.cc:66: error: `XML_ParserCreate' undeclared (first use this function) ../node-expat.cc:69: error:`XML_SetUserData' undeclared (first use this function) ../node-expat.cc:70: error: `XML_SetElementHandler' undeclared (first use this function) ../node-expat.cc:71: error:`XML_SetCharacterDataHandler' undeclared (first use this function) ../node-expat.cc:72: error: `XML_SetCdataSectionHandler' undeclared (first use this function) ../node-expat.cc:73: error:`XML_SetProcessingInstructionHandler' undeclared (first use this function) ../node-expat.cc:74: error: `XML_SetCommentHandler' undeclared (first use this function) ../node-expat.cc:75: error:`XML_SetXmlDeclHandler' undeclared (first use this function) ../node-expat.cc: In destructor `virtual Parser::~Parser()': ../node-expat.cc:80: error:`parser' undeclared (first use this function) ../node-expat.cc:80: error: `XML_ParserFree' undeclared (first use this function) ../node-expat.cc: In member function`bool Parser::parseString(v8::String&, int)': ../node-expat.cc:132: error: `parser' undeclared (first use this function) ../node-expat.cc:132: error:`XML_GetBuffer' undeclared (first use this function) ../node-expat.cc:136: error: `XML_ParseBuffer' undeclared (first use this function) ../node-expat.cc:136: error:`XML_STATUS_ERROR' undeclared (first use this function) ../node-expat.cc: In member function `bool Parser::parseBuffer(v8::Local, int)': ../node-expat.cc:148: error:`parser' undeclared (first use this function) ../node-expat.cc:148: error: `XML_Parse' undeclared (first use this function) ../node-expat.cc:148: error:`XML_STATUS_ERROR' undeclared (first use this function) ../node-expat.cc: In static member function `static v8::Handle Parser::SetEncoding(const v8::Arguments&)': ../node-expat.cc:161: error:`XML_Char' undeclared (first use this function) ../node-expat.cc:161: error: expected primary-expression before '=' token ../node-expat.cc:161: error: `XML_Char' has not been declared ../node-expat.cc:162: error: expected primary-expression before ',' token ../node-expat.cc:164: error: expected primary-expression before ')' token ../node-expat.cc:166: error: expected primary-expression before ';' token ../node-expat.cc: In member function`int Parser::setEncoding(int_)': ../node-expat.cc:176: error: `parser' undeclared (first use this function) ../node-expat.cc:176: error:`XML_SetEncoding' undeclared (first use this function) ../node-expat.cc: In static member function `static v8::Handle Parser::GetError(const v8::Arguments&)': ../node-expat.cc:186: error: expected primary-expression before "const" ../node-expat.cc:186: error: expected`;' before "const" ../node-expat.cc:187: error: `error' undeclared (first use this function) ../node-expat.cc: In static member function`static void Parser::StartElement(void_, int)': ../node-expat.cc:217: error: expected primary-expression before "const" ../node-expat.cc:217: error: expected `;' before "const" ../node-expat.cc:217: error:`atts1' undeclared (first use this function) ../node-expat.cc:221: error: `name' undeclared (first use this function) ../node-expat.cc: In static member function`static void Parser::EndElement(void_, int)': ../node-expat.cc:231: error: `name' undeclared (first use this function) ../node-expat.cc: In static member function`static void Parser::Text(void_, int)': ../node-expat.cc:259: error: `s' undeclared (first use this function) ../node-expat.cc:259: error:`len' undeclared (first use this function) ../node-expat.cc: In static member function `static void Parser::ProcessingInstruction(void_, int)': ../node-expat.cc:269: error: `target' undeclared (first use this function) ../node-expat.cc:269: error:`data' undeclared (first use this function) ../node-expat.cc: In static member function `static void Parser::Comment(void*, int)': ../node-expat.cc:279: error:`data' undeclared (first use this function) ../node-expat.cc: In static member function `static void Parser::XmlDecl(void*, int)': ../node-expat.cc:290: error:`version' undeclared (first use this function) ../node-expat.cc:291: error: expected primary-expression before '?' token ../node-expat.cc:291: error: expected primary-expression before ')' token ../node-expat.cc:292: error: `standalone' undeclared (first use this function) Waf: Leaving directory`/usr/local/lib/node_modules/node-expat/build' Build failed: -> task failed (err #1): {task: cxx node-expat.cc -> node-expat_1.o} npm ERR! error installing [email protected] Error: [email protected] install: `./install.sh` npm ERR! error installing [email protected] `sh "-c" "./install.sh"` failed with 1 npm ERR! error installing [email protected] at ChildProcess. (/usr/local/lib/node_modules/npm/lib/utils/exec.js:49:20) npm ERR! error installing [email protected] at ChildProcess.emit (events.js:67:17) npm ERR! error installing [email protected] at ChildProcess.onexit (child_process.js:192:12) npm ERR! [email protected] install: `./install.sh` npm ERR! `sh "-c" "./install.sh"` failed with 1 npm ERR! npm ERR! Failed at the [email protected] 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! ./install.sh 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 CYGWIN_NT-5.1 1.7.9s(0.236/5/3) npm ERR! command "node" "/usr/local/bin/npm" "install" "node-expat" "-g" npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /cygdrive/c/Documents and Settings/Owner/npm-debug.log npm not ok
How do I get node-expat to parse ย and the like?
Thanks
I tried npm -install node-expat and I got the following errors:
Waf: Leaving directory /usr/local/lib/node/.npm/node-expat/1.3.0/package/build' Build failed: -> task failed (err #1): {task: cxx node-expat.cc -> node-expat_1.o} npm info [email protected] Failed to exec install script npm ERR! install failed Error: [email protected] install:
./install.sh npm ERR! install failed
sh "-c" "./install.sh"failed with 1 npm ERR! install failed at ChildProcess.<anonymous> (/usr/local/lib/node/.npm/npm/0.3.18/package/lib/utils/exec.js:49:20) npm ERR! install failed at ChildProcess.emit (events.js:67:17) npm ERR! install failed at ChildProcess.onexit (child_process.js:192:12) npm info install failed rollback npm info uninstall [ '[email protected]' ] npm info preuninstall [email protected] npm info uninstall [email protected] npm info auto-deactive not symlink npm info postuninstall [email protected] npm info uninstall [email protected] complete npm info install failed rolled back npm ERR! Error: [email protected] install:
./install.sh npm ERR!
sh "-c" "./install.sh"` failed with 1
npm ERR! at ChildProcess. (/usr/local/lib/node/.npm/npm/0.3.18/package/lib/utils/exec.js:49:20)
npm ERR! at ChildProcess.emit (events.js:67:17)
npm ERR! at ChildProcess.onexit (child_process.js:192:12)
npm ERR!
npm ERR! Failed at the [email protected] 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! ./install.sh
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.32-28-server
npm ERR! argv { remain: [ 'node-expat' ],
npm ERR! argv cooked: [ 'install', 'node-expat' ],
npm ERR! argv original: [ 'install', 'node-expat' ] }
npm not ok
any idea?
npm install soap
npm http GET https://registry.npmjs.org/soap
npm http 304 https://registry.npmjs.org/soap
npm http GET https://registry.npmjs.org/node-expat
npm http GET https://registry.npmjs.org/request
npm http 304 https://registry.npmjs.org/node-expat
npm http 304 https://registry.npmjs.org/request
[email protected] install /Users/test/test1/node_modules/soap/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 : not found
Checking for node prefix : ok /usr/local
Checking for header expat.h : not installed
/Users/test/test1/node_modules/soap/node_modules/node-expat/wscript:14: error: the configuration failed (see '/Users/test/test1/node_modules/soap/node_modules/node-expat/build/config.log')
npm ERR! [email protected] install: node-waf configure build
npm ERR! sh "-c" "node-waf configure build"
failed with 1
npm ERR!
npm ERR! Failed at the [email protected] 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! System Darwin 11.3.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "soap"
npm ERR! cwd /Users/test/test1
npm ERR! node -v v0.8.1
npm ERR! npm -v 1.1.33
npm ERR! code ELIFECYCLE
npm ERR! message [email protected] install: node-waf configure build
npm ERR! message sh "-c" "node-waf configure build"
failed with 1
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/test/test1/npm-debug.log
npm ERR! not ok code 0
Complete details of the issue found here: http://stackoverflow.com/questions/11327563/node-expat-causing-npm-to-fail-with-node-install-soap/11327664#comment14914111_11327664
I recently installed node and npm on my server and have been attempting to install your xml-stream lib (which looks great!)
However, following:
curl http://npmjs.org/install.sh | sh
npm update
npm install xml-stream
I get the error:
Waf: Leaving directory `/home/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 [email protected]
So I try node-expat on it's own to see if I can get some more info
npm install node-expat
npm http GET https://registry.npmjs.org/node-expat
npm http 304 https://registry.npmjs.org/node-expat
> [email protected] install /home/john/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 : not found
Checking for node prefix : ok /usr
Checking for header expat.h : yes
'configure' finished successfully (0.100s)
Waf: Entering directory `/home/stephan/programming/node-expat/build'
Waf: Leaving directory `/home/stephan/programming/node-expat/build'
'build' finished successfully (0.006s)
[email protected] ./node_modules/node-expat
So it reports that it works.. but actually it doesn't.
Xml-stream still does not install and I now have a new home directory for Stephan! ;-)
I'm pretty sure this isn't how it should happen. What am I missing?
Thanks,
John
John
Hello, I'm trying to use your parser with malformed html pages.
I've discoverred that when there are unwanted closing tags the parser will fail. Also when there are collapsed attributes declarations, it will fail. See both html examples :
<html>
<head>
<title>There's a title</title>
</head>
<body>
<div>
I'm the dark htmlord
</div>
</div> <!-- this will fail and stop the parser -->
</body>
</html>
Or this code :
<html>
<head>
<title>There's a title</title>
</head>
<body>
<div attr1="test"attr2="hello"> <!-- no space between attributes declaration -->
I'm the dark htmlord
</div>
</body>
</html>
Will your parser be ever able to parse some malformed html or is it designed to only accept valid xml/html ?
Thank you
I'm currently developing on a Windows 8 64-bit computer. I'm actually using node-xmpp to create a chat client, and running npm install node-xmpp
works. I created a file called index.js
that simply has:
var xmpp = require('node-xmpp');
console.log(xmpp);
Then I run node index.js
and it dumps the object as expected. However; the plan is to deliver this as desktop software utilizing the node-webkit library. That library uses the Chromium Embedded Framework (CEF), which is limited to using node on a 32-bit architecture. So, I downloaded the 32-bit version of node, put it in my path, and renamed it to node32.exe. When I run node32 index.js
, I get the following error:
module.js:485
process.dlopen(filename, module.exports);
^
Error: %1 is not a valid Win32 application.
C:\Users\Corey\Documents\workspace\tmp\node_modules\node-xmpp\node_modules\node-expat\build\Release\node_expat.node
at Object.Module._extensions..node (module.js:485:11)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:362:17)
at require (module.js:378:17)
at Object.<anonymous> (C:\Users\Corey\Documents\workspace\tmp\node_modules\node-xmpp\node_modules\node-expat\lib\nod
e-expat.js:4:13)
at Module._compile (module.js:449:26)
at Object.Module._extensions..js (module.js:467:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
I figured this was probably because my npm installation picked up the x64 architecture and compiled accordingly. So, I nuked the node_modules
directory and started from scratch. This time, I made copies of npm
and npm.cmd
as npm32
and npm32.cmd
, where I substituted node32.exe for node.exe. When I attempt to install this way, I get the following:
C:\Users\Corey\Documents\workspace\tmp>npm32 install node-xmpp
npm http GET https://registry.npmjs.org/node-xmpp
npm http 304 https://registry.npmjs.org/node-xmpp
npm http GET https://registry.npmjs.org/node-expat
npm http GET https://registry.npmjs.org/ltx
npm http 304 https://registry.npmjs.org/ltx
npm http 304 https://registry.npmjs.org/node-expat
npm http GET https://registry.npmjs.org/sax
npm http 304 https://registry.npmjs.org/sax
[email protected] install C:\Users\Corey\Documents\workspace\tmp\node_modules\node-xmpp\node_modules\node-expat
node-gyp rebuild
C:\Users\Corey\Documents\workspace\tmp\node_modules\node-xmpp\node_modules\node-expat>node "C:\Program Files\nodejs\node
_modules\npm\bin\node-gyp-bin....\node_modules\node-gyp\bin\node-gyp.js" rebuild
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
xmltok.c
xmlrole.c
xmlparse.c
......\deps\libexpat\lib\xmlparse.c(1844): warning C4244: 'return' : conversion from '__int64' to 'XML_Index', possible loss of data [C:\Users\Corey\Documents\workspace\tmp\node_modules\node-xmpp\node_modules\node-expat\build\deps\libexpat\expat.vcxproj]
expat.vcxproj -> C:\Users\Corey\Documents\workspace\tmp\node_modules\node-xmpp\node_modules\node-expat\build\Release
lib\libexpat.lib
node-expat.cc
..\node-expat.cc(165): warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data [C:\Users\C
orey\Documents\workspace\tmp\node_modules\node-xmpp\node_modules\node-expat\build\node_expat.vcxproj]
..\node-expat.cc(409): warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning) [C:\Users\C
orey\Documents\workspace\tmp\node_modules\node-xmpp\node_modules\node-expat\build\node_expat.vcxproj]
..\node-expat.cc(422): warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning) [C:\Users\C
orey\Documents\workspace\tmp\node_modules\node-xmpp\node_modules\node-expat\build\node_expat.vcxproj]
C:\Users\Corey.node-gyp\0.8.16\deps\v8\include\v8.h(183): warning C4506: no definition for inline function 'v8::Persis
tent v8::Persistent::New(v8::Handle)' [C:\Users\Corey\Documents\workspace\tmp\node_modules\node-xmpp\node_modu
les\node-expat\build\node_expat.vcxproj]
with
[
T=v8::Object
]
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppBuild.targets(1138,5): warning MSB8012: TargetExt(.
dll) does not match the Linker's OutputFile property value (.node). This may cause your project to build incorrectly. T
o correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specifi
ed in %(Link.OutputFile). [C:\Users\Corey\Documents\workspace\tmp\node_modules\node-xmpp\node_modules\node-expat\build\
node_expat.vcxproj]
Creating library C:\Users\Corey\Documents\workspace\tmp\node_modules\node-xmpp\node_modules\node-expat\build\Relea
se\node_expat.lib and object C:\Users\Corey\Documents\workspace\tmp\node_modules\node-xmpp\node_modules\node-expat\bu
ild\Release\node_expat.exp
Generating code
Finished generating code
node_expat.vcxproj -> C:\Users\Corey\Documents\workspace\tmp\node_modules\node-xmpp\node_modules\node-expat\build\Rel
ease\node_expat.node
[email protected] node_modules\node-xmpp
โโโ [email protected] ([email protected])
โโโ [email protected]
So, it builds with errors, but it builds. When I attempt to run node index.js
, it succeeds. When I run node32 index.js
, it throws the same error. So, clearly I'm missing something in building the node-expat module. Is the architecture something handled in node-expat, or is this more of a node-gyp issue?
Any thoughts on the matter are appreciated.
Hello, I am trying to install node-expat, but I got this error :/
~/Dev/ketchup (develop)โโก $ npm install node-expat
> [email protected] install /home/jakub/Dev/ketchup/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 : not found
Checking for node prefix : ok /usr/local
Checking for header expat.h : not installed
/home/jakub/Dev/ketchup/node_modules/node-expat/wscript:13: error: the configuration failed (see '/home/jakub/Dev/ketchup/node_modules/node-expat/build/config.log')
npm ERR! error installing [email protected] Error: [email protected] install: `node-waf configure build`
npm ERR! error installing [email protected] `sh "-c" "node-waf configure build"` failed with 1
npm ERR! error installing [email protected] at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/exec.js:49:20)
npm ERR! error installing [email protected] at ChildProcess.emit (events.js:70:17)
npm ERR! error installing [email protected] at maybeExit (child_process.js:359:16)
npm ERR! error installing [email protected] at Process.onexit (child_process.js:395:5)
npm ERR! [email protected] install: `node-waf configure build`
npm ERR! `sh "-c" "node-waf configure build"` failed with 1
npm ERR!
npm ERR! Failed at the [email protected] 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.1.2-1.fc16.x86_64
npm ERR! command "node" "/usr/local/bin/npm" "install" "node-expat"
npm ERR! cwd /home/jakub/Dev/ketchup
npm ERR! node -v v0.6.4-pre
npm ERR! npm -v 1.1.0-alpha-2
npm ERR! code ELIFECYCLE
npm ERR! message [email protected] install: `node-waf configure build`
npm ERR! message `sh "-c" "node-waf configure build"` failed with 1
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/jakub/Dev/ketchup/npm-debug.log
npm not ok
v1.4.1 dies with the below error:
~/node-expat[master]$ node test.js
node:/home/qbit/node-expat/build/Release/node-expat.node: undefined symbol 'ev_default_loop_ptr'
node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: Cannot find module '../build/default/node-expat'
at Function._resolveFilename (module.js:334:11)
at Function._load (module.js:279:25)
at Module.require (module.js:357:17)
at require (module.js:368:17)
at Object. (/home/qbit/node-expat/lib/node-expat.js:6:14)
at Module._compile (module.js:432:26)
at Object..js (module.js:450:10)
at Module.load (module.js:351:31)
at Function._load (module.js:310:12)
at Module.require (module.js:357:17)
Using node v0.6.7 .. also tried installing with npm.. same result.
It's kinda silly. But I am new to libexpat and find it lacks code examples from a bit of Googling, it would be very nice if you could include a code segment on how to create and parse XML elements. :)
andi@mesolt11:~/.node_libraries/node-expat$ node-waf configure
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 /home/andi/.node_libraries
Checking for node prefix : ok /usr/local
'configure' finished successfully (0.020s)
andi@mesolt11:~/.node_libraries/node-expat$ node-waf build
Waf: Entering directory `/home/andi/.node_libraries/node-expat/build'
[1/2] cxx: node-expat.cc -> build/default/node-expat_1.o
../node-expat.cc:5:19: error: expat.h: No such file or directory
../node-expat.cc:59: error: expected โ,โ or โ...โ before โ*โ token
../node-expat.cc:59: error: ISO C++ forbids declaration of โXML_Charโ with no type
../node-expat.cc:158: error: โXML_Charโ has not been declared
../node-expat.cc:177: error: ISO C++ forbids declaration of โXML_LCharโ with no type
../node-expat.cc:177: error: expected โ;โ before โ*โ token
../node-expat.cc:184: error: expected `;' before โprivateโ
../node-expat.cc:186: error: โXML_Parserโ does not name a type
../node-expat.cc:195: error: expected โ,โ or โ...โ before โ*โ token
../node-expat.cc:195: error: ISO C++ forbids declaration of โXML_Charโ with no type
../node-expat.cc:210: error: expected โ,โ or โ...โ before โ*โ token
../node-expat.cc:210: error: ISO C++ forbids declaration of โXML_Charโ with no type
../node-expat.cc:220: error: expected โ,โ or โ...โ before โ*โ token
../node-expat.cc:220: error: ISO C++ forbids declaration of โXML_Charโ with no type
../node-expat.cc:230: error: expected โ,โ or โ...โ before โ*โ token
../node-expat.cc:230: error: ISO C++ forbids declaration of โXML_Charโ with no type
../node-expat.cc:240: error: expected โ,โ or โ...โ before โ*โ token
../node-expat.cc:240: error: ISO C++ forbids declaration of โXML_Charโ with no type
../node-expat.cc:250: error: expected โ,โ or โ...โ before โ*โ token
../node-expat.cc:251: error: ISO C++ forbids declaration of โXML_Charโ with no type
../node-expat.cc: In static member function โstatic v8::Handle<v8::Value> Parser::New(const v8::Arguments&)โ:
../node-expat.cc:45: error: โXML_Charโ was not declared in this scope
../node-expat.cc:45: error: expected primary-expression before โ=โ token
../node-expat.cc:48: error: expected unqualified-id before โ=โ token
../node-expat.cc:49: error: expected primary-expression before โ,โ token
../node-expat.cc:52: error: expected primary-expression before โ)โ token
../node-expat.cc:53: error: expected primary-expression before โ)โ token
../node-expat.cc:54: error: expected primary-expression before โ;โ token
../node-expat.cc: In constructor โParser::Parser(int)โ:
../node-expat.cc:62: error: โparserโ was not declared in this scope
../node-expat.cc:62: error: expected primary-expression before โ)โ token
../node-expat.cc:62: error: โXML_ParserCreateโ was not declared in this scope
../node-expat.cc:65: error: โXML_SetUserDataโ was not declared in this scope
../node-expat.cc:66: error: โXML_SetElementHandlerโ was not declared in this scope
../node-expat.cc:67: error: โXML_SetCharacterDataHandlerโ was not declared in this scope
../node-expat.cc:68: error: โXML_SetProcessingInstructionHandlerโ was not declared in this scope
../node-expat.cc:69: error: โXML_SetCommentHandlerโ was not declared in this scope
../node-expat.cc:70: error: โXML_SetXmlDeclHandlerโ was not declared in this scope
../node-expat.cc: In destructor โvirtual Parser::~Parser()โ:
../node-expat.cc:75: error: โparserโ was not declared in this scope
../node-expat.cc:75: error: โXML_ParserFreeโ was not declared in this scope
../node-expat.cc: In member function โbool Parser::parseString(v8::String&, int)โ:
../node-expat.cc:123: error: โparserโ was not declared in this scope
../node-expat.cc:123: error: โXML_GetBufferโ was not declared in this scope
../node-expat.cc:127: error: โXML_ParseBufferโ was not declared in this scope
../node-expat.cc:127: error: โXML_STATUS_ERRORโ was not declared in this scope
../node-expat.cc: In member function โbool Parser::parseBuffer(node::Buffer&, int)โ:
../node-expat.cc:133: error: โparserโ was not declared in this scope
../node-expat.cc:133: error: โXML_Parseโ was not declared in this scope
../node-expat.cc:133: error: โXML_STATUS_ERRORโ was not declared in this scope
../node-expat.cc: In static member function โstatic v8::Handle<v8::Value> Parser::SetEncoding(const v8::Arguments&)โ:
../node-expat.cc:145: error: โXML_Charโ was not declared in this scope
../node-expat.cc:145: error: expected primary-expression before โ=โ token
../node-expat.cc:145: error: expected type-specifier before โXML_Charโ
../node-expat.cc:145: error: expected `;' before โXML_Charโ
../node-expat.cc:146: error: expected primary-expression before โ,โ token
../node-expat.cc:148: error: expected primary-expression before โ)โ token
../node-expat.cc:150: error: expected primary-expression before โ;โ token
../node-expat.cc: In member function โint Parser::setEncoding(int*)โ:
../node-expat.cc:160: error: โparserโ was not declared in this scope
../node-expat.cc:160: error: โXML_SetEncodingโ was not declared in this scope
../node-expat.cc: In static member function โstatic v8::Handle<v8::Value> Parser::GetError(const v8::Arguments&)โ:
../node-expat.cc:170: error: expected initializer before โ*โ token
../node-expat.cc:171: error: โerrorโ was not declared in this scope
../node-expat.cc: In static member function โstatic void Parser::StartElement(void*, int)โ:
../node-expat.cc:201: error: expected initializer before โ*โ token
../node-expat.cc:201: error: โatts1โ was not declared in this scope
../node-expat.cc:205: error: โnameโ was not declared in this scope
../node-expat.cc: In static member function โstatic void Parser::EndElement(void*, int)โ:
../node-expat.cc:215: error: โnameโ was not declared in this scope
../node-expat.cc: In static member function โstatic void Parser::Text(void*, int)โ:
../node-expat.cc:225: error: โsโ was not declared in this scope
../node-expat.cc:225: error: โlenโ was not declared in this scope
../node-expat.cc: In static member function โstatic void Parser::ProcessingInstruction(void*, int)โ:
../node-expat.cc:235: error: โtargetโ was not declared in this scope
../node-expat.cc:235: error: โdataโ was not declared in this scope
../node-expat.cc: In static member function โstatic void Parser::Comment(void*, int)โ:
../node-expat.cc:245: error: โdataโ was not declared in this scope
../node-expat.cc: In static member function โstatic void Parser::XmlDecl(void*, int)โ:
../node-expat.cc:256: error: โversionโ was not declared in this scope
../node-expat.cc:257: error: expected primary-expression before โ?โ token
../node-expat.cc:257: error: expected primary-expression before โ)โ token
../node-expat.cc:258: error: โstandaloneโ was not declared in this scope
Waf: Leaving directory `/home/andi/.node_libraries/node-expat/build'
Build failed: -> task failed (err #1):
{task: cxx node-expat.cc -> node-expat_1.o}
npm install
npm WARN package.json [email protected] 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[email protected] install /Users/rajar/success/git/test/node_modules/node-expat
node-gyp rebuild
CC(target) Release/obj.target/expat/deps/libexpat/lib/xmlparse.o
CC(target) Release/obj.target/expat/deps/libexpat/lib/xmltok.o
../deps/libexpat/lib/xmltok.c:471:1: warning: missing field 'isName2' initializer [-Wmissing-field-initializers]
};
^
../deps/libexpat/lib/xmltok.c:484:1: warning: missing field 'isName2' initializer [-Wmissing-field-initializers]
};
^
../deps/libexpat/lib/xmltok.c:504:1: warning: missing field 'isName2' initializer [-Wmissing-field-initializers]
};
^
../deps/libexpat/lib/xmltok.c:517:1: warning: missing field 'isName2' initializer [-Wmissing-field-initializers]
};
^
../deps/libexpat/lib/xmltok.c:730:1: warning: missing field 'isName2' initializer [-Wmissing-field-initializers]
};
^
../deps/libexpat/lib/xmltok.c:749:1: warning: missing field 'isName2' initializer [-Wmissing-field-initializers]
};
^
../deps/libexpat/lib/xmltok.c:762:1: warning: missing field 'isName2' initializer [-Wmissing-field-initializers]
};
^
../deps/libexpat/lib/xmltok.c:775:1: warning: missing field 'isName2' initializer [-Wmissing-field-initializers]
};
^
../deps/libexpat/lib/xmltok.c:871:1: warning: missing field 'isName2' initializer [-Wmissing-field-initializers]
};
^
../deps/libexpat/lib/xmltok.c:890:1: warning: missing field 'isName2' initializer [-Wmissing-field-initializers]
};
^
10 warnings generated.
CC(target) Release/obj.target/expat/deps/libexpat/lib/xmlrole.o
LIBTOOL-STATIC Release/libexpat.a
CXX(target) Release/obj.target/node_expat/node-expat.o
SOLINK_MODULE(target) Release/node_expat.node
SOLINK_MODULE(target) Release/node_expat.node: Finished
[email protected] node_modules/node-expat
When installing node-expat
, it doesn't check for the existence of the underlying C library (libexpat1-dev
on Debian/Ubuntu).
log appended
xxxx@ip-x-x-x-xxxx:/usr/local/jenkins/workspace/napi$ npm install node-expat
npm http GET https://registry.npmjs.org/node-expat
npm http 304 https://registry.npmjs.org/node-expat
> [email protected] install /usr/local/jenkins/ws-napi-dev-38/node_modules/node-expat
> node-gyp rebuild
make: Entering directory `/usr/local/jenkins/ws-napi-dev-38/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
In file included from ../deps/libexpat/lib/xmltok.c:700:0:
../deps/libexpat/lib/xmltok_impl.c: In function โlittle2_isPublicIdโ:
../deps/libexpat/lib/xmltok_impl.c:1377:5: internal compiler error: in set_jump_prob, at stmt.c:2319
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.5/README.Bugs> for instructions.
make: *** [Release/obj.target/expat/deps/libexpat/lib/xmltok.o] Error 1
make: Leaving directory `/usr/local/jenkins/ws-napi-dev-38/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 (/usr/lib/node_modules/node-gyp/lib/build.js:232: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.38-11-virtual
gyp ERR! command "node" "/usr/bin/node-gyp" "rebuild"
gyp ERR! cwd /usr/local/jenkins/ws-napi-dev-38/node_modules/node-expat
gyp ERR! node -v v0.8.14
gyp ERR! node-gyp -v v0.8.0
gyp ERR! not ok
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! `sh "-c" "node-gyp rebuild"` failed with 1
npm ERR!
npm ERR! Failed at the [email protected] 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.38-11-virtual
npm ERR! command "nodejs" "/usr/bin/npm" "install" "node-expat"
npm ERR! cwd /usr/local/jenkins/ws-napi-dev-38
npm ERR! node -v v0.8.14
npm ERR! npm -v 1.1.65
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /usr/local/jenkins/ws-napi-dev-38/npm-debug.log
npm ERR! not ok code 0
Hello,
I've no experience with node-gyp, any idea where to look for the error?
$ node-gyp rebuild
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | win32 | x64
gyp info spawn C:\Python27\python.exe
gyp info spawn args [ 'c:\Users\frederico.silva.node-gyp\0.8.11\tools\gyp\gyp',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'msvs',
gyp info spawn args '-G',
gyp info spawn args 'msvs_version=2010',
gyp info spawn args '-I',
gyp info spawn args 'C:\Users\frederico.silva\Documents\GitHub\node-expat\build\config.gypi',
gyp info spawn args '-I',
gyp info spawn args 'c:\Users\frederico.silva\AppData\Roaming\npm\node_modules\node-gyp\addon.gypi',
gyp info spawn args '-I',
gyp info spawn args 'c:\Users\frederico.silva.node-gyp\0.8.11\common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=c:\Users\frederico.silva.node-gyp\0.8.11',
gyp info spawn args '-Dmodule_root_dir=C:\Users\frederico.silva\Documents\GitHub\node-expat',
gyp info spawn args '--depth=.',
gyp info spawn args '--generator-output',
gyp info spawn args 'C:\Users\frederico.silva\Documents\GitHub\node-expat\build',
gyp info spawn args '-Goutput_dir=.' ]
gyp info spawn C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe
gyp info spawn args [ 'build/binding.sln',
gyp info spawn args '/clp:Verbosity=minimal',
gyp info spawn args '/nologo',
gyp info spawn args '/property:TargetExt=.node',
gyp info spawn args '/p:Configuration=Release;Platform=x64' ]
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.Cpp.InvalidPlatform.Targets(23,7): error MSB8007: The Platform for project 'expat.vcxproj' is invalid. Platform='x64'. You may be seeing this message because you are trying to build a project without a solution file, and have specified a non-default Platform that doesn't exist for this project. [C:\Users\frederico.silva\Documents\GitHub\node-expat\build\deps\libexpat\expat.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe
failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (c:\Users\frederico.silva\AppData\Roaming\npm\node_modules\node-gyp\lib\build.js:236:23)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:96:17)
gyp ERR! stack at Process._handle.onexit (child_process.js:678:10)
gyp ERR! System Windows_NT 6.2.9200
gyp ERR! command "c:\Program Files\nodejs\node.exe" "c:\Users\frederico.silva\AppData\Roaming\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\frederico.silva\Documents\GitHub\node-expat
gyp ERR! node -v v0.8.11
gyp ERR! node-gyp -v v0.7.1
gyp ERR! not ok
Thank you.
When I try to install node-expat on my machine, I keep getting a WindowsSDKDir error. I do have the Windows 7 SDK installed, as well as Python (Python variable is set and working since it previously gave me Python problems lol). I'm not sure what the problem is. It could be a node-gyp issue, but it only happens when I install node-expat. I can install (or re-install, perhaps) node-gyp without any issue.
Going by what I can understand from the output log, it seems to be that it can't find the WindowsSDKDir variable in the registry. However, I can find it in RegEdit. I've even tried changing the variable to the Windows 7 SDK directory (C:\Program Files\Microsoft SDKs\v7.1\ or something) instead of what it originally was (C:\Program Files (x86)\Microsoft SDKs\v7.0A). Could the problem be that I have VS2012 not VS2010 installed?
Thanks in advance for any help!
Log appended:
C:\Program Files (x86)\nodejs>npm install node-expat
npm http GET https://registry.npmjs.org/node-expat
npm http 304 https://registry.npmjs.org/node-expat
> [email protected] install C:\Program Files (x86)\nodejs\node_modules\node-expat
> node-gyp rebuild
C:\Program Files (x86)\nodejs\node_modules\node-expat>node "C:\Program Files (x8
6)\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\nod
e-gyp.js" rebuild
Building the projects in this solution one at a time. To enable parallel build,
please add the "/m" switch.
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(29
7,5): warning MSB8003: Could not find WindowsSDKDir variable from the registry.
TargetFrameworkVersion or PlatformToolset may be set to an invalid version nu
mber. [C:\Program Files (x86)\nodejs\node_modules\node-expat\build\deps\libexpa
t\expat.vcxproj]
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\Win32\Microsoft.Cpp
.Win32.targets(147,5): error MSB6006: "CL.exe" exited with code -1073741515. [C
:\Program Files (x86)\nodejs\node_modules\node-expat\build\deps\libexpat\expat.
vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe
` failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Program Files (x86)\nodejs\node_mo
dules\npm\node_modules\node-gyp\lib\build.js:236: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 Windows_NT 6.1.7601
gyp ERR! command "node" "C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\nod
e_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Program Files (x86)\nodejs\node_modules\node-expat
gyp ERR! node -v v0.8.15
gyp ERR! node-gyp -v v0.7.1
gyp ERR! not ok
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! `cmd "/c" "node-gyp rebuild"` failed with 1
npm ERR!
npm ERR! Failed at the [email protected] 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 Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files (x86)\\nodejs\\\\node.exe" "C:\\Program File
s (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "node-expat"
npm ERR! cwd C:\Program Files (x86)\nodejs
npm ERR! node -v v0.8.15
npm ERR! npm -v 1.1.66
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! C:\Program Files (x86)\nodejs\npm-debug.log
npm ERR! not ok code 0
I tried to solve my problem by looking at similar issues... but I can't find a solution to this problem. Any thoughts? I was trying install node-xmpp-bosh but was told that node-expat fails.
C:\Users\shawnlim\Documents\Websites\nodeprojects\fb-chat>npm install node-xmpp-
bosh
npm WARN package.json [email protected] No README.md file found!
npm http GET https://registry.npmjs.org/node-xmpp-bosh
npm http 304 https://registry.npmjs.org/node-xmpp-bosh
npm http GET https://registry.npmjs.org/node-expat
npm http GET https://registry.npmjs.org/ltx
npm http GET https://registry.npmjs.org/ws
npm http GET https://registry.npmjs.org/tav
npm http GET https://registry.npmjs.org/semver
npm http GET https://registry.npmjs.org/dns-srv
npm http GET https://registry.npmjs.org/node-uuid
npm http GET https://registry.npmjs.org/underscore
npm http GET https://registry.npmjs.org/eventpipe
npm http GET https://registry.npmjs.org/log4js
npm http 304 https://registry.npmjs.org/ws
npm http 304 https://registry.npmjs.org/tav
npm http 304 https://registry.npmjs.org/semver
npm http 304 https://registry.npmjs.org/ltx
npm http 304 https://registry.npmjs.org/dns-srv
npm WARN package.json [email protected] No README.md file found!
npm http 304 https://registry.npmjs.org/node-uuid
npm http 304 https://registry.npmjs.org/underscore
npm http 304 https://registry.npmjs.org/eventpipe
npm http 304 https://registry.npmjs.org/log4js
npm http 304 https://registry.npmjs.org/node-expat
[email protected] install C:\Users\shawnlim\Documents\Websites\nodeprojects\fb-
chat\node_modules\node-xmpp-bosh\node_modules\node-expat
node-gyp rebuild
npm
C:\Users\shawnlim\Documents\Websites\nodeprojects\fb-chat\node_modules\node-xmpp
-bosh\node_modules\node-expat>node "C:\Program Files\nodejs\node_modules\npm\bin
\node-gyp-bin....\node_modules\node-gyp\bin\node-gyp.js" rebuild
http GET https://registry.npmjs.org/commander
npm http GET https://registry.npmjs.org/tinycolor
npm http GET https://registry.npmjs.org/options
npm http GET https://registry.npmjs.org/async/0.1.15
npm http 304 https://registry.npmjs.org/options
npm http 304 https://registry.npmjs.org/commander
npm http 304 https://registry.npmjs.org/tinycolor
npm http 304 https://registry.npmjs.org/async/0.1.15
[email protected] install C:\Users\shawnlim\Documents\Websites\nodeprojects\fb-chat\no
de_modules\node-xmpp-bosh\node_modules\ws
node install.js
node-expat.cc
[ws v0.4.22] Attempting to compile blazing fast native extensions.
..\node-expat.cc(6): fatal error C1083: Cannot open include file: 'expat.h': No
such file or directory [C:\Users\shawnlim\Documents\Websites\nodeprojects\fb-c
hat\node_modules\node-xmpp-bosh\node_modules\node-expat\build\node_expat.vcxpro
j]
gyp ERR! build error
gyp ERR! stack Error: C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe
failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Program Files\nodejs\node_modules
npm\node_modules\node-gyp\lib\build.js:219:23)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:96:17)
gyp ERR! stack at Process._handle.onexit (child_process.js:678:10)
gyp ERR! System Windows_NT 6.1.7600
gyp ERR! command "node" "C:\Program Files\nodejs\node_modules\npm\node_modu
les\node-gyp\bin\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\shawnlim\Documents\Websites\nodeprojects\fb-chat\node_modu
les\node-xmpp-bosh\node_modules\node-expat
gyp ERR! node -v v0.8.11
gyp ERR! node-gyp -v v0.6.11
gyp ERR! not ok
[ws v0.4.22] Native code compile failed (but the module will still work):
[ws v0.4.22] The native extensions are faster, but not required.
[ws v0.4.22] On Windows, native extensions require Visual Studio and Python.
[ws v0.4.22] On Unix, native extensions require Python, make and a C++ compiler.
[ws v0.4.22] Start npm with --ws:verbose to show compilation output (if any).
npm ERR! [email protected] install: node-gyp rebuild
npm ERR! cmd "/c" "node-gyp rebuild"
failed with 1
npm ERR!
npm ERR! Failed at the [email protected] 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 Windows_NT 6.1.7600
npm ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nod
ejs\node_modules\npm\bin\npm-cli.js" "install" "node-xmpp-bosh"
npm ERR! cwd C:\Users\shawnlim\Documents\Websites\nodeprojects\fb-chat
npm ERR! node -v v0.8.11
npm ERR! npm -v 1.1.62
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! C:\Users\shawnlim\Documents\Websites\nodeprojects\fb-chat\npm-debug
.log
npm ERR! not ok code 0
npm ERR! System Linux 3.0.0-12-generic
npm ERR! command "node" "/usr/local/bin/npm" "install" "node-expat"
npm ERR! cwd /mnt/hgfs/
npm ERR! node -v v0.6.5
npm ERR! npm -v 1.1.0-alpha-6
npm ERR! code ELIFECYCLE
npm ERR! message [email protected] install: node-waf configure build
npm ERR! message sh "-c" "node-waf configure build"
failed with 1
npm WARN [email protected] dependencies field should be hash of : pairs
npm WARN [email protected] devDependencies field should be hash of : pairs
matt@matt-VirtualBox:~/mainline/HuTerra-Website$ npm install node-expat
npm http GET https://registry.npmjs.org/node-expat
npm http 304 https://registry.npmjs.org/node-expat
[email protected] install /home/matt/mainline/HuTerra-Website/node_modules/node-expat
node-gyp rebuild
make: Entering directory /home/matt/mainline/HuTerra-Website/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 In file included from ../deps/libexpat/lib/xmltok.c:700:0: ../deps/libexpat/lib/xmltok_impl.c: In function โlittle2_isPublicIdโ: ../deps/libexpat/lib/xmltok_impl.c:1377:5: internal compiler error: in set_jump_prob, at stmt.c:2319 Please submit a full bug report, with preprocessed source if appropriate. See <file:///usr/share/doc/gcc-4.5/README.Bugs> for instructions. make: *** [Release/obj.target/expat/deps/libexpat/lib/xmltok.o] Error 1 make: Leaving directory
/home/matt/mainline/HuTerra-Website/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 (/home/matt/mainline/nvm/v0.8.14/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:236: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.38-16-generic
gyp ERR! command "node" "/home/matt/mainline/nvm/v0.8.14/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/matt/mainline/HuTerra-Website/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! [email protected] install: node-gyp rebuild
npm ERR! sh "-c" "node-gyp rebuild"
failed with 1
npm ERR!
npm ERR! Failed at the [email protected] 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.38-16-generic
npm ERR! command "/home/matt/mainline/nvm/v0.8.14/bin/node" "/home/matt/mainline/nvm/v0.8.14/bin/npm" "install" "node-expat"
npm ERR! cwd /home/matt/mainline/HuTerra-Website
npm ERR! node -v v0.8.14
npm ERR! npm -v 1.1.65
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/matt/mainline/HuTerra-Website/npm-debug.log
npm ERR! not ok code 0
I have removed / reinstalled libexpat1-dev. Another dev has Ubuntu 10 32 bit and installed without issue.
I've tried to install node-expat on openindiana b148. This is the output that I got:
npm install node-expat
npm info it worked if it ends with ok
npm info using [email protected]
npm info using [email protected]
npm info preinstall [email protected]
npm info install [email protected]
Checking for program g++ or c++ : /usr/bin/g++
Checking for program cpp : /usr/gnu/bin/cpp
Checking for program ar : /usr/gnu/bin/ar
Checking for program ranlib : /usr/gnu/bin/ranlib
Checking for g++ : ok
Checking for node path : not found
Checking for node prefix : ok /home/mattiasf/local/node
'configure' finished successfully (1.372s)
Waf: Entering directory /home/mattiasf/local/node/lib/node/.npm/node-expat/1.3.0/package/build' [1/2] cxx: node-expat.cc -> build/default/node-expat_1.o ../node-expat.cc: In static member function
static void Parser::StartCdata(void*)':
../node-expat.cc:276: internal compiler error: in tree_low_cst, at tree.c:3313
Please submit a full bug report,
with preprocessed source if appropriate.
See URL:http://gcc.gnu.org/bugs.html for instructions.
Waf: Leaving directory /home/mattiasf/local/node/lib/node/.npm/node-expat/1.3.0/package/build' Build failed: -> task failed (err #1): {task: cxx node-expat.cc -> node-expat_1.o} npm info [email protected] Failed to exec install script npm ERR! install failed Error: [email protected] install:
./install.sh npm ERR! install failed
sh "-c" "./install.sh"failed with 1 npm ERR! install failed at ChildProcess.<anonymous> (/home/mattiasf/local/node/lib/node/.npm/npm/0.3.18/package/lib/utils/exec.js:49:20) npm ERR! install failed at ChildProcess.emit (events.js:67:17) npm ERR! install failed at ChildProcess.onexit (child_process.js:192:12) npm info install failed rollback npm info uninstall [ '[email protected]' ] npm info preuninstall [email protected] npm info uninstall [email protected] npm info auto-deactive not symlink npm info postuninstall [email protected] npm info uninstall [email protected] complete npm info install failed rolled back npm ERR! Error: [email protected] install:
./install.sh npm ERR!
sh "-c" "./install.sh"` failed with 1
npm ERR! at ChildProcess. (/home/mattiasf/local/node/lib/node/.npm/npm/0.3.18/package/lib/utils/exec.js:49:20)
npm ERR! at ChildProcess.emit (events.js:67:17)
npm ERR! at ChildProcess.onexit (child_process.js:192:12)
npm ERR!
npm ERR! Failed at the [email protected] 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! ./install.sh
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 SunOS 5.11
npm ERR! argv { remain: [ 'node-expat' ],
npm ERR! argv cooked: [ 'install', 'node-expat' ],
npm ERR! argv original: [ 'install', 'node-expat' ] }
npm not ok
node --version
v0.5.0-pre
Regards,
mfain
Some sort of compilation error while compiling node-expat on FreeBSD - about the header expat.h not being found even though it exists.
I'll fill in more details when I know them.
Sorry, there seem to be several similar issues, but none exactly the same. Trying to install on OS X 10.6.
The crucial line seems to be:
Exception: deps/libexpat/libexpat.gyp not found (cwd: /private/var/www/proj/node_modules/soap/node_modules/node-expat) while loading dependencies...
Here's the whole output for more info:
โ npm install -d
npm info it worked if it ends with ok
npm info using [email protected]
npm info using [email protected]
npm info preinstall [email protected]
npm http GET https://registry.npmjs.org/soap
npm http 304 https://registry.npmjs.org/soap
npm info into /private/var/www/proj [email protected]
npm info installOne [email protected]
npm info unbuild /private/var/www/proj/node_modules/soap
npm info preinstall [email protected]
npm http GET https://registry.npmjs.org/node-expat
npm http GET https://registry.npmjs.org/request
npm http 304 https://registry.npmjs.org/request
npm http 304 https://registry.npmjs.org/node-expat
npm info into /private/var/www/proj/node_modules/soap [email protected]
npm info into /private/var/www/proj/node_modules/soap [email protected]
npm info installOne [email protected]
npm info installOne [email protected]
npm info unbuild /private/var/www/proj/node_modules/soap/node_modules/request
npm info unbuild /private/var/www/proj/node_modules/soap/node_modules/node-expat
npm info preinstall [email protected]
npm info build /private/var/www/proj/node_modules/soap/node_modules/request
npm info linkStuff [email protected]
npm info build /private/var/www/proj/node_modules/soap/node_modules/request/node_modules/form-data
npm info preinstall [email protected]
npm info linkStuff [email protected]
npm info install [email protected]
npm info postinstall [email protected]
npm info build /private/var/www/proj/node_modules/soap/node_modules/request/node_modules/mime
npm info preinstall [email protected]
npm info linkStuff [email protected]
npm info install [email protected]
npm info postinstall [email protected]
npm info install [email protected]
npm info postinstall [email protected]
npm info preinstall [email protected]
npm info build /private/var/www/proj/node_modules/soap/node_modules/node-expat
npm info linkStuff [email protected]
npm info install [email protected]
> [email protected] install /private/var/www/proj/node_modules/soap/node_modules/node-expat
> node-gyp rebuild
info it worked if it ends with ok
spawn python [ '/Users/btfh/.node-gyp/0.8.14/tools/gyp_addon',
'binding.gyp',
'-I/private/var/www/proj/node_modules/soap/node_modules/node-expat/build/config.gypi',
'-f',
'make' ]
Traceback (most recent call last):
File "/Users/btfh/.node-gyp/0.8.14/tools/gyp_addon", line 38, in <module>
rc = gyp.main(gyp_args)
File "/Users/btfh/.node-gyp/0.8.14/tools/gyp/pylib/gyp/__init__.py", line 511, in main
return gyp_main(args)
File "/Users/btfh/.node-gyp/0.8.14/tools/gyp/pylib/gyp/__init__.py", line 494, in gyp_main
options.circular_check)
File "/Users/btfh/.node-gyp/0.8.14/tools/gyp/pylib/gyp/__init__.py", line 133, in Load
depth, generator_input_info, check, circular_check)
File "/Users/btfh/.node-gyp/0.8.14/tools/gyp/pylib/gyp/input.py", line 2378, in Load
depth, check)
File "/Users/btfh/.node-gyp/0.8.14/tools/gyp/pylib/gyp/input.py", line 430, in LoadTargetBuildFile
includes, depth, check)
File "/Users/btfh/.node-gyp/0.8.14/tools/gyp/pylib/gyp/input.py", line 358, in LoadTargetBuildFile
includes, True, check)
File "/Users/btfh/.node-gyp/0.8.14/tools/gyp/pylib/gyp/input.py", line 208, in LoadOneBuildFile
raise Exception("%s not found (cwd: %s)" % (build_file_path, os.getcwd()))
Exception: deps/libexpat/libexpat.gyp not found (cwd: /private/var/www/proj/node_modules/soap/node_modules/node-expat) while loading dependencies of binding.gyp while trying to load binding.gyp
ERR! Error: `gyp_addon` failed with exit code: 1
at /usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:196:18
at process.startup.processNextTick.process._tickCallback (node.js:244:9)
ERR! not ok
npm info [email protected] Failed to exec install script
npm info unbuild /private/var/www/proj/node_modules/soap/node_modules/node-expat
npm info preuninstall [email protected]
npm info uninstall [email protected]
npm info postuninstall [email protected]
npm info unbuild /private/var/www/proj/node_modules/soap
npm info preuninstall [email protected]
npm info uninstall [email protected]
npm info postuninstall [email protected]
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! `sh "-c" "node-gyp rebuild"` failed with 1
npm ERR!
npm ERR! Failed at the [email protected] 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!
npm ERR! System Darwin 10.7.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "-d"
npm ERR! cwd /private/var/www/proj
npm ERR! node -v v0.8.14
npm ERR! npm -v 1.1.16
npm ERR! code ELIFECYCLE
npm ERR! message [email protected] install: `node-gyp rebuild`
npm ERR! message `sh "-c" "node-gyp rebuild"` failed with 1
npm ERR! errno {}
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /private/var/www/proj/npm-debug.log
npm not ok
With v1.6.1, expat should adapt Windows platform easier than before. However, while trying to install node-expat on Windows, I have encountered error:
S:\WorkSpaces\joyent\node_modules\node-expat>node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin....\node_modules\node-gyp\bin\node-gyp.js" rebuild
node-expat.cc
..\node-expat.cc(6): fatal error C1083: Cannot open include file: 'expat.h': No such file or directory [S:\WorkSpaces\joyent\node_modules\node-expat\build\node_expat.vcxproj]
gypnpm ERR! [email protected] install: node-gyp rebuild
npm ERR! cmd "/c" "node-gyp rebuild"
failed with 1
npm ERR!
npm ERR! Failed at the [email protected] 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.
Is there a solution or workaround for this problem?
Thanks
i am trying to get the buddycloud-channel-server to run and installed nodejs via https://gist.github.com/579814#file_only_git_all_the_way.sh and my nodejs-branch for python3k-environments.
Runnig "npm install [email protected]" as npm install node-xmpp does itself i get the following errors:
$ npm install [email protected] npm info it worked if it ends with ok npm info using [email protected] npm info using [email protected] npm info preinstall [email protected] npm info install [email protected] 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 : not found Checking for node prefix : ok /home/nodejs/local 'configure' finished successfully (0.030s) Waf: Entering directory `/home/nodejs/local/lib/node/.npm/node-expat/1.1.0/package/build' [1/2] cxx: node-expat.cc -> build/default/node-expat_1.o ../node-expat.cc: In member function โbool Parser::parseBuffer(node::Buffer&, int)โ: ../node-expat.cc:133:37: error: โclass node::Bufferโ has no member named โdataโ ../node-expat.cc:133:52: error: โclass node::Bufferโ has no member named โlengthโ Waf: Leaving directory `/home/nodejs/local/lib/node/.npm/node-expat/1.1.0/package/build' Build failed: -> task failed (err #1): {task: cxx node-expat.cc -> node-expat_1.o} npm info [email protected] Failed to exec install script npm ERR! install failed Error: [email protected] install: `./install.sh` npm ERR! install failed `sh` failed with 1 npm ERR! install failed at ChildProcess. (/home/nodejs/local/lib/node/.npm/npm/0.2.16/package/lib/utils/exec.js:25:18) npm ERR! install failed at ChildProcess.emit (events.js:45:17) npm ERR! install failed at ChildProcess.onexit (child_process.js:171:12) npm info install failed rollback npm info uninstall [ '[email protected]' ] npm info preuninstall [email protected] npm info uninstall [email protected] npm info auto-deactive not symlink npm info postuninstall [email protected] npm info uninstall [email protected] complete npm info install failed rolled back npm ERR! Error: [email protected] install: `./install.sh` npm ERR! `sh` failed with 1 npm ERR! at ChildProcess. (/home/nodejs/local/lib/node/.npm/npm/0.2.16/package/lib/utils/exec.js:25:18) npm ERR! at ChildProcess.emit (events.js:45:17) npm ERR! at ChildProcess.onexit (child_process.js:171:12) npm ERR! npm ERR! Failed at the [email protected] 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! ./install.sh npm ERR! You can get their info via: npm ERR! npm owner ls node-expat npm ERR! There may be additional logging output above. npm not ok
installing the latest node-expat works w/o problems :o
Most 'npm install node-expat' failures are due to missing expat and libexpat1-dev on linux distros. It often takes a while for newbies to trace the error to the dependencies. It would be nice to add some precondition check to point to missing dependencies.
Thanks
Just posting this issue and solution so other people can find it. I was trying to install node-expat in Ubuntu 12.04 and kept receiving the following error.
Traceback (most recent call last):
File "/usr/bin/node-waf", line 16, in <module>
Scripting.prepare(t, os.getcwd(), VERSION, wafdir)
File "/usr/share/nodejs/wafadmin/Scripting.py", line 145, in prepare
prepare_impl(t, cwd, ver, wafdir)
File "/usr/share/nodejs/wafadmin/Scripting.py", line 35, in prepare_impl
lst = os.listdir(cwd)
OSError: [Errno 13] Permission denied: '/root/node_modules/node-expat'
npm ERR! [email protected] install: `node-waf configure build`
npm ERR! `sh "-c" "node-waf configure build"` failed with 1
npm ERR!
npm ERR! Failed at the [email protected] 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.2.0-23-virtual
npm ERR! command "node" "/usr/bin/npm" "install" "node-expat"
npm ERR! cwd /root
npm ERR! node -v v0.6.17
npm ERR! npm -v 1.1.21
npm ERR! code ELIFECYCLE
npm ERR! message [email protected] install: `node-waf configure build`
npm ERR! message `sh "-c" "node-waf configure build"` failed with 1
npm ERR! errno {}
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /root/npm-debug.log
npm not ok
I was installing node-expat via another package so I was just doing npm install
. I was confused by the error OSError: [Errno 13] Permission denied: '/root/node_modules/node-expat'
because I was logged in as root. But I tried sudo npm install
and it worked.
I'm getting the followinf error while installing:
[email protected] install c:\Program Files\nodejs\node_modules\node-xmpp\node_m
odules\node-expat
node-waf configure build
"node-waf" ะฝะต ัะฒะปัะตััั ะฒะฝัััะตะฝะฝะตะน ะธะปะธ ะฒะฝะตัะฝะตะน
ะบะพะผะฐะฝะดะพะน, ะธัะฟะพะปะฝัะตะผะพะน ะฟัะพะณัะฐะผะผะพะน ะธะปะธ ะฟะฐะบะตัะฝัะผ ัะฐะนะปะพะผ.
npm ERR! [email protected] install: node-waf configure build
npm ERR! cmd "/c" "node-waf configure build"
failed with 1
npm ERR!
npm ERR! Failed at the [email protected] 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! System Windows_NT 6.1.7600
npm ERR! command "c:\Program Files\nodejs\node.exe" "c:\Program Files\nod
ejs\node_modules\npm\bin\npm-cli.js" "install" "node-xmpp"
npm ERR! cwd c:\Program Files\nodejs
npm ERR! node -v v0.8.1
npm ERR! npm -v 1.1.36
npm ERR! code ELIFECYCLE
npm ERR! message [email protected] install: node-waf configure build
npm ERR! message cmd "/c" "node-waf configure build"
failed with 1
npm http 200 https://registry.npmjs.org/sax
npm http GET https://registry.npmjs.org/sax/-/sax-0.4.0.tgz
npm http 200 https://registry.npmjs.org/sax/-/sax-0.4.0.tgz
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! c:\Program Files\nodejs\npm-debug.log
npm ERR! not ok code 0
node version v0.8.1, npm version 1.1.36. on windows box.
using node 0.6.14, I try to install node-expat and get the following. I honestly have no idea what to do to resolve this, other than try to upgrade node... but on my system this would mean upgrading Python and everything that depends on it, so I decided to ask the experts if maybe I'm overlooking something simple.
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-1.6.0.tgz
npm http 200 https://registry.npmjs.org/node-expat/-/node-expat-1.6.0.tgz
[email protected] install /storage/home/toomas/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 : not found
Checking for node prefix : ok /usr/local
Checking for header expat.h : yes
'configure' finished successfully (0.847s)
Waf: Entering directory /storage/home/toomas/node_modules/node-expat/build' [1/2] cxx: node-expat.cc -> build/Release/node-expat_1.o In file included from /usr/local/include/node/node.h:67, from ../node-expat.cc:1: /usr/local/include/node/node_object_wrap.h: In member function 'void node::ObjectWrap::MakeWeak()': /usr/local/include/node/node_object_wrap.h:71: error: 'class v8::Persistent<v8::Object>' has no member named 'MarkIndependent' Waf: Leaving directory
/storage/home/toomas/node_modules/node-expat/build'
Build failed: -> task failed (err #1):
{task: cxx node-expat.cc -> node-expat_1.o}
npm ERR! [email protected] install: node-waf configure build
npm ERR! sh "-c" "node-waf configure build"
failed with 1
npm ERR!
npm ERR! Failed at the [email protected] 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 FreeBSD 8.3-RELEASE-p2
npm ERR! command "node" "/usr/local/bin/npm" "install" "node-expat"
npm ERR! cwd /storage/home/toomas
npm ERR! node -v v0.6.14
npm ERR! npm -v 1.1.12
npm ERR! code ELIFECYCLE
npm ERR! message [email protected] install: node-waf configure build
npm ERR! message sh "-c" "node-waf configure build"
failed with 1
npm ERR! errno {}
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /storage/home/toomas/npm-debug.log
npm not ok
I have tried to install xml2js-expat and got errors on node-expat , thus I can't install.
Please see the errors here: Poetro/node-xml2js-expat#3
Somehow, I think it fails in : sh "-c" "node-waf configure build"
Do you have any idea how to solve that problem? thanks.
sudo npm -g install [email protected]
doesn't work but
sudo npm -g install [email protected]
works fine
Probably forgot -I/usr/local/include or something like that, since expat.h is there at:
#head /usr/local/include/expat.h
/* Copyright (c) 1998, 1999, 2000 Thai Open Source Software Center Ltd
See the file COPYING for copying permission.
*/
#ifndef Expat_INCLUDED
#define Expat_INCLUDED 1
# npm install node-expat
npm http GET https://registry.npmjs.org/node-expat
npm http 304 https://registry.npmjs.org/node-expat
> [email protected] install /root/node_modules/node-expat
> node-gyp rebuild
gmake: Entering directory `/root/node_modules/node-expat/build'
CXX(target) Release/obj.target/node_expat/node-expat.o
../node-expat.cc:6:19: warning: expat.h: No such file or directory
../node-expat.cc:71: error: expected ',' or '...' before '*' token
../node-expat.cc:71: error: ISO C++ forbids declaration of 'XML_Char' with no type
../node-expat.cc:191: error: 'XML_Char' has not been declared
../node-expat.cc:261: error: 'XML_Char' has not been declared
../node-expat.cc:265: error: ISO C++ forbids declaration of 'XML_LChar' with no type
../node-expat.cc:265: error: expected ';' before '*' token
../node-expat.cc:272: error: expected `;' before 'static'
../node-expat.cc:313: error: 'XML_Parser' does not name a type
../node-expat.cc:322: error: expected ',' or '...' before '*' token
../node-expat.cc:322: error: ISO C++ forbids declaration of 'XML_Char' with no type
../node-expat.cc:339: error: expected ',' or '...' before '*' token
../node-expat.cc:339: error: ISO C++ forbids declaration of 'XML_Char' with no type
../node-expat.cc:367: error: expected ',' or '...' before '*' token
../node-expat.cc:367: error: ISO C++ forbids declaration of 'XML_Char' with no type
../node-expat.cc:378: error: expected ',' or '...' before '*' token
../node-expat.cc:378: error: ISO C++ forbids declaration of 'XML_Char' with no type
../node-expat.cc:390: error: expected ',' or '...' before '*' token
../node-expat.cc:390: error: ISO C++ forbids declaration of 'XML_Char' with no type
../node-expat.cc:400: error: expected ',' or '...' before '*' token
../node-expat.cc:401: error: ISO C++ forbids declaration of 'XML_Char' with no type
../node-expat.cc:413: error: expected ',' or '...' before '*' token
../node-expat.cc:415: error: ISO C++ forbids declaration of 'XML_Char' with no type
../node-expat.cc: In static member function 'static v8::Handle<v8::Value> Parser::New(const v8::Arguments&)':
../node-expat.cc:57: error: 'XML_Char' was not declared in this scope
../node-expat.cc:57: error: expected primary-expression before '=' token
../node-expat.cc:60: error: expected unqualified-id before '=' token
../node-expat.cc:61: error: expected primary-expression before ',' token
../node-expat.cc:64: error: expected primary-expression before ')' token
../node-expat.cc:65: error: expected primary-expression before ')' token
../node-expat.cc:66: error: expected primary-expression before ';' token
../node-expat.cc: In constructor 'Parser::Parser(int)':
../node-expat.cc:74: error: 'parser' was not declared in this scope
../node-expat.cc:74: error: expected primary-expression before ')' token
../node-expat.cc:74: error: 'XML_ParserCreate' was not declared in this scope
../node-expat.cc: In destructor 'virtual Parser::~Parser()':
../node-expat.cc:82: error: 'parser' was not declared in this scope
../node-expat.cc:82: error: 'XML_ParserFree' was not declared in this scope
../node-expat.cc: In member function 'void Parser::attachHandlers()':
../node-expat.cc:87: error: 'parser' was not declared in this scope
../node-expat.cc:87: error: 'XML_SetUserData' was not declared in this scope
../node-expat.cc:88: error: 'XML_SetElementHandler' was not declared in this scope
../node-expat.cc:89: error: 'XML_SetCharacterDataHandler' was not declared in this scope
../node-expat.cc:90: error: 'XML_SetCdataSectionHandler' was not declared in this scope
../node-expat.cc:91: error: 'XML_SetProcessingInstructionHandler' was not declared in this scope
../node-expat.cc:92: error: 'XML_SetCommentHandler' was not declared in this scope
../node-expat.cc:93: error: 'XML_SetXmlDeclHandler' was not declared in this scope
../node-expat.cc:94: error: 'XML_SetEntityDeclHandler' was not declared in this scope
../node-expat.cc: In member function 'bool Parser::parseString(v8::String&, int)':
../node-expat.cc:149: error: 'parser' was not declared in this scope
../node-expat.cc:149: error: 'XML_GetBuffer' was not declared in this scope
../node-expat.cc:153: error: 'XML_ParseBuffer' was not declared in this scope
../node-expat.cc:153: error: 'XML_STATUS_ERROR' was not declared in this scope
../node-expat.cc: In member function 'bool Parser::parseBuffer(v8::Local<v8::Object>, int)':
../node-expat.cc:165: error: 'parser' was not declared in this scope
../node-expat.cc:165: error: 'XML_Parse' was not declared in this scope
../node-expat.cc:165: error: 'XML_STATUS_ERROR' was not declared in this scope
../node-expat.cc: In static member function 'static v8::Handle<v8::Value> Parser::SetEncoding(const v8::Arguments&)':
../node-expat.cc:178: error: 'XML_Char' was not declared in this scope
../node-expat.cc:178: error: expected primary-expression before '=' token
../node-expat.cc:178: error: expected type-specifier before 'XML_Char'
../node-expat.cc:178: error: expected `;' before 'XML_Char'
../node-expat.cc:179: error: expected primary-expression before ',' token
../node-expat.cc:181: error: expected primary-expression before ')' token
../node-expat.cc:183: error: expected primary-expression before ';' token
../node-expat.cc: In member function 'int Parser::setEncoding(int*)':
../node-expat.cc:193: error: 'parser' was not declared in this scope
../node-expat.cc:193: error: 'XML_SetEncoding' was not declared in this scope
../node-expat.cc: In static member function 'static v8::Handle<v8::Value> Parser::GetError(const v8::Arguments&)':
../node-expat.cc:203: error: expected initializer before '*' token
../node-expat.cc:204: error: 'error' was not declared in this scope
../node-expat.cc:201: warning: unused variable 'parser'
../node-expat.cc: In member function 'int Parser::stop()':
../node-expat.cc:224: error: 'parser' was not declared in this scope
../node-expat.cc:224: error: 'XML_TRUE' was not declared in this scope
../node-expat.cc:224: error: 'XML_StopParser' was not declared in this scope
../node-expat.cc: In member function 'int Parser::resume()':
../node-expat.cc:241: error: 'parser' was not declared in this scope
../node-expat.cc:241: error: 'XML_ResumeParser' was not declared in this scope
../node-expat.cc: In static member function 'static v8::Handle<v8::Value> Parser::Reset(const v8::Arguments&)':
../node-expat.cc:248: error: 'XML_Char' was not declared in this scope
../node-expat.cc:248: error: expected primary-expression before '=' token
../node-expat.cc:251: error: expected unqualified-id before '=' token
../node-expat.cc:252: error: expected primary-expression before ',' token
../node-expat.cc:255: error: expected primary-expression before ')' token
../node-expat.cc: In member function 'int Parser::reset(int*)':
../node-expat.cc:263: error: 'parser' was not declared in this scope
../node-expat.cc:263: error: 'XML_ParserReset' was not declared in this scope
../node-expat.cc: In member function 'uint32_t Parser::getCurrentLineNumber()':
../node-expat.cc:282: error: 'parser' was not declared in this scope
../node-expat.cc:282: error: 'XML_GetCurrentLineNumber' was not declared in this scope
../node-expat.cc: In member function 'uint32_t Parser::getCurrentColumnNumber()':
../node-expat.cc:295: error: 'parser' was not declared in this scope
../node-expat.cc:295: error: 'XML_GetCurrentColumnNumber' was not declared in this scope
../node-expat.cc: In member function 'int32_t Parser::getCurrentByteIndex()':
../node-expat.cc:308: error: 'parser' was not declared in this scope
../node-expat.cc:308: error: 'XML_GetCurrentByteIndex' was not declared in this scope
../node-expat.cc: In static member function 'static void Parser::StartElement(void*, int)':
../node-expat.cc:328: error: expected initializer before '*' token
../node-expat.cc:328: error: 'atts1' was not declared in this scope
../node-expat.cc:333: error: 'name' was not declared in this scope
../node-expat.cc: In static member function 'static void Parser::EndElement(void*, int)':
../node-expat.cc:344: error: 'name' was not declared in this scope
../node-expat.cc: In static member function 'static void Parser::Text(void*, int)':
../node-expat.cc:373: error: 's' was not declared in this scope
../node-expat.cc:373: error: 'len' was not declared in this scope
../node-expat.cc: In static member function 'static void Parser::ProcessingInstruction(void*, int)':
../node-expat.cc:384: error: 'target' was not declared in this scope
../node-expat.cc:385: error: 'data' was not declared in this scope
../node-expat.cc: In static member function 'static void Parser::Comment(void*, int)':
../node-expat.cc:395: error: 'data' was not declared in this scope
../node-expat.cc: In static member function 'static void Parser::XmlDecl(void*, int)':
../node-expat.cc:407: error: 'version' was not declared in this scope
../node-expat.cc:408: error: expected primary-expression before '?' token
../node-expat.cc:408: error: expected primary-expression before ')' token
../node-expat.cc:409: error: 'standalone' was not declared in this scope
../node-expat.cc: In static member function 'static void Parser::EntityDecl(void*, int)':
../node-expat.cc:421: error: 'entityName' was not declared in this scope
../node-expat.cc:422: error: 'is_parameter_entity' was not declared in this scope
../node-expat.cc:423: error: 'value' was not declared in this scope
../node-expat.cc:423: error: 'value_length' was not declared in this scope
../node-expat.cc:424: error: 'base' was not declared in this scope
../node-expat.cc:425: error: 'systemId' was not declared in this scope
../node-expat.cc:426: error: 'publicId' was not declared in this scope
../node-expat.cc:427: error: 'notationName' was not declared in this scope
gmake: *** [Release/obj.target/node_expat/node-expat.o] Error 1
gmake: Leaving directory `/root/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/local/lib/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.0-RELEASE-p4
gyp ERR! command "node" "/usr/local/bin/node-gyp" "rebuild"
gyp ERR! cwd /root/node_modules/node-expat
gyp ERR! node -v v0.8.18
gyp ERR! node-gyp -v v0.8.3
gyp ERR! not ok
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! `sh "-c" "node-gyp rebuild"` failed with 1
npm ERR!
npm ERR! Failed at the [email protected] 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.0-RELEASE-p4
npm ERR! command "node" "/usr/local/bin/npm" "install" "node-expat"
npm ERR! cwd /root
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! /root/npm-debug.log
npm ERR! not ok code 0
It would be great if reset()ting the parser could be supported. libexpat has support for this as the function:
XML_ParserReset(XML_Parser parser, const XML_Char *encoding);
Needed since we want to avoid re-instantiating a new parser instance for every invalid stanza. xmppo/node-xmpp-bosh@390854b#commitcomment-1185687
Try to create and delete parser obj, and memory will leak
npm install node-expat
[email protected] install /root/node_modules/node-expat
node-waf configure build
Traceback (most recent call last):
File "/usr/local/bin/node-waf", line 14, in
import Scripting
ImportError: No module named Scripting
npm ERR! error installing [email protected] Error: [email protected] install: node-waf configure build
npm ERR! error installing [email protected] sh "-c" "node-waf configure build"
failed with 1
npm ERR! error installing [email protected] at ChildProcess. (/opt/local/node/lib/node_modules/npm/lib/utils/exec.js:49:20)
npm ERR! error installing [email protected] at ChildProcess.emit (events.js:67:17)
npm ERR! error installing [email protected] at ChildProcess.onexit (child_process.js:192:12)
npm ERR! [email protected] install: node-waf configure build
npm ERR! sh "-c" "node-waf configure build"
failed with 1
npm ERR!
npm ERR! Failed at the [email protected] 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 2.6.34.9-69.fc13.i686.PAE
npm ERR! command "node" "/opt/local/node/bin/npm" "install" "node-expat"
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /root/npm-debug.log
npm not ok
I'm running Fedora 13
Node v0.4.9
NPM v1.0.15
Hello,
I dont know if its a bug but if i stop the Parser during the "startElement-event",
the "endElement-event" will still fire, if its a selfclosing-element!
Per the subject, I'm having trouble. Here's the thread from the npm user's group:
http://groups.google.com/group/npm-/browse_thread/thread/f56240d86276fcb1
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
> [email protected] 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! [email protected] install: `node-gyp rebuild`
npm ERR! `sh "-c" "node-gyp rebuild"` failed with 1
npm ERR!
npm ERR! Failed at the [email protected] 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...
After I upgraded to node 0.8.12, I ran 'npm update.' I get this error and I have no idea how to fix it.
Hi Astro
With node 0.8, node-waf is in a transition to be replaced by node-gyp(https://github.com/TooTallNate/node-gyp ), a more platform independent tool for your native code that requires wscript. Do you have a plan adapting this in near future?
node-expat segfaults like crazy with node 0.4. Please update, and thanks for your hard work
It would be nice if there was an event emitted for the DOCTYPE that provided the name, public id and system id.
Hey,
How compatible is node-expat with node v0.5.3?
I get Error: /home/luke/c/javascript/node-expat/build/default/node-expat.node: undefined symbol: _ZN4node12EventEmitter20constructor_templateE
when trying to node test.js
, so I'm assuming there is a massive dragon that I need to slay in order to get my chat bot to work?
Thanks,
Luke
When node-expat emits the element start/end, etc... events is it possible to have a member variable/function that shows how many bytes of the input have been parsed till now?
So suppose I have the following XML:
hello worldthen I should be able to query .bytesParsed to determine the total number of bytes parsed on every element start/end event.
> [email protected] install /home/thomas/foo/node_modules/node-xmpp/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 /home/thomas/.nvm/v0.6.8
Checking for header expat.h : yes
'configure' finished successfully (0.143s)
Waf: Entering directory `/home/stephan/programming/node-expat/build'
Waf: Leaving directory `/home/stephan/programming/node-expat/build'
Traceback (most recent call last):
File "/home/thomas/.nvm/v0.6.8/bin/node-waf", line 16, in <module>
Scripting.prepare(t, os.getcwd(), VERSION, wafdir)
File "/home/thomas/.nvm/v0.6.8/bin/../lib/node/wafadmin/Scripting.py", line 145, in prepare
prepare_impl(t, cwd, ver, wafdir)
File "/home/thomas/.nvm/v0.6.8/bin/../lib/node/wafadmin/Scripting.py", line 135, in prepare_impl
main()
File "/home/thomas/.nvm/v0.6.8/bin/../lib/node/wafadmin/Scripting.py", line 188, in main
fun(ctx)
File "/home/thomas/.nvm/v0.6.8/bin/../lib/node/wafadmin/Scripting.py", line 386, in build
return build_impl(bld)
File "/home/thomas/.nvm/v0.6.8/bin/../lib/node/wafadmin/Scripting.py", line 405, in build_impl
bld.compile()
File "/home/thomas/.nvm/v0.6.8/bin/../lib/node/wafadmin/Build.py", line 268, in compile
os.chdir(self.bldnode.abspath())
OSError: [Errno 2] No such file or directory: '/home/stephan/programming/node-expat/build'
npm ERR! error installing [email protected]
npm ERR! error installing [email protected]
npm ERR! [email protected] install: `node-waf configure build`
npm ERR! `sh "-c" "node-waf configure build"` failed with 1
npm ERR!
npm ERR! Failed at the [email protected] 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 2.6.38-13-generic
npm ERR! command "node" "/home/thomas/.nvm/v0.6.8/bin/npm" "update"
npm ERR! cwd /home/thomas/foo
npm ERR! node -v v0.6.8
npm ERR! npm -v 1.1.0-2
npm ERR! code ELIFECYCLE
npm ERR! message [email protected] install: `node-waf configure build`
npm ERR! message `sh "-c" "node-waf configure build"` failed with 1
npm ERR! errno {}
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/thomas/foo/npm-debug.log
npm not ok
In trying to update node-expat on OSX after updating node to 0.8 + npm 1.1.32, but I run into several issues. The node-expat installer can't find my node path, and it can't find the expat.h. I have the expat.h header in several locations /usr/local/include and /opt/local/include. Before updating node the node-expat install was ok. What else can I try to solve this? I've tried several versions of node-expat up to 0.6
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 : not found
Checking for node prefix : ok /usr/local
Checking for header expat.h : not installed
/Users/me/astro-node-expat-f653829/wscript:14: error: the configuration failed (see '/Users/me/astro-node-expat-f653829/build/config.log')
npm ERR! [email protected] install: `node-waf configure build`
npm ERR! `sh "-c" "node-waf configure build"` failed with 1
npm ERR!
npm ERR! Failed at the [email protected] 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! System Darwin 11.4.0
npm ERR! command "node" "/usr/local/bin/npm" "install"
npm ERR! cwd /Users/me/astro-node-expat-f653829
npm ERR! node -v v0.8.0
npm ERR! npm -v 1.1.32
npm ERR! code ELIFECYCLE
npm ERR! message [email protected] install: `node-waf configure build`
npm ERR! message `sh "-c" "node-waf configure build"` failed with 1
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/me/astro-node-expat-f653829/npm-debug.log
npm ERR! not ok code 0
node 0.1.102 (nvm) + npm
it seems npm generates an incorrect main.js file for node-expat (this maybe because this module is compiled), the problem is in the line 5 (/lib/node/.npm/node-expat/1.0.0/main.js)
module.exports = require("./package/build/default/")
it should be:
module.exports = require("./package/build/default/expat")
I reported it to isaacs ( http://github.com/isaacs/npm/issues/issue/148 ) and he thinks it's a problem in this package:
Bug in expat's package.json. It should read "main":"./build/default/expat"
Is there anyway to get onStartCdata/onEndCdata implemented in near feature? I'm not familiar with C++ at all, otherwise I would do it myself, and yet I may still try! :)
Or is there any work around I missed? Seems like there's no way currently to tell is it CData or no at all.
The reason I ask is that I have plenty of code written for libxmljs which is using onCdata event a lot.
I have a package that depends on 1.6.1, and am getting some complaints that may be fixed by upgrading to 2.0.0. Is there a changelog for changes between the 1.x and 2.0 versions so I can see if anything looks like it will break?
Great work on the library. It's blazing fast and I can't wait to use it.
The library leaks memory when you use it over an extended period. See the gist below to reproduce the error. There's a piece of our app that has to parse thousands of these files, so it's important that it work without leaking.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.