2012-10-11 75 views
1

在新机器上安装节点后遇到错误。node:加载共享库时出错:libv8.so.3

$ -node 
node: error while loading shared libraries: libv8.so.3: cannot open shared object file: No such file or directory 

我试图与奉http://code.google.com/p/v8/wiki/BuildingWithGYP

但很少运气安装V8。在这个问题上的任何帮助?

我的系统是

SUSE Linux企业服务器11(x86_64的) VERSION = 11 PATCHLEVEL = 2

谢谢你在前进,

+0

为什么你认为错误消息是撒谎? –

+0

@ IgnacioVazquez-Abrams我不认为它在撒谎?我只是在安装v8的依赖时遇到问题 – rickypai

+0

那么也许你应该回到“这是我安装V8的方式,我做错了什么?”。 –

回答

1

您安装节点RPM有来自V8发动机转速的libv8.so.3模块的依赖关系。安装v8,然后搜索模块并将其复制到节点正在搜索模块的路径中。使用v8的启用文件的路径编辑〜/ .bash_profile,以便在机器上正确映射v8。

$find/-name libv8.so* 
$cp /the found path/libv8.so /node module path/ 
$find/-name enable | grep v8* 
$vim /path to v8 enable file/enable (highlight the export PATH statements) 
$vim ~/.bash_profile 
Shift+I (paste in the contents of the v8 enable file) 
0

我正在使用scl加载库并遇到类似的问题。最终通过部署后启动我的Rails服务器:

# stop 
pid=$(lsof -i tcp:3000 -t) 
[ -z "$pid" ] || kill $pid 

# start 
scl enable rh-ror41 nodejs010 rh-ruby22 'LD_LIBRARY_PATH=/opt/rh/rh-ruby22/root/usr/lib64/:/usr/lib/oracle/12.1/client64/lib:/opt/rh/nodejs010/root/lib64 & 
             bundle install & 
             rails server -d -b 0.0.0.0'