Table of Contents |
---|
Introduction
Do this slowly and carefully, and if your lucky, you won't get hurt.
keywords
Code Block |
---|
Fedora 8
Fedora 9
centos
proj.4
geos
postgis
postgresql
|
In order to build postGIS you need some artifacts from the postgresQL development package. This is not as straight forward as it should be.<br>
I encourage you to take a few minutes to read this through. First, your "disto repository" is not likely to be up to date with respect to postgresql packages. In other words, if you blindly type "yum install postgresql-devel", you may have trouble getting everything installed properly. I've seen errors regarding missing libraries and the like. To avoid the fuss, when you are installing postgresql packages, use the postgresql repositories instead of your ditsro repsository.
...
And this is good too:
http://postgis.refractions.net/docs/ch02.html
Did you do your reading?
Main
We assume you have already installed postgresql.
First install these packages:
proj4 installgeos install
OK, now we build postGIS.
...
Code Block |
---|
yum install flex
|
error:
Code Block |
---|
configure: error: no acceptable C compiler found in $PATH
|
solution:
Code Block |
---|
yum install gcc-c++
|
error:
Code Block |
---|
configure: error: readline library not found
|
solution:
Code Block |
---|
yum install readline-devel.x86_64
|
error:
Code Block |
---|
configure: error: zlib library not found
|
solution:
Code Block |
---|
yum install zlib.x86_64 zlib-devel.x86_64
|
make a postgis_template
This is optional.
This page shows how to create and use a db template:
http://geospatial.nomad-labs.com/2006/12/24/postgis-template-database/
...