DapperはUbuntuの06.06でPostGISをインストールする
によってarkatPDA未分類の下で12/18/2007に、2006年、
依存関係のインストール
我々はuniverseとmultiverseリポジトリを有効にする必要があります。
コンソールで
$sudo aptitude install proj proj-ps-doc postgresql-8.1 postgresql-doc-8.1 postgresql-server-dev-8.1 libgeos2c2a libgeos-doc libgeos-dev flex byacc build-essential libpam0g-dev libkrb5-dev libreadline5-dev
PostGISをコンパイルする
我々はUbuntu DapperのPostGISのためのパッケージを持っているので、私たちは、ソースコードをコンパイルする必要があります。
$ sudo mkdir cd /usr/share/postgresql/8.1/contrib
$ cd /usr/share/postgresql/8.1/contrib/
$ sudo wget http://postgis.refractions.net/download/postgis-1.1.3.tar.gz
$ sudo tar zxvf postgis-1.1.3.tar.gz
$ sudo cd postgis-1.1.3
$ sudo ./configure --prefix=/usr --with-pgsql=/usr/bin/pg_config --with-geos=/usr/bin/geos-config --with-proj=/usr
$ sudo make
$ sudo make install
PostgreSQLを設定する
$ sudo su - postgres
$ /usr/lib/postgresql/8.1/bin/createdb testgis
$ /usr/lib/postgresql/8.1/bin/createlang plpgsql testgis
$ /usr/lib/postgresql/8.1/bin/psql -f /usr/share/postgresql/8.1/contrib/postgis-1.1.3/lwpostgis.sql -d testgis
$ /usr/lib/postgresql/8.1/bin/psql -f /usr/share/postgresql/8.1/contrib/postgis-1.1.3/spatial_ref_sys.sql -d testgis
我々は、BDをテスト
$ /usr/lib/postgresql/8.1/bin/psql testgis
create table test( id int );
select addgeometrycolumn( 'test', 'geom', -1, 'LINESTRING', 2);
insert into test(id, geom) values (1,geomfromtext('LINESTRING(0 0,1000 0)',-1));
select buffer(geom,200) into table buf from test;
このエントリのコメント:
トラックバック/ピングバック
DapperはUbuntuで6.6にPostGISをインストールしています...
コンパイルとインストールPostGISをし、DapperはUbuntuでのGIS UNSのデータベースを作成するための手引きのコピーと貼り付けタイプ...


























19:03に2007年8月20日
私はCentOS 5とその設定respectibasとしてのLinuxのディストリビューションでPostGISのインストールに役立つことができればハイ知らない
午後11:00に2007年8月20日
こんにちはジョンは、私は十分に近いしようとCentOSを持っていることを伝える。
私はRHELのPostGISを持つrepostirioを参照してください。ビットを探して。 FAQサイトでは、リポジトリの使用方法を見ることができますhttp://dag.wieers.com/rpm/FAQ.php#B1 、ここでこのリポジトリ内にある、PostGISからの情報です。 http://dag.wieers.com/回転数/パッケージ/ PostGISの/
これを証明する良いではありません! 私はCentOSやRHEL 5またはCentOSを再生する必要があるため。
ポール(AT)pablopda(点)com(ドット)のARにメールをあなたが得た他の問題や質問は私を送信する場合
よろしく