[Pharo-project] CogVM LD_LIBRARY_PATH

Francois Stephany tulipe.moutarde at gmail.com
Wed Mar 28 22:51:47 EDT 2012

I got the same error than in thread:

The server was running an Ubuntu 10.04.4 LTS 32bits.
CogVM from there: http://www.mirandabanda.org/files/Cog/VM/VM.r2538/
ldd gave me this:

ldd lib/squeak/4.0-2538/squeak
	linux-gate.so.1 =>  (0xb76f9000)
	libutil.so.1 => /lib/tls/i686/cmov/libutil.so.1 (0xb76ec000)
	libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb76e8000)
	libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb76cf000)
	libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb76a8000)
	libnsl.so.1 => /lib/tls/i686/cmov/libnsl.so.1 (0xb7691000)
	libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7538000)
	/lib/ld-linux.so.2 (0xb76fa000)

I change the case statement in the squeak launch script to:

> case `/usr/bin/ldd "$BIN/squeak" | /bin/fgrep /libc. | sed 's/^.*=> //'` in
> /lib/libc*)                                     SVMLLP="/lib:/usr/lib";;
> /lib32/libc*)                           SVMLLP="/lib32:/usr/lib32";;
> /lib64/libc*)                           SVMLLP="/lib64:/usr/lib64";;
> /lib/tls/i686/cmov/libc*)                               SVMLLP="/lib/tls:/lib:/usr/lib/tls:/usr/lib";;
> /lib/i386-linux-gnu/libc*)      SVMLLP="/lib/i386-linux-gnu:/usr/lib/i386-linux-gnu";;
> *)      echo "can't infer base LD_LIBRARY_PATH. Aborting." 1>&2;
>         exit 1
> esac

i.e., I changed that case

That's could maybe be useful for someone...

More information about the Pharo-dev mailing list