[postgis-devel] Problem executing the regression tests on Windows 7

Paul Ramsey pramsey at opengeo.org
Fri Feb 10 08:40:15 PST 2012


Looks like we need to leave a .bak file in place if we want to use
that function...

http://thiagumohan.blogspot.com/2009/11/perl-error-cant-do-inplace-edit-without.html


P.

On Fri, Feb 10, 2012 at 8:35 AM, Pierre Racine
<Pierre.Racine at sbf.ulaval.ca> wrote:
> When trying to execute the regression  tests on Windows 7, I get:
>
> make[4]: Entering directory `/c/projects/postgis/postgis'
> /bin/mkdir -p 'c:/projects/postgis/regress/00-regress-install/lib'
> /bin/mkdir -p 'c:/projects/postgis/regress/00-regress-install/share/contrib/postgis'
> /bin/sh c:/projects/pg/pg90/lib/POSTGR~1/pgxs/src/MAKEFI~1/../../config/install-sh -c -m 755  postgis-2.0.dll 'c:/projects/postgis/regress/0
> 0-regress-install/lib/postgis-2.0.dll'
> /bin/sh c:/projects/pg/pg90/lib/POSTGR~1/pgxs/src/MAKEFI~1/../../config/install-sh -c -m 644 ./../spatial_ref_sys.sql postgis.sql uninstall_
> postgis.sql postgis_upgrade_20_minor.sql legacy.sql uninstall_legacy.sql legacy_compatibility_layer.sql 'c:/projects/postgis/regress/00-regr
> ess-install/share/contrib/postgis/'
> make[4]: Leaving directory `/c/projects/postgis/postgis'
> /bin/perl -pi -e 's,\$libdir,c:/projects/postgis/regress/00-regress-install/lib,g' c:/projects/postgis/regress/00-regress-install/share/contrib/postgis/*.sql
> Can't do inplace edit on c:/projects/postgis/regress/00-regress-install/share/contrib/postgis/legacy.sql: Permission denied.
> Can't do inplace edit on c:/projects/postgis/regress/00-regress-install/share/contrib/postgis/legacy_compatibility_layer.sql: Permission denied.
> Can't do inplace edit on c:/projects/postgis/regress/00-regress-install/share/contrib/postgis/postgis.sql: Permission denied.
> Can't do inplace edit on c:/projects/postgis/regress/00-regress-install/share/contrib/postgis/postgis_upgrade_20_minor.sql: Permission denied.
> Can't do inplace edit on c:/projects/postgis/regress/00-regress-install/share/contrib/postgis/rtpostgis.sql: Permission denied.
> Can't do inplace edit on c:/projects/postgis/regress/00-regress-install/share/contrib/postgis/rtpostgis_drop.sql: Permission denied.
> Can't do inplace edit on c:/projects/postgis/regress/00-regress-install/share/contrib/postgis/rtpostgis_legacy.sql: Permission denied.
> Can't do inplace edit on c:/projects/postgis/regress/00-regress-install/share/contrib/postgis/rtpostgis_upgrade_20_minor.sql: Permission denied.
> Can't do inplace edit on c:/projects/postgis/regress/00-regress-install/share/contrib/postgis/rtpostgis_upgrade_cleanup.sql: Permission denied.
> Can't do inplace edit on c:/projects/postgis/regress/00-regress-install/share/contrib/postgis/spatial_ref_sys.sql: Permission denied.
> Can't do inplace edit on c:/projects/postgis/regress/00-regress-install/share/contrib/postgis/topology.sql: Permission denied.
> Can't do inplace edit on c:/projects/postgis/regress/00-regress-install/share/contrib/postgis/topology_upgrade_20_minor.sql: Permission denied.
> Can't do inplace edit on c:/projects/postgis/regress/00-regress-install/share/contrib/postgis/uninstall_legacy.sql: Permission denied.
> Can't do inplace edit on c:/projects/postgis/regress/00-regress-install/share/contrib/postgis/uninstall_postgis.sql: Permission denied.
> Can't do inplace edit on c:/projects/postgis/regress/00-regress-install/share/contrib/postgis/uninstall_rtpostgis.sql: Permission denied.
> Can't do inplace edit on c:/projects/postgis/regress/00-regress-install/share/contrib/postgis/uninstall_topology.sql: Permission denied.
>
> The install command works fine but when perl tries to edit the files it delete them and then display 'Can't do inplace...'.
>
> Any idea?
>
> Thanks,
>
> Pierre
> _______________________________________________
> postgis-devel mailing list
> postgis-devel at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-devel



More information about the postgis-devel mailing list