Hi all,<br>I&#39;ve been using Python-gdal bindings in Ubuntu 9.04 without problems.<br>Recently I made a fresh Ubuntu 9.10 install and I can&#39;t install the bindings on it...<br><br clear="all">leo@rs7 ~/Descargas/GDAL-1.6.1 $ python setup.py build<br>
numpy include /usr/lib/python2.6/dist-packages/numpy/core/include<br>setup.py:78: DeprecationWarning: The popen2 module is deprecated.  Use the subprocess module.<br>  import popen2<br>running build<br>running build_py<br>
creating build<br>creating build/lib.linux-x86_64-2.6<br>copying gdal.py -&gt; build/lib.linux-x86_64-2.6<br>copying ogr.py -&gt; build/lib.linux-x86_64-2.6<br>copying osr.py -&gt; build/lib.linux-x86_64-2.6<br>copying gdalconst.py -&gt; build/lib.linux-x86_64-2.6<br>
copying gdalnumeric.py -&gt; build/lib.linux-x86_64-2.6<br>creating build/lib.linux-x86_64-2.6/osgeo<br>copying osgeo/gdal.py -&gt; build/lib.linux-x86_64-2.6/osgeo<br>copying osgeo/osr.py -&gt; build/lib.linux-x86_64-2.6/osgeo<br>
copying osgeo/gdal_array.py -&gt; build/lib.linux-x86_64-2.6/osgeo<br>copying osgeo/gdalconst.py -&gt; build/lib.linux-x86_64-2.6/osgeo<br>copying osgeo/__init__.py -&gt; build/lib.linux-x86_64-2.6/osgeo<br>copying osgeo/gdalnumeric.py -&gt; build/lib.linux-x86_64-2.6/osgeo<br>
copying osgeo/ogr.py -&gt; build/lib.linux-x86_64-2.6/osgeo<br>running build_ext<br>Could not run gdal-config!!!!<br>building &#39;osgeo._gdal&#39; extension<br>creating build/temp.linux-x86_64-2.6<br>creating build/temp.linux-x86_64-2.6/extensions<br>
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I../../port -I../../gcore -I../../alg -I../../ogr/ -I/usr/include/python2.6 -I/usr/lib/python2.6/dist-packages/numpy/core/include -c extensions/gdal_wrap.cpp -o build/temp.linux-x86_64-2.6/extensions/gdal_wrap.o<br>
cc1plus: warning: command line option &quot;-Wstrict-prototypes&quot; is valid for Ada/C/ObjC but not for C++<br>extensions/gdal_wrap.cpp:129:20: error: Python.h: No existe el fichero ó directorio<br>extensions/gdal_wrap.cpp:2502:4: error: #error &quot;This python version requires swig to be run with the &#39;-classic&#39; option&quot;<br>
extensions/gdal_wrap.cpp:2587:22: error: cpl_port.h: No existe el fichero ó directorio<br>extensions/gdal_wrap.cpp:2588:24: error: cpl_string.h: No existe el fichero ó directorio<br>extensions/gdal_wrap.cpp:2590:18: error: gdal.h: No existe el fichero ó directorio<br>
extensions/gdal_wrap.cpp:2591:23: error: gdal_priv.h: No existe el fichero ó directorio<br>extensions/gdal_wrap.cpp:2592:22: error: gdal_alg.h: No existe el fichero ó directorio<br>extensions/gdal_wrap.cpp:2593:24: error: gdalwarper.h: No existe el fichero ó directorio<br>
extensions/gdal_wrap.cpp:734: error: expected initializer before ‘*’ token<br>extensions/gdal_wrap.cpp:789: error: expected initializer before ‘*’ token<br>extensions/gdal_wrap.cpp:810: error: expected initializer before ‘*’ token<br>
In file included from /usr/include/c++/4.4/stdexcept:38,<br>                 from extensions/gdal_wrap.cpp:2521:<br>/usr/include/c++/4.4/exception:35: error: expected declaration before end of line<br>error: command &#39;gcc&#39; failed with exit status 1<br>
<br>the problem is with gdal-config (it is installed on /usr/local/bin), but I don&#39;t now how to fix it!<br><br>Tanks in advise<br>-- <br>Lic. Leonardo A. Hardtke   <br>Laboratorio de Teledetección y S.I.G.  <br>Centro Nacional Patagónico (CONICET) <br>
Bvd. Brown 2825, 9120 <br>Puerto Madryn, Chubut, Argentina <br>