2

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,

rickypai
  • 3,927
  • 6
  • 23
  • 30

3 Answers3

1

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

Community
  • 1
  • 1
user1567004
  • 175
  • 1
  • 8
1

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)
GracefulCode
  • 141
  • 7
0

I was using scl to load libs and encountered a similar problem. ended up starting my rails server after a deploy via:

# 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'
gh4x
  • 746
  • 1
  • 9
  • 16