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

Markus Neteler neteler at osgeo.org
Fri May 9 01:59:47 PDT 2014


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?

Markus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: python_test_ctypes.py
Type: text/x-python
Size: 1169 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20140509/a2c75844/attachment.py>


More information about the grass-dev mailing list