[postgis-tickets] [PostGIS] #3274: PostGIS 2.1 dependency on proj.4
PostGIS
trac at osgeo.org
Wed Sep 9 17:00:08 PDT 2015
#3274: PostGIS 2.1 dependency on proj.4
-----------------------+---------------------------
Reporter: watsonta | Owner: pramsey
Type: defect | Status: new
Priority: high | Milestone: PostGIS 2.1.9
Component: postgis | Version: 2.1.x
Resolution: | Keywords: proj4
-----------------------+---------------------------
Comment (by robe):
nevermind read irc thread - irc thread here for posterity. Though I think
it's 4.7+ not 4.8+ and not even sure of that. I just know our bot has
been working fine on 4.7 aond postgis 2.1 so.
{{{
nhv: this should help http://gis.stackexchange.com/questions/43370
/postgis-error-could-not-load-library-usr-lib-
postgresql91-lib64-postgis-2-0-s
20:36:20 sigq: Title: postgresql - PostGIS ERROR: could not load
library "/usr/lib/postgresql91/lib64/postgis-2.0.so" - Geographic
Information Systems Stack Exchange (at gis.stackexchange.com)
20:37:12 strk: ah, >= 4.8
20:37:21 strk: but... how could his 9.1 install work ?
20:37:43 strk: watsonta: don't leave us out in the dark, let us
know the detail ! :)
20:38:42 watsonta: Sorry - I just had to install proj and
proj-devel. Broken yum dependencies in postgis package.
20:38:51 watsonta: Now it says that the clusters are
compatible
20:39:18 watsonta: BTW, I'm on RHEL 6.5
20:39:47 watsonta: <strk> nailed it.
20:40:14 strk: so you weren't just upgrading postgresql but also
changing proj4 version between the two install ?
20:43:04 watsonta: <strk> no - we were just upgrading from
9.1 to 9.4
20:43:12 watsonta: <strk> no other changes
20:43:25 strk: via yum ?
20:43:34 watsonta: yes - via yum
20:43:52 strk: well, something must have triggered an upgrade of
postgis as well, or a downgrade of proj4
20:44:30 watsonta: we have to upgrade from postgis 2.0 to 2.1
as there isn't a 2.0 for 9.4
20:44:34 strk: as if the 9.1 version worked, either there was no
need for the 'pj_get_spheroid_defn' symbol (older PostGIS version) or the
symbol was included in proj4 library
20:44:49 strk: a-ha! that's the missing bit of information in
your initial report ! :)
20:45:20 watsonta: and yet, this worked on multiple other
environments (dev, qa, test, staging) without this problem
20:46:17 * strk sees that the ./configure script in
postgis-2.1 branch does not check for proj-4.8+
20:46:20 strk: worth a ticket
20:46:21 watsonta: seems like postgis-2.1 should have a proj-
devel as a dependency. it wasn't even installed on this prod box, even
though postgis-2.0 worked for 2+ years
20:46:21 strk: here's what it does:
20:46:25 strk: dnl Ensure that we are using PROJ >= 4.6.0
(requires pj_set_searchpath)
20:46:27 strk: if test ! "$POSTGIS_PROJ_VERSION" -ge 46; then
AC_MSG_ERROR([PostGIS requires PROJ >= 4.6.0])
20:46:30 strk: fi
20:46:32 strk: so builders are not warned about that
20:46:48 strk: althought good builders would "make check" before
distributing a binary...
20:47:00 strk: watsonta: feel like filing a ticket for this issue
?
20:47:19 strk: AC_MSG_ERROR([PostGIS requires PROJ >= 4.6.0])
20:47:25 strk: ^^^ even in trunk (to be 2.2.0)
20:47:32 strk: but truth is we require 4.8.0+ since 2.1.0
20:47:42 watsonta: just glad it's working now. i will gladly
file a ticket - where?
20:47:46 strk: http://trac.osgeo.org/postgis
20:47:48 sigq: Title: PostGIS (at trac.osgeo.org)
20:48:10 watsonta: I'm on it.
}}}
--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/3274#comment:2>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.
More information about the postgis-tickets
mailing list