Skip to content

Instantly share code, notes, and snippets.

@algotrader-dotcom
Last active December 20, 2021 08:36
Show Gist options
  • Select an option

  • Save algotrader-dotcom/3f9d5a001c87bf31f7c1 to your computer and use it in GitHub Desktop.

Select an option

Save algotrader-dotcom/3f9d5a001c87bf31f7c1 to your computer and use it in GitHub Desktop.
Geos installation on centos 6
## GeoOS written in C++ (port from Java) great on peformance improve https://geophp.net/geos.html
sudo yum install php-devel
cd /usr/share
sudo wget http://download.osgeo.org/geos/geos-3.3.9.tar.bz2 # 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/ld.so.conf
Add the line:
/usr/local/lib
sudo /sbin/ldconfig
# Create a /etc/php.d/geos.ini file with the following content:
extension=geos.so
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment