Opened 11 years ago
Closed 9 years ago
#702 closed defect (fixed)
Postgis is installed but still not found
Reported by: | Dimitar Misev | Owned by: | Bang Pham Huu |
---|---|---|---|
Priority: | major | Milestone: | 9.0.x |
Component: | petascope | Version: | development |
Keywords: | Cc: | Piero Campalani | |
Complexity: | Medium |
Description
The update8.sh script fails to find postgis.sql, even though postgis has been installed, because sudo updatedb
has not been run.
update8.sh: WARNING: PostGIS (postgis.sql) not found. Multipoint support will not be installed.
It will be best to revert to using find in this case, for these reasons:
- it's not a good idea to run sudo updatedb automatically in the script
- once this fails, it's complicated to re-run update_petascopedb.sh for multipoint to be enabled
Change History (7)
comment:1 by , 11 years ago
comment:2 by , 11 years ago
After some searching find seems to be the most portable (but also slowest) solution.
comment:3 by , 11 years ago
Just a note: PostGIS 2.0 (our requirement) still works with PostgreSQL 8.4 installations.
http://postgis.net/docs/manual-2.0/postgis_installation.html#idp5740368
comment:4 by , 11 years ago
We first should add an option to update_petascopedb.sh
to specify the explicit intention to have PostGIS support: this way the execution exits if PostGIS is not detected (now just a WARNING is displayed).
This same option could then be used to enable the PostGIS support on an already synced database:
IF POSTGIS_OPTION IS SET THEN update_database() create PostGIS extension on petascopedb add PostGIS-dependent tables END IF
comment:5 by , 9 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
I will take this ticket as tomorrow is Alizera's defend his PhD thesis so good luck to him.
comment:7 by , 9 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
As patch has been submitted so Dr. Alizera can enjoy his joyful moment without any worry.
find works fine: