<p dir="ltr">Edison, </p>
<p dir="ltr">I've had similar problems (although for different reasons I think).  The suggestions at the end of this are similar to what I've done to make it work for me, <a href="http://lists.osgeo.org/pipermail/gdal-dev/2009-March/020132.html">http://lists.osgeo.org/pipermail/gdal-dev/2009-March/020132.html</a></p>

<p dir="ltr">Sudo ldconfig might help too.</p>
<p dir="ltr">Regards, Eli</p>
<div class="gmail_quote">On May 10, 2013 8:38 PM, "edison Qian" <<a href="mailto:edison90110@gmail.com">edison90110@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><span style="font-family:arial,sans-serif;font-size:13px">Dear List:</span><div><font face="arial, sans-serif"><br></font><div><div dir="ltr"><div style="font-family:arial,sans-serif;font-size:13px">i have met an error about GDAL that when a cpp file including GDAL library is coded, i compile this cpp file with following command in ubuntu bash:</div>


<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">    $g++ gdal_linux.cpp -I /usr/local/include/ -L /usr/local/lib/ -lgdal -o aaa</div><div style="font-family:arial,sans-serif;font-size:13px">


<br></div><div style="font-family:arial,sans-serif;font-size:13px">it succeeds!</div><div style="font-family:arial,sans-serif;font-size:13px">however, when i run file aaa, an error appears:</div><div style="font-family:arial,sans-serif;font-size:13px">


<br></div><div style="font-family:arial,sans-serif;font-size:13px">    error while loading shared libraries: libgdal.so.1: cannot open shared object file: No such file or directory</div><div style="font-family:arial,sans-serif;font-size:13px">


<br></div><div style="font-family:arial,sans-serif;font-size:13px">which is similar to the one Wesley got: <a href="http://lists.osgeo.org/pipermail/gdal-dev/2009-March/020128.html" target="_blank">http://lists.osgeo.org/pipermail/gdal-dev/2009-March/020128.html</a></div>


<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">i wonder whether this problem has been solved or not because i've not seen any solutions to it.</div>


<div style="font-family:arial,sans-serif;font-size:13px">Any help would be greatly appreciated.</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">


Kind regards,</div><div style="font-family:arial,sans-serif;font-size:13px">Edison</div></div></div>
</div></div>
<br>_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br></blockquote></div>