Changes between Version 8 and Version 9 of UsersWikiPostgisOnUbuntu
- Timestamp:
- 06/04/10 16:23:57 (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
UsersWikiPostgisOnUbuntu
v8 v9 31 31 === From Source (aka, the hard way): === 32 32 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.: 34 34 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 36 36 37 3. Extract the via Nautilus or cd to the directory and then use tar -zvxf postgis-x.x.x37 2. Download postgis-1.x.x.tar.gz wherever you want (e.g., /home/myname/src) 38 38 39 4. Now cd to the postgis directory.39 3. Extract it: 40 40 41 5. Now configure. Try: 41 $ tar xvfz postgis-1.x.x.tar.gz 42 42 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. 46 44 47 }}} 45 5. Now configure: 48 46 47 $ ./configure 49 48 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. 51 50 52 7. Now type > sudo make51 7. Compile it: 53 52 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 55 62 56 63 That 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 57 70 58 71 ----