私はGreenplumデータベース4.2.1.0のためにPostgresql(8.2.15)additional supplied modules intarrayとintaggをインストールしようとしています。インストールは成功したようです。私はチュートリアルhereに従い、すべてのファイルはgreenplumlib-db-4.2.1.0/lib/postgresql share/postgresqlディレクトリにコピーされます。シンボルpfreeが定義されていないことを言ってPostgresqlのintarrayエラー:未定義のシンボル:pfree
org.postgresql.util.PSQLException: ERROR: could not load library "/usr/local/greenplum-db-4.2.1.0/lib/postgresql/_int.so": /usr/local/greenplum-db-4.2.1.0/lib/postgresql/_int.so: undefined symbol: pfree
at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2062)
at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1795)
at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:257)
at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:479)
at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:353)
at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:345)
at tuffy.db.RDB.execute(RDB.java:354)
at tuffy.db.RDB.resetSchema(RDB.java:700)
at felix.main.Felix.parseFelixQuery(Felix.java:106)
at felix.main.Felix.run(Felix.java:755)
at felix.main.Main.main(Main.java:69)
:私は私のJavaコードを実行しようとしたとき、それは「未定義のシンボル」エラーがスローされます。私はバージョン番号を確認しました:Greenplumのpostgresqlと追加のモジュールはどちらも8.2.15です。何か不足していますか?
更新:チュートリアルへのリンクが不安定に見えます。それは基本的にはインストールを完了するためにいくつかの簡単な手順を提供します:
Get any of the postgresql 8.2 source package from the official site
su - gpadmin
Unpack the source, then go to ~/postgresql-8.2.xx/contrib/xxx
make USE_PGXS=1 COPT="-Wno-error" install
(Optional for Greenplum MPP) Use gpssh to copy whatever .so file that just get installed under /usr/local/greenplum-db/lib/postgresql to other nodes
psql -f xxx.sql [DBNAME]
更新: は、あなたの答えをいただき、ありがとうございます。
私はGreenplumをインストールしていますが、postgresql 8.2.15のみが含まれているので、このバージョンを使用する必要があります。 I Greenplumはライブラリへの全体は/ usr/local/pgsql/libディレクトリにコピーした、intarrayが仕事を得るように思われるが、今私は新しいエラーを持っている:
could not load library "/usr/local/greenplum-db-4.2.1.0/lib/postgresql/plpgsql.so":
/usr/local/greenplum-db-4.2.1.0/lib/postgresql/plpgsql.so: undefined symbol: heap_copytuple
私が欠けているようですいくつかのファイル...
ありがとう!
正確にどこからどこからダウンロードしたのですか? – kgrittn
私はGreenplumデータベース[ここ](http://www.greenplum.com/community/downloads/database-ce/)とPostgresql 8.2.15 [ここ](http://sourceforge.net/projects/pgsql/)をダウンロードしました。ファイル/ PostgreSQL%208.2.X /)。しかし、心配しないで、私は代わりに最新のPostgresqlを試してみます。あなたの答えはありがとう! – Yang