Hi list,<br><br> I have recently been trying to compile and install 64 bit GRASS7 with 64 bit GDAL1.6.3 on 64 bit Ubuntu 9.10. I have successfully compiled both packages (with no errors), but am getting this error upon GRASS startup when the GRASS gui loads and first tries to access GDAL: <br>
<span style="font-family: courier new,monospace;">g.list: error while loading shared libraries: libgdal.so.1: cannot open shared object file: No such file or directory</span><br clear="all"><br>I have that library installed in a standard location:<br>
<span style="font-family: courier new,monospace;">> whereis libgdal.so.1</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">libgdal.so: /usr/lib/libgdal.so.1 /usr/lib64/libgdal.so.1 /usr/local/lib/libgdal.so /usr/local/lib/libgdal.so.1</span><br>
<br>and even have made gdal.conf:<br><span style="font-family: courier new,monospace;">> cat /etc/ld.so.conf.d/gdal.conf</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">/usr/local/lib</span><br><br>And also, this file IS 64 bit:<br><span style="font-family: courier new,monospace;">> file /usr/local/lib/libgdal.so.1.13.3</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">/usr/local/lib/libgdal.so.1.13.3: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, not stripped</span><br><br>Even after explicitly setting <span style="font-family: courier new,monospace;">LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib</span> before grass startup, libgdal.so.1 is not found, even though <span style="font-family: courier new,monospace;">echo $LD_LIBRARY_PATH</span> produces<span style="font-family: courier new,monospace;">: /usr/local/grass7.0.svn-i686-pc-linux-gnu-28_11_2009/lib:/usr/local/lib<br>
<br></span>Result of<span style="font-family: courier new,monospace;"> ldd /usr/local/grass7.0.svn-28_11_2009/bin/g.list</span> shows the only problem:<span style="font-family: courier new,monospace;"> libgdal.so.1 => not found</span>. <br>
<br>Here are some additional ldd responses:<br><span style="font-family: courier new,monospace;">ldd `which gdalinfo`</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> linux-vdso.so.1 => (0x00007fff207ff000)</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> libgdal.so.1 => /usr/local/lib/libgdal.so.1 (0x00007fc141b91000)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
libgeos_c.so.1 => /usr/local/lib/libgeos_c.so.1 (0x00007fc141975000)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> </span><a style="font-family: courier new,monospace;" href="http://libgeos-3.2.0.so/" target="_blank">libgeos-3.2.0.so</a><span style="font-family: courier new,monospace;"> => /usr/local/lib/</span><a style="font-family: courier new,monospace;" href="http://libgeos-3.2.0.so/" target="_blank">libgeos-3.2.0.so</a><span style="font-family: courier new,monospace;"> (0x00007fc1415fa000)</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">
libsqlite3.so.0 => /usr/lib/libsqlite3.so.0 (0x00007fc141372000)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> libodbc.so.1 => /usr/lib/libodbc.so.1 (0x00007fc141112000)</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> libodbcinst.so.1 => /usr/lib/libodbcinst.so.1 (0x00007fc140f05000)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
libltdl.so.7 => /usr/lib/libltdl.so.7 (0x00007fc140cfb000)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> libexpat.so.1 => /lib/libexpat.so.1 (0x00007fc140ad2000)</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> libxerces-c.so.28 => /usr/lib/libxerces-c.so.28 (0x00007fc1404ff000)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> libjasper.so.1 => /usr/lib/libjasper.so.1 (0x00007fc1402a8000)</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">
libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x00007fc140083000)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> libhdf5-1.6.6.so.0 => /usr/lib/libhdf5-1.6.6.so.0 (0x00007fc13fd60000)</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> libz.so.1 => /lib/libz.so.1 (0x00007fc13fb49000)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> libmfhdf.so.4 => /usr/lib/libmfhdf.so.4 (0x00007fc13f921000)</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">
libdf.so.4 => /usr/lib/libdf.so.4 (0x00007fc13f66f000)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> libnetcdf.so.4 => /usr/lib/libnetcdf.so.4 (0x00007fc13f43c000)</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> libpq.so.5 => /usr/lib/libpq.so.5 (0x00007fc13f214000)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> libpthread.so.0 => /lib/libpthread.so.0 (0x00007fc13eff8000)</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">
librt.so.1 => /lib/librt.so.1 (0x00007fc13edf0000)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> libdl.so.2 => /lib/libdl.so.2 (0x00007fc13ebec000)</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> libcurl-gnutls.so.4 => /usr/lib/libcurl-gnutls.so.4 (0x00007fc13e9aa000)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007fc13e69a000)</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">
libm.so.6 => /lib/libm.so.6 (0x00007fc13e416000)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00007fc13e1ff000)</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> libc.so.6 => /lib/libc.so.6 (0x00007fc13de90000)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> libicuuc.so.40 => /usr/lib/libicuuc.so.40 (0x00007fc13db48000)</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">
libicudata.so.40 => /usr/lib/libicudata.so.40 (0x00007fc13cc03000)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> libssl.so.0.9.8 => /lib/libssl.so.0.9.8 (0x00007fc13c9b5000)</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> libcrypto.so.0.9.8 => /lib/libcrypto.so.0.9.8 (0x00007fc13c62e000)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
libkrb5.so.3 => /usr/lib/libkrb5.so.3 (0x00007fc13c376000)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> libcom_err.so.2 => /lib/libcom_err.so.2 (0x00007fc13c172000)</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> libgssapi_krb5.so.2 => /usr/lib/libgssapi_krb5.so.2 (0x00007fc13bf44000)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
libcrypt.so.1 => /lib/libcrypt.so.1 (0x00007fc13bd0b000)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> libldap_r-2.4.so.2 => /usr/lib/libldap_r-2.4.so.2 (0x00007fc13bac2000)</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> /lib64/ld-linux-x86-64.so.2 (0x00007fc142692000)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> libidn.so.11 => /usr/lib/libidn.so.11 (0x00007fc13b88f000)</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">
liblber-2.4.so.2 => /usr/lib/liblber-2.4.so.2 (0x00007fc13b681000)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> libgnutls.so.26 => /usr/lib/libgnutls.so.26 (0x00007fc13b3df000)</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> libgcrypt.so.11 => /lib/libgcrypt.so.11 (0x00007fc13b167000)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
libk5crypto.so.3 => /usr/lib/libk5crypto.so.3 (0x00007fc13af3c000)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> libkrb5support.so.0 => /usr/lib/libkrb5support.so.0 (0x00007fc13ad34000)</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> libkeyutils.so.1 => /lib/libkeyutils.so.1 (0x00007fc13ab31000)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
libresolv.so.2 => /lib/libresolv.so.2 (0x00007fc13a918000)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> libsasl2.so.2 => /usr/lib/libsasl2.so.2 (0x00007fc13a6fe000)</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> libtasn1.so.3 => /usr/lib/libtasn1.so.3 (0x00007fc13a4ed000)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> libgpg-error.so.0 => /lib/libgpg-error.so.0 (0x00007fc13a2e9000)</span><br>
<br><br>I have asked on the GRASS dev list, but everyone is stumped there and feel that it is soemthing to do with how Ihave installed GDAL on my system rather than a GRASS thing. Do any of you have any idea why gdal libraries seem to be invisible to GRASS on my system? Oh, and yes, I do run ldconfig every time I fool with libraries or conf files.<br>
<br>Any help will be greatly appreciated,<br><br>Cheers,<br>-- <br>Isaac I Ullah, M.A.<br><br>Archaeology PhD Candidate,<br>ASU School of Evolution and Social Change<br><br>Research Assistant,<br>Mediterranean Landscape Dynamics Project<br>
***************************************************<br><a href="mailto:isaac.ullah@asu.edu">isaac.ullah@asu.edu</a><br><a href="mailto:ullah@archaeologist.com">ullah@archaeologist.com</a><br><br><a href="http://www.public.asu.edu/~iullah">http://www.public.asu.edu/~iullah</a><br>
***************************************************<br>