Skip to content

Linking problem with rgdal

1 message · Rainer M Krug

#
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 02/04/14, 15:15 , Mark Payne wrote:
Great that it works.

When you are in Paris, just let me know...
What do you mean by "permanent"?

The advantage of the .bashrc is that it is user specific, i.e.
different users can have different settings and you don't need
administrator privileges. Check out

http://tldp.org/HOWTO/Program-Library-HOWTO/shared-libraries.html

for details on shared libraries.

I used the LD_LIBRARY_PATH approach all the time on a cluster as it is
easy and transparent (you see in your .bashrc what you are doing and
not in some other files and can even specify this in your submit
script of the jobs - that is what I did).

A (slightly) different approach would be to install all user installed
libraries into a folder ~/myProgs/lib and then simply add these to the
LD_LIBRARY_PATH. Then you have to specify this when compiling gdal and
proj (if I remember correctly -prefix=$HOME/myProgs will do it). But
then you still have to add $HOME/myProgs/lib to LD_LIBRARY_PATH - but
then only that one.

Cheers,

Rainer
libgdal.so.1: cannot open shared object file: No such file or directory
- -- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
Biology, UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :       +33 - (0)9 53 10 27 44
Cell:       +33 - (0)6 85 62 59 98
Fax :       +33 - (0)9 58 10 27 44

Fax (D):    +49 - (0)3 21 21 25 22 44

email:      Rainer at krugs.de

Skype:      RMkrug
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.22 (Darwin)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJS8PoUAAoJENvXNx4PUvmCN/YH/1dHnCXWeXiPJtXr0zO4czng
ptYstz/wsyDoRlUQsWRyum3BZ/edMDi3rlsS1+Z3Tp1QayS/o8s7Ri5pwee4dbqQ
7ezLpfz2pnmavhRJGPM6lxX+MbrJSgRxZpJ71x4GUVU5jjPE7mehR1mt7XhpCFOV
zj1/5Yp0fO3ilP6/fwDtn8x7fUwpi9iUHU7Dvq0pzq+tAr7WqLtG+39K8WqoyYBP
4vrf/iARFFHV93RPePvIljFH/7nS3GxvcLKnZU15QtqnECGaEBzq1Um0O7c7nTgB
lPIO0WDvkaD/lCExAVg/qyz4CblDZ+aMIhZi40evYn8gFcWzmH6AqV6KsRuLS5c=
=Z8Oe
-----END PGP SIGNATURE-----