Re: Compilation and Installation QuantLib 0.3.11
Posted by
eric ehlers on
URL: http://quantlib.414.s1.nabble.com/Compilation-and-Installation-QuantLib-0-3-11-tp4417p4421.html
Hi Lorenzo
> However, frustrated by what was going on, I downloaded version 0.3.11 from sourceforge.net and I installed it by:
> ./configure
> make
> sudo make install
>
> Some waiting time, tons of output and finally;
>
> Libraries have been installed in:
> /usr/local/lib
>
> where allegedly g++ should be able to see them.
> I reverted to the code in the previous email by compiling and running it:
>
> lorenzo@mypc:~/Temp$ g++ -o simple simple-option.cc -lQuantLib
> lorenzo@mypc:~/Temp$ ./simple
> ./simple: error while loading shared libraries: libQuantLib-0.3.11.so: cannot open shared object file: No such file or directory
>
>
> But shouldn't g++ be able to see it if I do not toy with the installation directory by making some non-standard choices?
Your output above indicates that the program compiled and linked
successfully which would mean that g++ does see the QuantLib library.
When you attempt to launch the executable you get a message about
loading, meaning that it's the loader which fails to find the library.
Please try:
su
ldconfig
exit
export $LD_LIBRARY_PATH=/usr/local/lib
./simple
(The export command is probably unnecessary depending on the
particulars of your linux distro but it won't hurt).
Regards,
Eric