phayes / geoPHP

Advanced geometry operations in PHP
https://geophp.net
Other
863 stars 263 forks source link

Update instructions for compiling 3.6.2 #150

Open gopi-ar opened 6 years ago

gopi-ar commented 6 years ago

Most of the links on the website for installation are down or don't work with 3.6.2 which doesn't include PHP bindings by default.

If someone comes by this, here are instructions that work (from here):

curl -s -O http://download.osgeo.org/geos/geos-3.6.1.tar.bz2 &&\ tar -xjvf geos-3.6.1.tar.bz2 &&\ cd geos-3.6.1/ &&\ ./configure --enable-php &&\ make &&\ make install &&\ cd ..

ldconfig

curl -s -O https://git.osgeo.org/gogs/geos/php-geos/archive/master.tar.gz &&\ tar -zxvf master.tar.gz &&\ cd php-geos &&\ ./autogen.sh &&\ ./configure &&\ make &&\ make install &&\ cd .. &&

marcorivm commented 5 years ago

The link for the second file has changed and the curl command fails. New url https://git.osgeo.org/gitea/geos/php-geos/archive/master.tar.gz