I am having some trouble with GDAL (v2.1-dev). I build it from source today using Poppler and OpenJPEG. All the command line utilities work fine, but none of the Python plugins work at all, producing this error message:
Traceback (most recent call last):
File "/usr/local/bin/gdal_merge.py", line 37, in <module>
import gdal
File "/usr/local/lib/python2.7/dist-packages/gdal.py", line 2, in <module>
from osgeo.gdal import deprecation_warn
File "/usr/local/lib/python2.7/dist-packages/osgeo/__init__.py", line 21, in <module>
_gdal = swig_import_helper()
File "/usr/local/lib/python2.7/dist-packages/osgeo/__init__.py", line 17, in swig_import_helper
_mod = imp.load_module('_gdal', fp, pathname, description)
ImportError: libgdal.so.20: cannot open shared object file: No such file or directory
Now, I've seen plenty of threads that say update LD_LIBRARY_PATH
or include /usr/local/bin/
in my ld.so.conf
file. I've done both of those things and they don't help. Furthermore, those posts all refer to libgdal.so.1
not being found. So, I added the location of libgdal.so.20
to ld.so.conf
and still no dice.
Any recommendations?
Update (11/2/15)
I am running Ubuntu 14.04.03 32bit, cleanly installed just a few days ago.
I followed these instructions to download, make, and install GDAL and OpenJPEG in a folder I made called /home/ronn4031/src/.