mooz / node-icu-charset-detector

A simple binding of ICU character set detection for Node.js
MIT License
86 stars 22 forks source link

install error #16

Closed webgori closed 9 years ago

webgori commented 9 years ago
[root@localhost ahnenerbe]# npm install node-icu-charset-detector

> node-icu-charset-detector@0.0.7 install /var/www/html/dev/ahnenerbe/node_modules/node-icu-charset-detector
> node-gyp rebuild

child_process: customFds option is deprecated, use stdio instead.
make: Entering directory `/var/www/html/dev/ahnenerbe/node_modules/node-icu-charset-detector/build'
  CXX(target) Release/obj.target/node-icu-charset-detector/node-icu-charset-detector.o
../node-icu-charset-detector.cpp:66: error: expected unqualified-id before ‘&’ token
../node-icu-charset-detector.cpp:66: error: expected ‘)’ before ‘&’ token
../node-icu-charset-detector.cpp:66: error: expected ‘;’ before ‘&’ token
../node-icu-charset-detector.cpp:127: error: expected ‘;’ at end of input
../node-icu-charset-detector.cpp:127: error: expected ‘}’ at end of input
/root/.node-gyp/0.12.0/deps/v8/include/v8.h: In static member function ‘static void CharsetMatch::Initialize(v8::Handle<v8::Object>)’:
/root/.node-gyp/0.12.0/deps/v8/include/v8.h:816: error: ‘v8::HandleScope::HandleScope()’ is protected
../node-icu-charset-detector.cpp:19: error: within this context
../node-icu-charset-detector.cpp:22: error: ‘New’ is not a member of ‘CharsetMatch’
../node-icu-charset-detector.cpp:27: error: ‘GetName’ is not a member of ‘CharsetMatch’
../node-icu-charset-detector.cpp:28: error: ‘GetLanguage’ is not a member of ‘CharsetMatch’
../node-icu-charset-detector.cpp:29: error: ‘GetConfidence’ is not a member of ‘CharsetMatch’
../node-icu-charset-detector.cpp:32: error: ‘NewSymbol’ is not a member of ‘v8::String’
../node-icu-charset-detector.cpp: In constructor ‘CharsetMatch::CharsetMatch(const char*, size_t)’:
../node-icu-charset-detector.cpp:38: error: ‘charsetDetector_’ was not declared in this scope
../node-icu-charset-detector.cpp:48: error: ‘charsetMatch_’ was not declared in this scope
../node-icu-charset-detector.cpp: In destructor ‘virtual CharsetMatch::~CharsetMatch()’:
../node-icu-charset-detector.cpp:54: error: ‘charsetDetector_’ was not declared in this scope
../node-icu-charset-detector.cpp: At global scope:
../node-icu-charset-detector.cpp:62: error: expected unqualified-id at end of input
make: *** [Release/obj.target/node-icu-charset-detector/node-icu-charset-detector.o] error 1
make: Leaving directory `/var/www/html/dev/ahnenerbe/node_modules/node-icu-charset-detector/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack     at ChildProcess.emit (events.js:110:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:1067:12)
gyp ERR! System Linux 2.6.32-431.20.5.el6.x86_64
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /var/www/html/dev/ahnenerbe/node_modules/node-icu-charset-detector
gyp ERR! node -v v0.12.0
gyp ERR! node-gyp -v v1.0.2
gyp ERR! not ok
npm ERR! Linux 2.6.32-431.20.5.el6.x86_64
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "node-icu-charset-detector"
npm ERR! node v0.12.0
npm ERR! npm  v2.5.1
npm ERR! code ELIFECYCLE

npm ERR! node-icu-charset-detector@0.0.7 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-icu-charset-detector@0.0.7 install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the node-icu-charset-detector 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-icu-charset-detector
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /var/www/html/dev/ahnenerbe/npm-debug.log