From 9d90e05a2b53576f2cc873b627d5969e995cedd6 Mon Sep 17 00:00:00 2001 From: Regina Obe Date: Wed, 7 Nov 2018 15:08:22 +0000 Subject: [PATCH] Mention how to use psql environment variables in long install version and how to test extensions. References #2214 for PostGIS 3.0 git-svn-id: http://svn.osgeo.org/postgis/trunk@16987 b70326c6-7e19-0410-871a-916f4a2858ee --- doc/installation.xml | 43 ++++++++++++------------------------------- 1 file changed, 12 insertions(+), 31 deletions(-) diff --git a/doc/installation.xml b/doc/installation.xml index 619572848..42852f136 100644 --- a/doc/installation.xml +++ b/doc/installation.xml @@ -310,13 +310,13 @@ tar -xvzf postgis-&last_release_version;.tar.gz svn repository - - http://svn.osgeo.org/postgis/trunk/ + + https://svn.osgeo.org/postgis/trunk/ . - svn checkout http://svn.osgeo.org/postgis/trunk/ postgis-&last_release_version; + svn checkout https://svn.osgeo.org/postgis/trunk/ postgis-&last_release_version; Change into the newly created @@ -678,39 +678,20 @@ tar -xvzf postgis-&last_release_version;.tar.gz make comments Building the comments is not necessary if you are building from a release tar ball since these are packaged pre-built with the tar ball already. - If you are building against PostgreSQL 9.1, the extensions should automatically build as part of the make install process. You can if needed build from the extensions + The extensions should automatically build as part of the make install process. You can if needed build from the extensions folders or copy files if you need them on a different server. cd extensions cd postgis make clean make +export PGUSER=postgres #overwrite psql variables +make check #to test before install make install -cd .. -cd postgis_topology -make clean -make -make install -cd .. -cd postgis_sfcgal -make clean -make -make install - -cd .. -cd address_standardizer -make clean -make -make install -make installcheck - -cd .. -cd postgis_tiger_geocoder -make clean -make -make install -make installcheck - - The extension files will always be the same for the same version of PostGIS regardless of OS, so it is fine to copy over the extension files from one OS to another as long as you +# to test extensions +make check RUNTESTFLAGS=--extension + make check uses psql to run tests and as such can use psql environment variables. + Common ones useful to override are PGUSER,PGPORT, and PGHOST. Refer to psql environment variables + The extension files will always be the same for the same version of PostGIS and PostgreSQL regardless of OS, so it is fine to copy over the extension files from one OS to another as long as you have the PostGIS binaries already installed on your servers. If you want to install the extensions manually on a separate server different from your development, You need to copy the following files from the extensions folder into the PostgreSQL / share / extension folder @@ -826,7 +807,7 @@ CREATE EXTENSION postgis_tiger_geocoder FROM unpackaged; If you configured PostGIS using non-standard PostgreSQL, GEOS, or Proj4 locations, you may need to add their library locations to the - LD_LIBRARY_PATH environment variable. + LD_LIBRARY_PATH environment variable. -- 2.40.0