Geos installation on centos6

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

Save (ESC -> :x)

Run ldconfig:

sudo /sbin/ldconfig

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

; GEOS extension
extension=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.

时间: 2025-01-16 13:50:55

Geos installation on centos6的相关文章

docker这么火,我也想玩玩 centos6.5

centos6.5 64bit 安装epel,参考我转的这个博文 http://blog.csdn.net/defeattroy/article/details/45440051 [[email protected] ~]# yum update [[email protected] ~]# yum install docker-io [[email protected] ~]# service docker start [ro[email protected] ~]# chkconfig do

Centos6安装oracle10g

刚刚开始学OCP.第一关,安装,被折腾得稀碎...查询了大量资料,多次失败后终于总结出一些经验,简单整理如下. 需要注意的是:如果想尝试我提供的环境设置脚本,一定要根据自己的实际情况修改变量! Centos6安装oracle10g一.安装流程1.最小安装Centos6.6虚拟机(虚拟机系统推荐Virtualbox https://www.virtualbox.org ),Centos6镜像地址 http://mirrors.163.com/centos/6.6/isos/x86_64/CentO

Centos7安装Gitlab10.0

gitlab官方安装方法,如下链接.因国内网络限制,本文修改部分内容.因源码安装太折磨人,故使用官网的Omnibus安装包安装. # Centos7 https://www.gitlab.cc/installation/#centos-7  # Centos6 https://www.gitlab.cc/installation/#centos-6 1. 安装并配置必要的依赖关系 如果你想使用 Postfix 发送邮件,请在安装过程中根据提示选择 'Internet Site'. 你也可以用 S

CentOS6上新增硬盘并安装配置grub文件

实例: 为运行于虚拟机上的CentOS 6添加一块新硬件,提供两个主分区: (1) 为硬盘新建两个主分区:并为其安装grub: (2) 为硬盘的第一个主分区提供内核和ramdisk文件: 为第二个分区提供rootfs: (3) 为rootfs提供bash.ls.cat程序及所依赖的库文件: (4) 为grub提供配置文件: (5) 将新的硬盘设置为第一启动项并能够正常启动目标主机: 新增硬盘并分区 [[email protected]~]# fdisk -l /dev/sdb Disk /dev

ZABBIX3.0在CentOS6.6上的安装部署

Zabbix3.0界面焕然一新,一改10多年的老面孔,alpha4的更新具体记录下:http://www.zabbix.com/rn3.0.0alpha4.php What's New in 3.0.0alpha4 Zabbix 3.0安装过程与2.x的变化类似,但又少许需要注意的坑(以下标红的),否则会坑的不行... 基础环境: CentOS 6.6 X64 Nginx:1.9.7 Mysql:5.5.32 PHP:5.5.30( zabbix_3.0 要求php版本至少在5.4以上 ) 一.

阿里云centos6.5实践编译安装LNMP架构web环境

LNMP 代表的就是:Linux系统下Nginx+MySQL+PHP这种网站服务器架构. 本次测试需求: **实践centos6.5编译安装 LNMP生产环境 架构 web生产环境 使用 ngx_pagespeed 优化前端 xcache 优化php 用 google_perftools 优化nginx 和 php内存分配 ** 作为 Web 服务器:相比 Apache,Nginx 使用更少的资源,支持更多的并发连接,体现更高的效率. 作为负载均衡服务器:Nginx 既可以在内部直接支持Rail

Centos6.5安装配置KVM

1. vmware安装centos6.5 64位 (略) 其中有几个注意的地方:a. 内存给4g,CPU2颗b. 磁盘给50g, 或者再单独分一个磁盘,用来存储虚拟机文件c. 最关键的一步,在创建虚拟机时,启用CPU虚拟化 2.  安装kvm前的准备工作 a. 清除iptables规则 service iptables stop; service iptables save b. 关闭selinux sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /

Centos6.7 64位 kvm虚拟化安装配置

参考资料: http://www.apelearn.com/bbs/thread-8299-1-1.html http://taokey.blog.51cto.com/4633273/1540873 http://www.server-world.info/en/note?os=CentOS_6&p=kvm&f=1http://koumm.blog.51cto.com/703525/1288795http://www.361way.com/category/v ... d-automati

Nagios Installation Guide

Introduction This guide is intended to provide you with simple instructions on how to install Nagios from source (code) on Fedora and have it monitoring your local machine inside of 20 minutes. No advanced installation options are discussed here - ju