GeoDjango アプリケーション用に、Mac OS X Snow Leopard (10.6) で PostGIS (1.5) 用のテンプレート地理データベースを構築しようとしています。
私はフォローしています: http://docs.djangoproject.com/en/dev/ref/contrib/gis/install/#creating-a-spatial-database-template-for-postgis
提供された postgis.sql を実行する必要があるポイントに到達することができました(つまりpsql -d template_postgis -f $POSTGIS_SQL_PATH/postgis.sql
)
その時点で、実行しようとした最初の SQL ステートメントでエラーが発生します。psql プロンプトでそれを試すと、結果は次のようになります。
template_postgis=# CREATE OR REPLACE FUNCTION st_spheroid_in(cstring) RETURNS spheroid AS '/usr/local/pgsql/lib/postgis-1.5','ellipsoid_in' LANGUAGE 'C' IMMUTABLE STRICT;
NOTICE: type "spheroid" is not yet defined
DETAIL: Creating a shell type definition.
ERROR: could not load library "/usr/local/pgsql/lib/postgis-1.5.so": dlopen(/usr/local/pgsql/lib/postgis-1.5.so, 10): Symbol not found: _DatumGetFloat4
Referenced from: /usr/local/pgsql/lib/postgis-1.5.so
Expected in: /opt/local/lib/postgresql83/bin/postgres
in /usr/local/pgsql/lib/postgis1.5.so
何が台無しになったのでしょうか?