On Fri, May 9, 2014 at 11:52 AM, Moritz Lennert <[email protected]> wrote: > 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@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
Yes this works: export LD_LIBRARY_PATH=$(grass71 --config path)/lib python python_test_ctypes.py also this: export LD_LIBRARY_PATH=`grass71 --config path`/lib python python_test_ctypes.py nice, I could have tried that earlier :) Now we just need similar instructions for Windows and MacOSX. Markus _______________________________________________ grass-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/grass-dev
