Edison, 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, http://lists.osgeo.org/pipermail/gdal-dev/2009-March/020132.html
Sudo ldconfig might help too. Regards, Eli On May 10, 2013 8:38 PM, "edison Qian" <edison90...@gmail.com> wrote: > Dear List: > > 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: > > $g++ gdal_linux.cpp -I /usr/local/include/ -L /usr/local/lib/ -lgdal > -o aaa > > it succeeds! > however, when i run file aaa, an error appears: > > error while loading shared libraries: libgdal.so.1: cannot open shared > object file: No such file or directory > > which is similar to the one Wesley got: > http://lists.osgeo.org/pipermail/gdal-dev/2009-March/020128.html > > i wonder whether this problem has been solved or not because i've not seen > any solutions to it. > Any help would be greatly appreciated. > > Kind regards, > Edison > > _______________________________________________ > gdal-dev mailing list > gdal-dev@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/gdal-dev >
_______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev