[postgis-users] extras/template_gis broken on postgis-1.2.1 for building postgis on win32

TECHER David davidtecher at yahoo.fr
Wed Jan 17 16:56:32 PST 2007


Hi

I've got the following error when building postgis for 1.2.1 or for SVN 
on WIN32

make[1]: Entering directory `/home/david/postgis-svn/utils'
chmod +x postgis_restore.pl create_undef.pl postgis_proc_upgrade.pl 
profile_intersects.pl test_estimation.pl test_joinestimation.pl
make[1]: Leaving directory `/home/david/postgis-svn/utils'
make -C extras/template_gis
make[1]: Entering directory `/home/david/postgis-svn/extras/template_gis'
cat createdb.postgis.in | sed -e 
s:@bindir@:C:/msys/1.0/local/pgsql/bin:g -e 
s:@datadir@:/usr/local/pgsql/share:g -e s:@prefix@:/usr/local/pgsql:g -e 
s:@SONAME@:1:g > createdb.postgis;  cat mktemplate_gis.in | sed -e 
s:@bindir@:C:/msys/1.0/local/pgsql/bin:g -e 
s:@datadir@:/usr/local/pgsql/share:g -e s:@prefix@:/usr/local/pgsql:g -e 
s:@SONAME@:1:g > mktemplate_gis;  cat mktemplate_gis.sh.in | sed -e 
s:@bindir@:C:/msys/1.0/local/pgsql/bin:g -e 
s:@datadir@:/usr/local/pgsql/share:g -e s:@prefix@:/usr/local/pgsql:g -e 
s:@SONAME@:1:g > mktemplate_gis.sh;  cat postgis_env.sh.in | sed -e 
s:@bindir@:C:/msys/1.0/local/pgsql/bin:g -e 
s:@datadir@:/usr/local/pgsql/share:g -e s:@prefix@:/usr/local/pgsql:g -e 
s:@SONAME@:1:g > postgis_env.sh;  cat postgres_lib.sh.in | sed -e 
s:@bindir@:C:/msys/1.0/local/pgsql/bin:g -e 
s:@datadir@:/usr/local/pgsql/share:g -e s:@prefix@:/usr/local/pgsql:g -e 
s:@SONAME@:1:g > postgres_lib.sh;  cat rmtemplate_gis.in | sed -e 
s:@bindir@:C:/msys/1.0/local/pgsql/bin:g -e 
s:@datadir@:/usr/local/pgsql/share:g -e s:@prefix@:/usr/local/pgsql:g -e 
s:@SONAME@:1:g > rmtemplate_gis;  cat rmtemplate_gis.sh.in | sed -e 
s:@bindir@:C:/msys/1.0/local/pgsql/bin:g -e 
s:@datadir@:/usr/local/pgsql/share:g -e s:@prefix@:/usr/local/pgsql:g -e 
s:@SONAME@:1:g > rmtemplate_gis.sh;
sed: -e expression #2, char 14: Unknown option to 's'
sed: -e expression #2, char 14: Unknown option to 's'
sed: -e expression #2, char 14: Unknown option to 's'
sed: -e expression #2, char 14: Unknown option to 's'
sed: -e expression #2, char 14: Unknown option to 's'
sed: -e expression #2, char 14: Unknown option to 's'
sed: -e expression #2, char 14: Unknown option to 's'
make[1]: *** [all] Error 1
make[1]: Leaving directory `/home/david/postgis-svn/extras/template_gis'
make: *** [templategis] Error 2

It seems that "C:/msys/1.0/local/pgsql/bin" has a problem with ":"

So in extra/template_gis/Makefile I did

SUBBINDIR=$(shell echo $(bindir)|sed -e's:\::\\\\\\\::g')
SUBSTITUTE=-e s:@bindir@:$(SUBBINDIR):g \
           -e s:@datadir@:$(datadir):g \
           -e s:@prefix@:$(prefix):g \
           -e s:@SONAME@:$(SONAME):g

And it work

So I would like to ask If it is correct or not for us since Mark has 
already a template_gis in the PostGIS Win32 installer ;)


Thanks

david

NB: I try building the tools for postgresql 8.2.1, geos 2.2.3, proj 
4.5.0 and postgis from svn



	

	
		
___________________________________________________________________________ 
Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son interface révolutionnaire.
http://fr.mail.yahoo.com



More information about the postgis-users mailing list