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

2011-03-18 Thread Mark Cave-Ayland

On 10/03/11 02:56, Bill Teluk wrote:


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

sed 's,$(PERL),perl,g'postgis/Makefilepostgis/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?


That sounds strange. Can you show us the mangled and un-mangled versions?


ATB,

Mark.

--
Mark Cave-Ayland - Senior Technical Architect
PostgreSQL - PostGIS
Sirius Corporation plc - control through freedom
http://www.siriusit.co.uk
t: +44 870 608 0063

Sirius Labs: http://www.siriusit.co.uk/labs

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

___
postgis-users mailing list
postgis-users@postgis.refractions.net
http://postgis.refractions.net/mailman/listinfo/postgis-users


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

2011-03-09 Thread Bill Teluk

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.

___
postgis-users mailing list
postgis-users@postgis.refractions.net
http://postgis.refractions.net/mailman/listinfo/postgis-users


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

2011-03-09 Thread Bill Teluk

Correction: that was PostgreSQL 9.0.3
Sorry!
-- 
View this message in context: 
http://old.nabble.com/make-generates-incorrect-PERL-variable-value-on-v1.5.2-tp31112316p31112350.html
Sent from the PostGIS - User mailing list archive at Nabble.com.

___
postgis-users mailing list
postgis-users@postgis.refractions.net
http://postgis.refractions.net/mailman/listinfo/postgis-users