nodejs install iconv failure on ubuntu

317 views
Skip to first unread message

Weide Zhang

unread,
Feb 8, 2015, 3:19:47 PM2/8/15
to nod...@googlegroups.com
Hi guys, 

I got the following error when install iconv pkg. It seems that gyp: Call to 'node -e "require('nan')"' returned exit status 0 , which seems fine but node-gpy rebuild still exit with error code 1. I already installed nodejs-legacy package but doesn't solve the issue.  My OS is ubuntu 13.10 64 bit with python 2.7.5.  node version is 0.10.15. Any help is much appreciated ! 

Weide 


[12:15:41 qiong-h8-1234]% which -a node                                                                       
/usr/bin/node


[12:11:23 qiong-h8-1234]% sudo npm install -g iconv                                                                              ~
[sudo] password for qiong: 
/usr/bin/nodejs: /usr/local/lib/libcrypto.so.1.0.0: no version information available (required by /usr/bin/nodejs)
/usr/bin/nodejs: /usr/local/lib/libssl.so.1.0.0: no version information available (required by /usr/bin/nodejs)
/usr/bin/nodejs: /usr/local/lib/libssl.so.1.0.0: no version information available (required by /usr/bin/nodejs)

> ic...@2.1.5 install /usr/local/lib/node_modules/iconv
> node-gyp rebuild

nodejs: /usr/local/lib/libcrypto.so.1.0.0: no version information available (required by nodejs)
nodejs: /usr/local/lib/libssl.so.1.0.0: no version information available (required by nodejs)
nodejs: /usr/local/lib/libssl.so.1.0.0: no version information available (required by nodejs)
node dir/usr/include/nodejs
node: /usr/local/lib/libcrypto.so.1.0.0: no version information available (required by node)
node: /usr/local/lib/libssl.so.1.0.0: no version information available (required by node)
node: /usr/local/lib/libssl.so.1.0.0: no version information available (required by node)
gyp: Call to 'node -e "require('nan')"' returned exit status 0. while trying to load binding.gyp
gyp ERR! configure error 
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (/usr/share/node-gyp/lib/configure.js:432:16)
gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:789:12)
gyp ERR! System Linux 3.11.0-26-generic
gyp ERR! command "nodejs" "/usr/bin/node-gyp" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/iconv
gyp ERR! node -v v0.10.15
gyp ERR! node-gyp -v v0.10.9
gyp ERR! not ok 
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian
 
npm ERR! ic...@2.1.5 install: `node-gyp rebuild`
npm ERR! `sh "-c" "node-gyp rebuild"` failed with 1
npm ERR! 
npm ERR! Failed at the ic...@2.1.5 install script.
npm ERR! This is most likely a problem with the iconv 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 iconv
npm ERR! There is likely additional logging output above.

npm ERR! System Linux 3.11.0-26-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "-g" "iconv"
npm ERR! cwd /home/qiong
npm ERR! node -v v0.10.15
npm ERR! npm -v 1.2.18
npm ERR! code ELIFECYCLE
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /home/qiong/npm-debug.log
npm ERR! not ok code 0

Ryan Schmidt

unread,
Feb 8, 2015, 10:43:40 PM2/8/15
to nod...@googlegroups.com

On Feb 8, 2015, at 2:19 PM, Weide Zhang wrote:

> /usr/bin/nodejs: /usr/local/lib/libcrypto.so.1.0.0: no version information available (required by /usr/bin/nodejs)
> /usr/bin/nodejs: /usr/local/lib/libssl.so.1.0.0: no version information available (required by /usr/bin/nodejs)
> /usr/bin/nodejs: /usr/local/lib/libssl.so.1.0.0: no version information available (required by /usr/bin/nodejs)

Is openssl installed? If not, install it. If it is already installed, can you reinstall it somehow?


Reply all
Reply to author
Forward
0 new messages