Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

node: error while loading shared libraries: libv8.so.3

Tags:

linux

node.js

I'm encountering an error after installing node on a new machine.

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

I tried to install v8 with the instructions from http://code.google.com/p/v8/wiki/BuildingWithGYP

but with very little luck. Any help on this issue?

My system is:

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

Thank you in advance

like image 916
rickypai Avatar asked Mar 25 '26 20:03

rickypai


2 Answers

I had encountered the same problem, and that answer solved it - Linux error while loading shared libraries: cannot open shared object file: No such file or directory

long story short ,

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

GL, ido

like image 90
user1567004 Avatar answered Mar 28 '26 13:03

user1567004


The Node RPM you installed has a dependency on the libv8.so.3 module from the v8 RPM. Install v8, then search for the module and copy it to the path where node is searching for modules. Edit the ~/.bash_profile with the paths of v8's enable file to correctly map v8 on the machine.

$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)
like image 31
GracefulCode Avatar answered Mar 28 '26 13:03

GracefulCode



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!