[postgis-users] Compiliing PostGIS vs PostgresSQL
Darren Houston
darren.houston at edu.sait.ca
Mon Oct 6 23:21:53 PDT 2003
Sorry everyone. I e-mailed these instructions many hours ago, but only to
myself, so I thought it was from the Users' list when the message showed in
my inbox.
Here are my instructions for installing PostGIS with the default PostgreSQL
from RPM and/or fresh Linux operating system install.
You should already have a PostgreSQL directory structure such as this in
your system;
/usr/include/pgsql
/usr/share/pgsql
/usr/lib/pgsql
/var/lib/pgsql
Now, you can install PostGIS into these directories or you can mimic a
PostgreSQL install in another directory such as /usr/local/pgsql. I like to
install PostGIS alone in /usr/local/pgsql to make it easier for updates.
I'll give instructions for both methods. Make sure PostgreSQL is shut down
(no postmaster process running).
For PostGIS installation into /usr/local/pgsql;
1) Download postgresql-7.X.X.tar.gz, un-zip and un-tar (match the current
version of PostgreSQL installed on your system).
2) Run the configure script with --prefix=/usr/local/pgsql and then run
make. You don't need to run make install.
3) Create these directories manually;
/usr/local/pgsql/bin
/usr/local/pgsql/doc
/usr/local/pgsql/include
/usr/local/pgsql/lib
/usr/local/pgsql/man
/usr/local/pgsql/share
4) Install PostGIS as per Refractions instructions.
You will notice PostGIS sitting in the directories in /usr/local/pgsql. I
like to enter each directory and copy the PostGIS files to a folder in that
directory stipulating PostGIS's version. This is how I keep multiple PostGIS
versions on my system.
For PostGIS installation into default RedHat (and other Linux versions)
PostgreSQL install;
1) Move the following directories to *.bak (or some other name)
mv /usr/include/pgsql /usr/include/pgsql.bak
/usr/share/pgsql
/usr/lib/pgsql
/var/lib/pgsql
You have to move the directories because PostgreSQL will see those
directories and then configure itself to install to /*/*/postgres instead of
/*/*/pgsql.
2) Download postgresql-7.X.X.tar.gz, un-zip and un-tar (match the current
version of PostgreSQL installed on your system).
3) Run the configure script with --prefix=/usr and then run make. You don't
need to run make install.
4) Move the previous directories to their original names
mv /usr/include/pgsql.bak /usr/include/pgsql
5) Install PostGIS as per Refractions instructions.
Hope this has enough info. E-mail me if you get in a bind and I'll help you
out.
Darren H.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20031007/6a8c4df0/attachment.html>
More information about the postgis-users
mailing list