[GRASS5] GRASS5.7: pg.postgisdb path to libgis partially hard-coded

Moritz Lennert mlennert at club.worldonline.be
Fri Dec 5 11:34:44 EST 2003


Radim Blazek said:
> On Thursday 04 December 2003 19:05, Moritz Lennert wrote:
>> Hello,
>>
>> Trying to use pg.postgisdb, I realised that part of the path to postgis
>> is
>> hard-coded:
>>
>> when I give the option '-P /usr/lib/postgresql' I get
>>
>> libpostgis.so.x.x dir: '/usr/lib/postgresql/lib/contrib/
>>
>> In the pg.postgisdb script this seems to be defined at line 176:
>>
>> libpostgisdir="$postgis/lib/contrib/"
>>
>> However, I have the postgis library installed directly in
>> /usr/lib/postgresql/lib/ without a contrib directory. In order to use
>> the
>> module, I had to create a directory contrib and symlink from that
>> directory back to the library file.
>>
>> Is there any reason to suppose the existance of any specific directories
>> ?
>
> I have (Postgres 7.1.3):
> ....../pgsql/lib/contrib/libpostgis.so.0.6
> maybe the place has changed. I think that pg.postgisdb has potentialy
> more problems, and it doesn't do anything GRASS specific except
> '--sheep' option. Shall I remove it?
>

I don't understand its value, yet (I was just blindly following the
tutorial), so I can't comment on that, but if you decide to keep it, it
should not expect any specific locations.

Moritz




More information about the grass-dev mailing list