Postgresql intarray error: undefined character: pfree

I am trying to install Postgresql (8.2.15) the optional supplied intarray and intagg modules for my Greenplum 4.2.1.0 database. Installation seems successful; I followed the tutorial here and all the files are copied to the greenplumlib-db-4.2.1.0 / lib / postgresql share / postgresql directory. but when I tried to execute my Java code, it throws an "undefined" error:

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)

saying the pfree character is undefined. I checked the version number: both postgresql in Greenplum, and the add-on module is 8.2.15. Did I miss something?

Update : the link to the tutorial seems unstable; it basically gives some simple steps to complete the installation:

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, . /usr/local/pgsql/lib greenplum, , 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 

, ...

!

0
1

, PostgreSQL 8.2 .

, 9.1, (: " " ) intarray :

CREATE EXTENSION intarray;

CREATE EXTENSION.

+2

Source: https://habr.com/ru/post/1624506/


All Articles