2012-10-11 74 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'