Hello,
I'm trying to install gdal so i can get at the osgeo.ogr Python bindings.
I'm running Ubuntu 9.0 with Python 2.6.

The easy_install of gdal keeps throwing an error. Luckily when I compiled
the source and make the install I get the same error (see below). So I'm
guessing it's something about my current settings. I'm not smart enough to
understand what the error is telling me and that's why I need your help.
Where do I take it from here? Ideas?


copying osgeo/gdal.py -> build/lib.linux-i686-2.6/osgeo
running build_ext
building 'osgeo._gdal' extension
creating build/temp.linux-i686-2.6
creating build/temp.linux-i686-2.6/extensions
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
-I/home/gregcorradini/Downloads/gdal-1.7.2/include -c
extensions/gdal_wrap.cpp -o build/temp.linux-i686-2.6/extensions/gdal_wrap.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for
Ada/C/ObjC but not for C++
extensions/gdal_wrap.cpp:149:20: error: Python.h: No such file or directory
extensions/gdal_wrap.cpp:2721:4: error: #error "This python version requires
swig to be run with the '-classic' option"
extensions/gdal_wrap.cpp:780: error: ‘PyObject’ was not declared in this
scope
extensions/gdal_wrap.cpp:780: error: ‘str’ was not declared in this scope
extensions/gdal_wrap.cpp:781: error: expected ‘,’ or ‘;’ before ‘{’ token
extensions/gdal_wrap.cpp:804: error: expected initializer before ‘*’ token
extensions/gdal_wrap.cpp:830: error: expected initializer before ‘*’ token
extensions/gdal_wrap.cpp:884: error: expected initializer before ‘*’ token
extensions/gdal_wrap.cpp:905: error: expected initializer before ‘*’ token
In file included from /usr/include/c++/4.4/stdexcept:38,
                 from extensions/gdal_wrap.cpp:2745:
/usr/include/c++/4.4/exception:35: error: expected declaration before end of
line
error: command 'gcc' failed with exit status 1
make[2]: *** [build] Error 1
make[2]: Leaving directory
`/home/gregcorradini/Downloads/gdal-1.7.2/swig/python'
make[1]: *** [build] Error 2
make[1]: Leaving directory `/home/gregcorradini/Downloads/gdal-1.7.2/swig'
make: *** [swig-modules] Error 2
_______________________________________________
Community mailing list
[email protected]
http://lists.gispython.org/mailman/listinfo/community

Reply via email to