help-gsl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-gsl] gsl installation question


From: Joakim Hove
Subject: Re: [Help-gsl] gsl installation question
Date: Wed, 08 Dec 2004 10:50:01 +0100
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.2 (gnu/linux)

Jiajun Gu <address@hidden> writes:


> ./a.out: error while loading shared libraries: libgsl.so.0: cannot
> open shared object file: No such file or directory

Read the section "Shared Libraries" in the "Using the Libarry" chapter
of the manual. In addition to the solution based in the environment
variable LD_LIBRARY_PATH you can also:

 1. Add a line pointing to the directory containing the libraries in
   the /etc/ld.so.conf file.

 2. Move the libraries to a standard lib path (e.g. /usr/local/lib).

 3. Use the -rpath argument to the the linker (something like:
    -Wl,-rpath,/path/to/library in the gcc link step).

The two first suggestions require root access.


HTH - Joakim

-- 
Joakim Hove
hove AT ift uib no
Tlf: +47 (55 5)8 27 90 
Fax: +47 (55 5)8 94 40
http://www.ift.uib.no/~hove/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]