처음부터 쭉 치기만 하면 됩니다.
목적은 postgis설치입니다. 공간계필드를 사용할 수 있게끔 하려는 거죠 ㅎ
설치가 완료되면 테이블이 두개 생성되 있을겁니다.
sudo apt-get update
sudo apt-get install vim
#The sources are still not available on the regular package servers... edit the sources
vim /etc/apt/sources.list
add deb http://ppa.launchpad.net/pitti/postgresql/ubuntu jaunty main
deb-src http://ppa.launchpad.net/pitti/postgresql/ubuntu jaunty main
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 8683D8A2
sudo apt-get update
sudo apt-get install postgresql-8.4
#This changes the port from 5433 to 5432
sudo sed -i.bak -e 's/port = 5433/port = 5432/' /etc/postgresql/8.4/main/postgresql.conf
sudo /etc/init.d/postgresql-8.4 stop
sudo /etc/init.d/postgresql-8.4 start
sudo apt-get install postgresql-server-dev-8.4 libpq-dev
sudo apt-get install libgeos-dev
sudo wget http://postgis.refractions.net/download/postgis-1.4.0.tar.gz
sudo apt-get install proj
sudo tar xvfz postgis-1.4.0.tar.gz
cd postgis-1.4.0
sudo ./configure
sudo make
sudo make install
sudo su postgres
#change the postgres password to "atlas" so that you can later login
psql -c"ALTER user postgres WITH PASSWORD 'atlas'"
createdb geodb (with password atlas)
createlang -dgeodb plpgsql
psql -dgeodb -f /usr/share/postgresql/8.4/contrib/postgis.sql
psql -dgeodb -f /usr/share/postgresql/8.4/contrib/spatial_ref_sys.sql
psql -dgeodb -c"select postgis_lib_version();"
#This should return 1.4.0
exit
'우분투, 리눅스' 카테고리의 다른 글
sftp 상위폴더 접근제한(chroot) (0) | 2010.12.03 |
---|---|
리눅스 X-Window 설치하기 (0) | 2010.11.25 |
sendmail 설정 (0) | 2010.10.21 |
우분투9.10 - Tomcat6 와 Apache2연동 (0) | 2010.01.28 |
우분투 패키지 관리자 apt 명령 (0) | 2010.01.26 |