I installed gdal from source using steps from this answer https://gis.stackexchange.com/a/21739/60378 (ommiting first line sudo apt-get install build-essential python-all-dev as it did not work for me). Everything went without errors. When i try to import osego or gdal it gives me error: undefined symbol: GDALSetRasterUnitType
>>> import gdal
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib64/python2.7/site-packages/GDAL-1.9.0-py2.7-linux-x86_64.egg/gdal.py", line 2, in <module>
from osgeo.gdal import deprecation_warn
File "/usr/lib64/python2.7/site-packages/GDAL-1.9.0-py2.7-linux-x86_64.egg/osgeo/__init__.py", line 21, in <module>
_gdal = swig_import_helper()
File "/usr/lib64/python2.7/site-packages/GDAL-1.9.0-py2.7-linux-x86_64.egg/osgeo/__init__.py", line 17, in swig_import_helper
_mod = imp.load_module('_gdal', fp, pathname, description)
ImportError: /usr/lib64/python2.7/site-packages/GDAL-1.9.0-py2.7-linux-x86_64.egg/osgeo/_gdal.so: undefined symbol: GDALSetRasterUnitType
Server is using fedora core 14, which I cannot upgrade right now. What could be wrong? Is there any simpler gdal installation method?
1.9.0instead of the recent stable release? What was the output ofmakeandinstall? Alternatives are for instance the precompiled Fedora GDAL package or conda, which comes with it's own Python binary package manager, which also contains GDAL. – Kersten Oct 14 '15 at 15:43http://gis.stackexchange.com/questions/16515/how-to-import-a-raster-into-postgis
– Hairy Oct 19 '15 at 09:03