[gdal-dev] Installing gdal

Fernando Miguez fer.eze.miguez at gmail.com
Thu Dec 31 13:24:36 EST 2009


Hi all,

I'm trying to install gdal (1.6.1) and get the following error

python setup.py build

[...]

gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fPIC
-I../../port -I../../gcore -I../../alg -I../../ogr/ -I/usr/include/python2.4
-I. -I/usr/include -c extensions/gdal_wrap.cpp -o
build/temp.linux-x86_64-2.4/extensions/gdal_wrap.o
gcc: error trying to exec 'cc1plus': execvp: No such file or directory
error: command 'gcc' failed with exit status 1

Some background:
uname -a
2.6.18-53.1.14.el5 #1 SMP Wed Mar 5 11:37:38 EST 2008 x86_64 x86_64 x86_64
GNU/Linux

/usr/lib64/libgdal.so.1
/usr/lib64/libgdal.so.1.11.4

gcc --version
gcc (GCC) 4.1.2 20070626 (Red Hat 4.1.2-14)

I edited setup.cfg to this

[egg_info]
tag_build =
tag_date = 0
tag_svn_revision = 0

[build_ext]
gdal_config = /usr/bin/gdal-config

and

[...]$ locate gdal-config
/usr/bin/gdal-config

I'm trying to install locally as I don't have root privileges.

Any ideas or suggestions are welcome,

Thanks,

Fernando
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20091231/268fb3a8/attachment.html


More information about the gdal-dev mailing list