node:加载共享库时出错:libv8.so.3

时间:2012-10-11 22:51:02

标签: linux node.js

我在新机器上安装节点后遇到错误。

$ -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 Enterprise Server 11(x86_64) 版本= 11 PATCHLEVEL = 2

提前谢谢你,

3 个答案:

答案 0 :(得分:1)

我遇到了同样的问题,答案解决了这个问题 - Linux error while loading shared libraries: cannot open shared object file: No such file or directory

长话短说,

$ locate libv8.so.3
$ LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/my_library/path.so.something
$ export LD_LIBRARY_PATH
$ ./my_app

GL, IDO

答案 1 :(得分:1)

您安装的Node rpm依赖于v8 rpm的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)

答案 2 :(得分:0)

我使用scl加载libs并遇到了类似的问题。在部署后通过以下方式启动我的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'
相关问题