[pgsql-jp: 38343] Re: PostGISがうまく動かない
YuGo
yu.gotou @ gtec-ni.com
2007年 4月 26日 (木) 09:40:42 JST
吹屋どの。
書き忘れたのですが、./configureのあと
$make check
とすると何かエラー出ませんか。
> 共有ライブラリのパスですが、/usr/local/postgis-1.1.7/libは通っているとし
> て、liblwgeom.so.1.1が/usr/libを呼び出せていない可能性はどうでしょうか。
> ためしに
> $export LD_LIBRARY_PATH=$PGLIB:/usr/lib
> か
> #vi /etc/ld.so.conf
> 最後の行に/usr/libを追加
> #ldconfig
> をしてみたらどうですか。
>
> あと、解凍したディレクトリにあるREADME.postgisの
>
> In order to use the GEOS support, you *may* need to specially compile
> your version of PostgreSQL to link the C++ runtime library.
> To do this, invoke the PgSQL configuration script this way:
>
> LDFLAGS=-lstdc++ ./configure --your-options-go-here
>
> The initial LDFLAGS variable is passed through to the Makefile and
> adds the C++ library to the linking stage.
>
> も試してみたらどうでしょう。
>
>
>> PostgreSQLの管理者ユーザーは、二つともpostgresです。PostgreSQL8
>> を使用する時にはそれ用の環境変数となるようにしています。
>> 「PostgreSQL完全攻略ガイド」に書かれてあった、複数のPostgreSQL
>> を管理する方法を参考にしました。rpmパッケージとソースからの共存に
>> なりますが、一応区別して使用できているように思えます。
>>
>> 本日、configureをみなおし、再度PostGISをインストールしてみましたが、
>> やはり同様の結果でした。
>>
>> 既にPostGIS1.1.2を使用しているので、ごちゃごちゃにしないように、
>> /usr/local/postgis-1.1.7にインストールしてみました。
>> configure時には次のオプションを指定しました。
>> --prefix=/usr/local/postgis-1.1.7
>> --with-pgsql=/usr/local/pgsql-8.1.8/bin/pg_config
>> --with-geos=/usr/bin/geos-config
>> --with-geos-libdir=/usr/lib
>> --with-proj=/usr
>> --with-proj-libdir=/usr/lib
>>
>> projやgeosですが、
>> /usr/bin/proj、/usr/bin/geos-config というファイルがあり、
>> /usr/lib/には、libproj.a、libproj.la、libproj.so、libproj.so.0、
>> libproj.so.0.5.0、
>> libproj.a、libproj.la、libproj.so、libproj.so.0、libproj.so.0.5.0
>> というファイルがあります。
>> /usr/share/proj/には、GL27、epsg、esri等のファイルがあります。
>>
>> これでlwpostgis.sqlをすると、やはりエラーがでます。
>> psql:lwpostgis.sql:48: ERROR
>> : could not load library "/usr/local/postgis-1.1.7/lib/liblwgeom.so.1.1"
>> : /usr/local/postgis-1.1.7/lib/liblwgeom.so.1.1
>> : undefined symbol: vacuum_delay_point
>> --
>> 吹屋
>
pgsql-jp メーリングリストの案内