OBSOLETE
See the postgresql installation page.
Installation
We assume you have already installed postgresql.
This is a good how to:
...
from code.google.com/p/eas/downloads
make sure these paths are correct!
Code Block |
---|
$ yum install postgresql-devel $ tar xvfz postgis-1.3.1.tar.gz $ cd postgis-1.3.1 $ ./configure --with-pgsql=/usr/bin/pg_config --with-geos=/usr/local/bin/geos-config --with-proj-libdir=/usr/local/share/proj $ make $ su $ make install $ exit |
Errors
error
Code Block |
---|
configure: error: Can't find 'flex' |
...
Code Block |
---|
yum install flex |
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/
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?
...
If not, you’ll get a SQL error.
To test geos run this sql (needs eas database to be restored):
todo: need some sql here that does not require a database
...