[postgis-devel] Error: GDAL Python bindings required
Pierre Racine
Pierre.Racine at sbf.ulaval.ca
Tue Apr 19 07:12:10 PDT 2011
Hi Emilio,
Do you have many versions of Python installed ? Are you sure your ./configure is looking for the one where the GDAL Pygton binding is installed ?
Pierre
De : postgis-devel-bounces at postgis.refractions.net [mailto:postgis-devel-bounces at postgis.refractions.net] De la part de Emilio de Torres Fernández
Envoyé : 12 avril 2011 05:21
À : postgis-devel at postgis.refractions.net
Objet : [postgis-devel] Error: GDAL Python bindings required
Hello,
I'm trying to compile Postgis Raster 2.0 in a Red Hat Linux Enterprise 6 but I get the following error when I execute ./configure --with-raster:
...
checking for GDAL Python bindings... not found
configure: error: GDAL Python bindings required by raster2pgsql.py loader
When I installed GDAL I executed ./configure --with-python and I got the following lines:
...
checking for python bindings... checking for python... python
checking for location of Python Makefiles... found
checking where to install Python modules... /usr/lib/python2.6/site-packages
enabled
checking for python setuptools... found
...
SWIG Bindings: python
...
If I execute Python from a console and import GDAL I get:
>>> from osgeo import gdal
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.6/site-packages/GDAL-1.8.0-py2.6-linux-i686.egg/osgeo/__init__.py", line 21, in <module>
_gdal = swig_import_helper()
File "/usr/lib/python2.6/site-packages/GDAL-1.8.0-py2.6-linux-i686.egg/osgeo/__init__.py", line 17, in swig_import_helper
_mod = imp.load_module('_gdal', fp, pathname, description)
ImportError: libgdal.so.1: cannot open shared object file: No such file or directory
What am I doing wrong?
I have numPy installed. I attach the the gdal and the postgis configure.
Best regards.
--
Emilio de Torres Fernández
Fundación Universidad Empresa de la provincia de Cádiz
emilio.detorres at fueca.es<mailto:emilio.detorres at fueca.es>
Teléfono: 0034-956-015381
Edificio Consorcio Tecnológico de Cádiz.
C/Benito Pérez Galdós s/n.
11002 Cádiz
SPAIN
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-devel/attachments/20110419/56621232/attachment.html>
More information about the postgis-devel
mailing list