<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.28.3">
</HEAD>
<BODY>
Hello,<BR>
<BR>
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:<BR>
<BR>
...<BR>
<I>checking for GDAL Python bindings... not found</I><BR>
<I>configure: error: GDAL Python bindings required by raster2pgsql.py loader</I><BR>
<BR>
When I installed GDAL I executed ./configure --with-python and I got the following lines:<BR>
<BR>
<I>...</I><BR>
<I>checking for python bindings... checking for python... python</I><BR>
<I>checking for location of Python Makefiles... found</I><BR>
<I>checking where to install Python modules... /usr/lib/python2.6/site-packages</I><BR>
<I>enabled</I><BR>
<I>checking for python setuptools... found</I><BR>
<I>...</I><BR>
<I>SWIG Bindings:          python </I><BR>
<I>...</I><BR>
<BR>
If I execute Python from a console and import GDAL I get:<BR>
<BR>
<I>>>> from osgeo import gdal                                                                                                                                             </I><BR>
<I>Traceback (most recent call last):</I><BR>
<I>  File "<stdin>", line 1, in <module></I><BR>
<I>  File "/usr/lib/python2.6/site-packages/GDAL-1.8.0-py2.6-linux-i686.egg/osgeo/__init__.py", line 21, in <module></I><BR>
<I>    _gdal = swig_import_helper()</I><BR>
<I>  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</I><BR>
<I>    _mod = imp.load_module('_gdal', fp, pathname, description)</I><BR>
<I>ImportError: libgdal.so.1: cannot open shared object file: No such file or directory</I><BR>
<BR>
<BR>
What am I doing wrong?<BR>
<BR>
I have numPy installed. I attach the the gdal and the postgis configure.<BR>
<BR>
<BR>
Best regards.<BR>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
<PRE>
-- 
Emilio de Torres Fernández

Fundación Universidad Empresa de la provincia de Cádiz 
<A HREF="mailto:emilio.detorres@fueca.es">emilio.detorres@fueca.es</A>
Teléfono: 0034-956-015381
Edificio Consorcio Tecnológico de Cádiz.
C/Benito Pérez Galdós s/n.
11002 Cádiz
SPAIN

</PRE>
<BR>
<BR>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>