[postgis-users] How configure postgis to enable the rasters.

Andrea Peri aperi2007 at gmail.com
Wed Aug 24 15:54:33 PDT 2011


>Are you able to load the GDAL python module through python?  Try the
>following in python:
>
>from osgeo import gdal
>
>If the above doesn't work, the GDAL python module may not be located in
>any of the default module paths expected by python.  You may need to
>specify the environmental variable PYTHONPATH to include the path to the
>GDAL python module.
>
>-bborie


Hi,
Thx for you help.

I try your test.

it give this error.

Python 2.6.6 (r266:84292, Apr 11 2011, 15:50:32)
[GCC 4.4.4 20100726 (Red Hat 4.4.4-13)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from osgeo import gdal
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File
"/usr/lib64/python2.6/site-packages/GDAL-1.9.0-py2.6-linux-x86_64.egg/osgeo/__init__.py",
line 21, in <module>
    _gdal = swig_import_helper()
  File
"/usr/lib64/python2.6/site-packages/GDAL-1.9.0-py2.6-linux-x86_64.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
>>>

It seem not find the libgdal.so.1

I check it is available in the "/usr/local/lib" path
so as you suggest, I set
export PYTHONPATH=/usr/local/lib
but the error is again here.

Python 2.6.6 (r266:84292, Apr 11 2011, 15:50:32)
[GCC 4.4.4 20100726 (Red Hat 4.4.4-13)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from osgeo import gdal
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File
"/usr/lib64/python2.6/site-packages/GDAL-1.9.0-py2.6-linux-x86_64.egg/osgeo/__init__.py",
line 21, in <module>
    _gdal = swig_import_helper()
  File
"/usr/lib64/python2.6/site-packages/GDAL-1.9.0-py2.6-linux-x86_64.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
>>>


-- 
-----------------
Andrea Peri
. . . . . . . . .
qwerty àèìòù
-----------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20110825/57d36483/attachment.html>


More information about the postgis-users mailing list