Login  Register

Re: error while loading shared libraries: libQuantLib-0.9.9.so

Posted by henaffp on Nov 28, 2009; 1:21pm
URL: http://quantlib.414.s1.nabble.com/error-while-loading-shared-libraries-libQuantLib-0-9-9-so-tp8314p8315.html

libQuantLib.so is a link to libQuantLib-x.x.x.so

try:
$ which libQuantLib.so
you should get
$ /usr/local/lib/libQuantLib.so
then
$ls -l /usr/local/lib/libQuantLib.so
and see what it is pointing to, is this file in your search path?

pajofego wrote
Hello,

after updating to Ubuntu 9.10 it was necessary to install the new Quantlib wiht version 0.9.9. With the older version 0.9.7 I got no problems after starting the binary.

My example Makefile shows like this:

   g++ -DHAVE_CONFIG_H -I../cpp/QuantLib-0.9.9/ql  -g -O2 -Wall -c -o gjrgarch.o gjrgarch.cpp
        g++  -g -O2 -Wall -o gjrgarch gjrgarch.o -L/usr/local/lib/ -lQuantLib


The error message after typing ./gjrgarch is:

./gjrgarch: error while loading shared libraries: libQuantLib-0.9.9.so: cannot open shared object file: No such file or directory

How I can fix this problem?

Thanks in advance.
pajofego