Geos installation on centos6

JoaoMachado edited this page Jan 15, 2015 · 13 revisions
sudo yum install php-devel
cd /usr/share
sudo wget  # Note this changes
sudo tar -xvjf geos-3.3.9.tar.bz2
cd geos-3.3.9
sudo ./configure --enable-php && sudo make clean && sudo make
sudo make install
sudo ldconfig
sudo vi /etc/

Add the line:


Save (ESC -> :x)

Run ldconfig:

sudo /sbin/ldconfig

create a /etc/php.d/geos.ini file with the following content:

; GEOS extension

Optional - Add extension to php.ini, usually under "Dynamic Extensions" add the following:

extension = ""

example location with WHM would be "/usr/local/lib/php.ini"


If the compile fails with "g++ not found" or libtool gives an error, try running

sudo yum groupinstall 'Development Tools'

Makes sure libraries and other stuff are there to compile.