Table of Contents |
---|
Introduction
In order to build postGIS you need some artifacts from the postgresQL development package. This is not as straight forward as it should be. 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.
Here is how you do that. You should read this from top to bottom.
http://yum.pgsqlrpms.org/howtoyum.php
Also read this; you can safley skip sections on this page.
http://www.postgresonline.com/journal/index.php?/archives/45-An-Almost-Idiots-Guide-to-PostgreSQL-YUM.html
And this is good too:
http://postgis.refractions.net/docs/ch02.html
Did you do your reading?
...
Be sure you read the section about repository setup on the postgresql install page.
Installation
We assume you have already installed postgresql.
...
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/
make a database
You can make a postgis db "by hand" (see below)<br>
Or you can make a postgis db by using the template (see previous)<br>
...
Code Block |
---|
echo '/usr/local/lib' >> /etc/ld.so.conf.d/local-lib.conf ldconfig |
test
How do we know if everything is working properly?
...