[GRASS-dev] Calling GRASS from outside: cannot open shared object file

Moritz Lennert mlennert at club.worldonline.be
Fri May 9 02:52:11 PDT 2014


On 09/05/14 10:59, Markus Neteler wrote:
> Hi,
>
> I get it running (on Linux, winGRASS untested) when setting up the
> LD_LIBRARY_PATH at system level:
>
> su
> echo "`grass71 --config path`/lib" > /etc/ld.so.conf.d/grass71.conf
> ldconfig
> exit
>
> # run as normal user:
> python python_test_ctypes.py
> ...
> precip_annual at user1
> /home/neteler/grassdata/nc_spm_08_grass7
>
> Works.
> The issue is that we cannot easily enforce the users to add a file in
> /etc/ld.so.conf.d/ since it requires admin rights.
>
> Suggestions?

Doesn't this work:

export LD_LIBRARY_PATH= export LD_LIBRARY_PATH=$(grass71 --config path)/lib
python python_test_ctypes.py

?

Moritz--
Département de Géographie
Université Libre de Bruxelles
CP 130/03
Av. F.D. Roosevelt 50
1050 Bruxelles
Belgique

tél. + 32 2 650.68.12 / 68.11 (secr.)
fax  + 32 2 650.68.30


More information about the grass-dev mailing list