首页 > 代码库 > Geos installation on centos6
Geos installation on centos6
sudo yum install php-develcd /usr/sharesudo wget http://download.osgeo.org/geos/geos-3.3.9.tar.bz2 # Note this changessudo tar -xvjf geos-3.3.9.tar.bz2cd geos-3.3.9sudo ./configure --enable-php && sudo make clean && sudo makesudo make installsudo ldconfigsudo vi /etc/ld.so.conf
Add the line:
/usr/local/lib
Save (ESC -> :x)
Run ldconfig:
sudo /sbin/ldconfig
create a /etc/php.d/geos.ini file with the following content:
; GEOS extensionextension=geos.so
Optional - Add extension to php.ini, usually under "Dynamic Extensions" add the following:
extension = "geos.so"
example location with WHM would be "/usr/local/lib/php.ini"
Troubleshooting
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.
Geos installation on centos6
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。