Changes between Version 8 and Version 9 of UsersWikiPostgisOnUbuntu


Ignore:
Timestamp:
06/04/10 16:23:57 (14 years ago)
Author:
Mike Taves
Comment:

update/improve, add

Legend:

Unmodified
Added
Removed
Modified
  • UsersWikiPostgisOnUbuntu

    v8 v9  
    3131=== From Source (aka, the hard way): ===
    3232
    33  1. Install Postgresql, Libgeos, Proj. packages.  Easiest way is to use Synaptic (be sure to include Universe in your respositories).  Also be sure to install the "-dev" packages (postgresql-server-dev-8.0).  Under Breezy, latest postgresql version is 8.0 (adjust following paths to reflect the version you have installed).
     33 1. Install Postgresql, Libgeos, Proj. packages.  Easiest way is to use Synaptic (be sure to include Universe in your respositories).  Also be sure to install the "-dev" packages (postgresql-server-dev-8.4). E.g.:
    3434
    35  2. Download postgis.tgz and place in  /usr/share/postgresql/8.0/contrib
     35        $ sudo apt-get install postgresql-server-8.4-dev libool gcc flex bison libxml2-dev
    3636
    37  3. Extract the via Nautilus or cd to the directory and then use tar -zvxf postgis-x.x.x
     37 2. Download postgis-1.x.x.tar.gz wherever you want (e.g., /home/myname/src)
    3838
    39  4. Now cd to the postgis directory.
     39 3. Extract it:
    4040
    41  5. Now configure.  Try:
     41        $ tar xvfz postgis-1.x.x.tar.gz
    4242
    43 {{{
    44   > sudo ./configure --prefix=/usr  --with-pgconfig=/usr/bin/pg_config
    45     --with-geos=/usr/bin/geos-config  --with-proj=/usr
     43 4. Now cd to the postgis-1.x.x directory.
    4644
    47 }}}
     45 5. Now configure:
    4846
     47        $ ./configure
    4948
    50  6. Check to see that you have no errors.  You may need to install other packages (like flex and byacc).
     49 6. Check to see that you have no errors.  You may need to install other packages.
    5150
    52  7. Now type > sudo make
     51 7. Compile it:
    5352
    54  8. type > sudo make install
     53        $ make
     54
     55 8. As superuser, install it:
     56
     57        $ sudo make install
     58
     59 9. You may need to make sure the libraries are visible to PostgreSQL
     60
     61        $ sudo ldconfig
    5562
    5663That should do it.
     64
     65=== Optional packages to build documentation ===
     66
     67        $ sudo apt-get install imagemagick dblatex xsltproc docbook-xsl
     68
     69        $ make docs
    5770
    5871----