[gdal-dev] GDAL easy_install problem

Greg Corradini gregcorradini at gmail.com
Mon Sep 27 23:00:30 EDT 2010


Hello,
I'm trying to install GDAL using easy_install as detailed here (
http://trac.osgeo.org/gdal/wiki/GdalOgrInPython). I've never see this error
before on my other GDAL Ubuntu 9.0 installs. Not sure what it means. I'm
wondering if it might have to do with NumPy (I think I screwed that install
up). Any ideas?


# sudo easy_install GDAL
Searching for GDAL
Reading http://pypi.python.org/simple/GDAL/
Reading http://www.gdal.org
Best match: GDAL 1.7.1
Downloading
http://pypi.python.org/packages/source/G/GDAL/GDAL-1.7.1.tar.gz#md5=38b838d528b309a28a3aa24d4fcef3cd
Processing GDAL-1.7.1.tar.gz
Running GDAL-1.7.1/setup.py -q bdist_egg --dist-dir
/tmp/easy_install-drTCwM/GDAL-1.7.1/egg-dist-tmp-nxP_u9
Could not run gdal-config!!!!
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for
Ada/C/ObjC but not for C++
extensions/gdal_wrap.cpp: In function ‘int PyProgressProxy(double, const
char*, void*)’:
extensions/gdal_wrap.cpp:2969: warning: the address of ‘_Py_NoneStruct’ will
never be NULL
extensions/gdal_wrap.cpp: In function ‘PyObject*
_wrap_MajorObject_SetMetadata__SWIG_0(PyObject*, PyObject*)’:
extensions/gdal_wrap.cpp:5854: warning: deprecated conversion from string
constant to ‘char*’
extensions/gdal_wrap.cpp: In function ‘PyObject*
_wrap_PushErrorHandler(PyObject*, PyObject*)’:
extensions/gdal_wrap.cpp:4888: warning: ‘argv[0]’ may be used uninitialized
in this function
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for
Ada/C/ObjC but not for C++
extensions/osr_wrap.cpp:2906: warning: ‘char*
GDALPythonObjectToCStr(PyObject*)’ defined but not used
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for
Ada/C/ObjC but not for C++
In file included from extensions/ogr_wrap.cpp:2808:
/usr/local/include/ogr_p.h:94:17: error: swq.h: No such file or directory
In file included from extensions/ogr_wrap.cpp:2808:
/usr/local/include/ogr_p.h:105: error: ‘swq_field_type’ does not name a type
error: Setup script exited with error: command 'gcc' failed with exit status
1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20100927/ae5e3234/attachment.html


More information about the gdal-dev mailing list