Opened 10 years ago

Closed 8 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 Dimitar Misev, 10 years ago

find works fine:

$ find / -name postgis.sql -print -quit 2> /dev/null
/usr/share/postgresql/9.1/contrib/postgis-2.1/postgis.sql

comment:2 by Dimitar Misev, 10 years ago

After some searching find seems to be the most portable (but also slowest) solution.

comment:3 by Piero Campalani, 10 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 Piero Campalani, 10 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 Bang Pham Huu, 8 years ago

Owner: changed from Alireza to Bang Pham Huu
Status: newassigned

I will take this ticket as tomorrow is Alizera's defend his PhD thesis so good luck to him.

comment:6 by Dimitar Misev, 8 years ago

Sounds good :)

comment:7 by Bang Pham Huu, 8 years ago

Resolution: fixed
Status: assignedclosed

As patch has been submitted so Dr. Alizera can enjoy his joyful moment without any worry.

Note: See TracTickets for help on using tickets.