<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"Préformaté HTML Car";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.PrformatHTMLCar
        {mso-style-name:"Préformaté HTML Car";
        mso-style-priority:99;
        mso-style-link:"Préformaté HTML";
        font-family:Consolas;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=FR link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Hi Emilio,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>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 ?<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Pierre<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>De :</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> postgis-devel-bounces@postgis.refractions.net [mailto:postgis-devel-bounces@postgis.refractions.net] <b>De la part de</b> Emilio de Torres Fernández<br><b>Envoyé :</b> 12 avril 2011 05:21<br><b>À :</b> postgis-devel@postgis.refractions.net<br><b>Objet :</b> [postgis-devel] Error: GDAL Python bindings required<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>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.<o:p></o:p></p><table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0 width="100%" style='width:100.0%'><tr><td style='padding:0cm 0cm 0cm 0cm'><pre><o:p> </o:p></pre><pre>-- <o:p></o:p></pre><pre>Emilio de Torres Fernández<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>Fundación Universidad Empresa de la provincia de Cádiz <o:p></o:p></pre><pre><a href="mailto:emilio.detorres@fueca.es">emilio.detorres@fueca.es</a><o:p></o:p></pre><pre>Teléfono: 0034-956-015381<o:p></o:p></pre><pre>Edificio Consorcio Tecnológico de Cádiz.<o:p></o:p></pre><pre>C/Benito Pérez Galdós s/n.<o:p></o:p></pre><pre>11002 Cádiz<o:p></o:p></pre><pre>SPAIN<o:p></o:p></pre><pre><o:p> </o:p></pre></td></tr></table><p class=MsoNormal><o:p> </o:p></p></div></body></html>