Skip to Content

Installing mapchat fails because it can't find lwpostgis.sql

3 replies [Last post]
archaeogeek
Offline
Joined: 2009-10-27

Hi,
I downloaded the snapshot mapchat2_20090811 and am working my way through the installation on ubuntu 8.04 with postgresql 8.3 and postgis 1.4. I am at the stage of using the web-based cofiguration tool to initialise the mapchat database, and it fails because it can't find the file lwpostgis.sql. In postgis 1.4 this has been renamed to postgis.sql.
Any help would be greatly appreciated!
 
Thanks
Jo

mgleahy
Offline
Joined: 2007-07-17

Ok, thanks for pointing that out and will fix it shortly.
In the meantime, you can work around this by editing the file 'library/MapChat/Setup.php', and substitute the new postgis.sql filename on line 46.
You'll need to drop the existing database - or retry setting up MapChat with a different database name.

archaeogeek
Offline
Joined: 2009-10-27

It's OK, I found my own fix- I did a search for all mentions of lwpostgis.sql and found the library/MapChat/setup.php file was the only mention of it, so I just did a find and replace. The rest of the installation proceeded OK, although I haven't got a map file configured yet.
 
Jo

mgleahy
Offline
Joined: 2007-07-17

Ok - you replied faster than I could respond.  :)