Eric
Eric

Reputation: 24890

Postgis - Failed to install it on linux mint mate 17

I install postgis via sudo apt-get install postgis postgresql-9.3-postgis-2.1

Then execute CREATE EXTENSION postgis; but got following error tip:

ERROR:  could not load library "/usr/lib/postgresql/9.3/lib/postgis-2.1.so":
/usr/lib/postgresql/9.3/lib/postgis-2.1.so: undefined symbol: HeapTupleHeaderGetDatum

I am using postgresql 9.3.4, and postgis-2.1.

I did google for over an hour, but didn't found a solution that really solve my issue.

Any help?

Upvotes: 1

Views: 559

Answers (2)

Eric
Eric

Reputation: 24890

I spend another hour, and finally tried to install it from source code, and succeed like a charm, no single issue occur!

Here is the link provide detail steps to install postgis from source code:

http://trac.osgeo.org/postgis/wiki/UsersWikiPostGIS21Ubuntu1404src

It also works for my Linux mint mate 17, which is base on ubuntu 14.04.

Upvotes: 2

Richard Huxton
Richard Huxton

Reputation: 22893

The first two hits seem to say basically the same thing to me:

It sounds to me like your version of postgis was built against a version of postgresql later than 9.3.4 which included a bugfix that included "HeapTupleHeaderGetDatum". So - upgrade your postgresql (you do have something more recent than .4?) and/or make sure you get postgis from the same repo as your postgresql packages.

See if that helps.

Upvotes: 0

Related Questions