I am trying to install the Python GDAL package http://trac.osgeo.org/gdal/wiki/GdalOgrInPython .
I have successfully installed the dependencies: Python 2.7.8, Numpy 1.8.2, libgdal 1.10.0 and gdal-devel. However, when I use this command:
pip install GDAL==1.10.0
I got some errors:
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I ../../ port -I ../../ gcore -I. ./../alg -I ../../ ogr / -I / usr / local / include / python2.7 -I / root / .local / lib / python2.7 / site-packages / numpy / core / include -I / usr / local / include -c extensions / gdal_wrap.cpp -o build / temp.linux-x86_64-2.7 / extensions / gdal_wrap.o
gcc: extensions / gdal_wrap.cpp: C ++ compiler is not installed on this system
error: command 'gcc' failed with exit status 1
Here is my system info:
LSB Version :: core-4.0-amd64: core-4.0-ia32: core-4.0-noarch: graphics-4.0-amd64: graphics-4.0-ia32: graphics-4.0-noarch: printing-4.0-amd64: printing-4.0- ia32: print-4.0-noarch
Distributor ID: CentOS
Description: CentOS release 5.10 (Final)
Release: 5.10
Codename: final
Linux version 2.6.18-274.el5 ( mockbuild@builder10.centos.org ) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-50)) # 1 SMP Fri Jul 22 04:43:29 EDT 2011
And my compiler info:
gcc (GCC) 4.4.6 Copyright (C) 2010 Free Software Foundation, Inc.
g ++ (GCC) 4.1.2 20080704 (Red Hat 4.1.2-54) Copyright (C) 2006 Free Software Foundation, Inc.
I also tried using:
# pip install --no-install GDAL==1.10.0
# cd /tmp/pip_build_root/GDAL && python setup.py build
But this led to the same mistakes.
Finally, I tried to create it from the source:
Unfortunately, the same errors did appear.
. ? .