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

但运气很less。 在这个问题上的任何帮助?

我的系统是

SUSE Linux Enterprise Server 11(x86_64)VERSION = 11 PATCHLEVEL = 2

先谢谢你,

我遇到了同样的问题,这个答案解决了它 – 加载共享库时的Linux错误:无法打开共享对象文件:没有这样的文件或目录

长话短说 ,

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

GL,ido

您安装的节点rpm对v8 rpm中的libv8.so.3模块有依赖性。 安装v8,然后search模块并将其复制到节点search模块的path。 使用v8的启用文件的path编辑〜/ .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) 

我正在使用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'