Building and Installing PostGIS from Source
Prerequisites PostgreSQL You need to already have PostgreSQL, its dev package, and it libraries installed. On Fedora-based distributions, it looks like this:
1 2 3 4 5 6 7 |
[root@branchpoint build]# rpm -qa | sort | grep -i postgresql postgresql92-9.2.9-1.46.amzn1.x86_64 postgresql92-devel-9.2.9-1.46.amzn1.x86_64 postgresql92-libs-9.2.9-1.46.amzn1.x86_64 postgresql92-server-9.2.9-1.46.amzn1.x86_64 postgresql92-server-compat-9.2.9-1.46.amzn1.x86_64 [root@branchpoint build]# |
Eat Your Wheaties Setup local time zone. Update installed packages. Reboot.
1 2 3 |
sudo ln -sf /usr/share/zoneinfo/America/Chicago /etc/localtime sudo yum update -y sudo shutdown -r now |
Install Essential Prerequisite Packages
1 2 3 |
sudo yum groupinstall "Development Tools" sudo yum -y install readline-devel sudo yum -y install zlib-devel libxml2-devel wget vim |
Build PostGIS Prerequisites For each of the following libraries, we go through these steps: