[postgis-users] make generates incorrect PERL variable value on v1.5.2

Bill Teluk bill.teluk at team.telstra.com
Wed Mar 9 18:56:00 PST 2011


Hi,

I have installed PostGIS 1.5.2 on a PostgreSQL 9.0.4 (OpenSCG RPM) on an
RHEL5.5 system, during the build process, when I ran "make" (after
"./configure") I got the following error.

Error message extract:

   gcc -E -traditional-cpp postgis.sql.in.c | grep -v '^#' > postgis.sql.in
   sed 's,MODULE_PATHNAME,$libdir/postgis-1.5,g' postgis.sql.in >postgis.sql
   gcc -E -traditional-cpp uninstall_postgis.sql.in.c | grep -v '^#' > 

   uninstall_postgis.sql.in
   sed 's,MODULE_PATHNAME,$libdir/postgis-1.5,g' uninstall_postgis.sql.in 

   >uninstall_postgis.sql
   "/opt/ActivePerl-5.10/bin/perl" ../utils/postgis_proc_upgrade.pl
postgis.sql 1.5 

   > postgis_upgrade_15_minor.sql
   /bin/sh: /opt/ActivePerl-5.10/bin/perl: No such file or directory
   make[1]: *** [postgis_upgrade_15_minor.sql] Error 127
   make[1]: *** Deleting file `postgis_upgrade_15_minor.sql'
   make[1]: Leaving directory 

   `/home/maptools/other/pgis_1_5_2/postgis-1.5.2/postgis'
   make: *** [postgis] Error 2

It appears to be a "PERL" variable belonging to the ./postgis/Makefile
script - somehow it's getting set to a value of
"/opt/ActivePerl-5.10/bin/perl" which doesn't appear to relate to my system
(which only has Perl v5.8 installed, and in a different directory.)  I
couldn't work out where "PERL" was being set in the scripts.

I've seen a similar ticket reported for the same problem for V2.0 (the
ticket is currently closed.) Refs are:
   http://trac.osgeo.org/postgis/ticket/521
and
   http://trac.osgeo.org/postgis/wiki/DevWikiWinMingWSys_20

That particular fault was reported against a Windows install, but it also
seems to affect the Linux installation.

I used the solution provided in the Wiki page reporting the fault eg. after
running configure

   sed 's,$(PERL),perl,g' <postgis/Makefile >postgis/Makefile2
   mv postgis/Makefile2 postgis/Makefile


... and it then worked for me.  I was wondering if this is actually a bug or
is it something about my system that caused this problem?

Thanks, Bill Teluk.
-- 
View this message in context: http://old.nabble.com/make-generates-incorrect-PERL-variable-value-on-v1.5.2-tp31112316p31112316.html
Sent from the PostGIS - User mailing list archive at Nabble.com.




More information about the postgis-users mailing list