Difference between revisions of "Main Page/Stuff/Ubuntu stuff/server 9.10"

From phurvitz
Jump to: navigation, search
Line 1: Line 1:
 
This was mainly to try the wkt raster functionality in PostGIS. It is not promising as of 2010.03.26 for any meaningful work.
 
This was mainly to try the wkt raster functionality in PostGIS. It is not promising as of 2010.03.26 for any meaningful work.
  
 +
<tt>
 
# install the server on a vm
 
# install the server on a vm
 
# sudo apt-get update
 
# sudo apt-get update
Line 62: Line 63:
 
## make post-install-check (as postgres user)
 
## make post-install-check (as postgres user)
 
## /usr/local/pgsql/bin/gdal2wktraster.py -r /mnt/hgfs/junk/percentpark1.tif -t percentpark -R
 
## /usr/local/pgsql/bin/gdal2wktraster.py -r /mnt/hgfs/junk/percentpark1.tif -t percentpark -R
 
+
</tt>
  
 
At this point I was able to only get cell size and envelope data from the raster. Fooey!
 
At this point I was able to only get cell size and envelope data from the raster. Fooey!

Revision as of 01:37, 27 March 2010

This was mainly to try the wkt raster functionality in PostGIS. It is not promising as of 2010.03.26 for any meaningful work.

  1. install the server on a vm
  2. sudo apt-get update
  3. sudo apt-get xinit
  4. sudo apt-get install kubuntu-desktop
  5. restart
  6. sudo apg-get install g++
  7. download and install python from source (2.6.5)
  8. sudo apt-get install libtool
  9. geos 3.2.0
    1. sudo ./configure
    2. sudo make
    3. sudo make install
  10. proj4 4.7.0
    1. sudo ./configure
    2. sudo make
    3. sudo make install
  11. sudo apt-get install libreadline-dev
  12. sudo apt-get install zlib-bin
  13. sudo apt-get install zlib1g-dev
  14. sudo apt-get install libreadline5-dev
  15. perl 5.1.0
  16. postgresql 8.4.3
    1. sudo ./configure --with-perl --with-python
    2. sudo make
    3. sudo make install
    4. sudo apt-get install postgresql-client-8.4
    5. sudo mkdir /usr/local/pgsql/data
    6. sudo adduser postgres (pw=samsung)
    7. sudo chown postgres data/
    8. su - postgres
    9. /usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data
    10. /usr/local/pgsql/bin/postgres -D /usr/local/pgsql/data >logfile 2>&1 &
    11. /usr/bin/createdb testdb
    12. createlang plpgsql
  17. postgis (http://www.postgis.org/download/postgis-2.0.0SVN.tar.gz)
    1. sudo apt-get install libpq-dev
    2. sudo apt-get install postgresql-server-dev-8.4
    3. sudo apt-get install libxml2-dev
    4. export PATH=/usr/local/pgsql/bin:$PATH
    5. sudo ./configure --with-geos --with-pgsql --with-proj --prefix=/usr/local/pgsql
    6. sudo make
    7. sudo make install
    8. psql -f rt_pg/rtpostgis.sql testdb
  18. gdal 1.7.1
    1. sudo ./configure --with-perl --with-python --with-ogr --with-xerces --with-pg=/usr/local/pgsql/bin/pg_config
    2. sudo make
    3. sudo make install
  19. sudo apt-get install swig
  20. sudo apt-get install python-dev
  21. numpy
    1. sudo apt-get install libatlas-base-dev
    2. sudo apt-get install libatlas3gf-sse2
    3. python setup.py build
    4. python setup.py install
  22. wktraster
    1. sudo ./configure -with-postgis-sources=/usr/local/src/postgis-2.0.0SVN
    2. sudo make
    3. sudo make check
    4. sudo make install
    5. make post-install-check (as postgres user)
    6. /usr/local/pgsql/bin/gdal2wktraster.py -r /mnt/hgfs/junk/percentpark1.tif -t percentpark -R

At this point I was able to only get cell size and envelope data from the raster. Fooey!