Posted by
eric ehlers on
URL: http://quantlib.414.s1.nabble.com/Compilation-and-Installation-QuantLib-0-3-11-tp4417p4420.html
Hi Lorenzo
> On Wed, 2006-01-25 at 10:02 +0000, eric ehlers wrote:
> export $LD_LIBRARY_PATH=/usr/local/lib
> >
> I did as you suggest.
> This way, g++ correctly sees the 0.3.11 QuantLib version and everything goes fine, but if I
> copy the file into another directory, well, I have to go through this again.
Yes. If you move the lib, you have to inform your loader of the new
location, no way around that. In any case LD_LIBRARY_PATH is not the
most robust way of specifying the location - e.g. you can edit
/etc/ld.so.conf - here's the doc to read:
http://www.dwheeler.com/program-library/Program-Library-HOWTO/index.html> In particular, the command:
> sudo ldconfig
>
> simply returns the prompt to me (as far as I can see, I do not know what it does in detail),
> so there is no need of the exit command (which closes the console).
Well, I suggested ...
su
ldconfig
exit
... in which case exit returns you from su to your normal login. But
happily your system is set up for 'sudo ldconfig' which replaces the
above and is preferable.
ldconfig refreshes the cache for the run-time linker. It's only
necessary when you install a library to a new location and you haven't
yet rebooted.
> Thanks a lot.
My pleasure!
Regards,
Eric