3

I followed this manual: http://www.paolocorti.net/2008/01/30/installing-postgis-on-ubuntu/ I installed using aptitude:

postgis
postgresql-8.4-postgis

but there is no script lwpostgis.sql in the /usr/share/postgresql-8.4-postgis/.

Khaled
  • 35,688
  • 8
  • 69
  • 98
Xaver
  • 249
  • 2
  • 12

1 Answers1

5

Use "/usr/share/postgresql/8.4/contrib/postgis.sql" instead of "/usr/share/postgresql-8.2-postgis/lwpostgis.sql".

alvosu
  • 8,357
  • 24
  • 22
  • i have not this file but i have "/usr/share/postgresql/8.4/contrib/postgis-1.5/postgis.sql" is that normally? that file i must to use instead of "/usr/share/postgresql/8.4/contrib/spatial_ref_sys.sql" – Xaver Feb 02 '11 at 08:50
  • No, you need use postgis.sql first, then spatial_ref_sys.sql. To find postgis.sql: dpkg -L postgresql-8.4-postgis | grep "postgis.sql" – alvosu Feb 02 '11 at 09:37
  • on ubuntu 10 i found the file in "/usr/share/postgresql/8.4/contrib/postgis/postgis-1.5/postgis.sql" – nemesisdesign Jan 31 '13 at 19:03