[mapguide-users] Not much luck with ogr or postgis on Ubuntu

Dave Wilson dave.wilson at autodesk.com
Fri Nov 30 14:39:24 EST 2007


Doh. I'm a Windohs use and forgot to swap bin with lib. LD_LIBRARY_PATH is one way to set a path to search for files similar to the PATH variable in Windows. I am not familiar with PostGIS or OGR, but for most stuff you need some kind of client or connectivity files. If these are installed someplace else then FDO needs to find them hence the path approach. The alternative is to copy the required files to the FDO directory. That's it in a general sense.

Unless of course our build does some kind of magic and builds the connectivity into the provider which is entirely possible. I don't know because I'm not a developer and don't know any details about the provider. I was just providing a point of reference from my QA perspective.

Regards,
Dave

-----Original Message-----
From: mapguide-users-bounces at lists.osgeo.org [mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of Greg Boone
Sent: Friday, November 30, 2007 11:17 AM
To: MapGuide Users Mail List
Subject: RE: [mapguide-users] Not much luck with ogr or postgis on Ubuntu

Please generate an FDO Ticket to track this issue so it can be resolved in an upcoming build/release.

-----Original Message-----
From: mapguide-users-bounces at lists.osgeo.org [mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of Jack Lee
Sent: Friday, November 30, 2007 1:09 PM
To: MapGuide Users Mail List
Subject: RE: [mapguide-users] Not much luck with ogr or postgis on Ubuntu

Hi,

The crypt library seems to be missing from PostGIS/Src/Makefile.am

You can try changing

   -lpq

to

  -lpq \
  -lcrypt


in Makefile.am and rebuild.



-----Original Message-----
From: mapguide-users-bounces at lists.osgeo.org [mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of Joanne Cook
Sent: Freitag, 30. November 2007 12:35
To: mapguide-users at lists.osgeo.org
Subject: RE: [mapguide-users] Not much luck with ogr or postgis on Ubuntu

Hi All,

I seem to be unable to answer mailing list messages in nabble at the moment, and only get the daily digest otherwise, so here goes:

1: Dave suggested there should be Provider.so files in the FDO/bin directory but I don't have that- only /usr/local/fdo-3.3.0/lib and they are all in there. Doing a search for one of the other providers seems to suggest that's the only location for all of them, which may be wrong?

2: Running ldd -r on libPostGISProvider.so gives me the following line that I don't get when I run any of the others (including ogr): undefined symbol: crypt (./libPostGISProvider.so)

3: Not sure how to use LD_LIBRARY_PATH, but running echo $LD_LIBRARY_PATH doesn't give me anything

Thanks for all the replies

Jo




Message: 40
Date: Fri, 30 Nov 2007 08:38:14 -0800
From: "Jason Birch" <Jason.Birch at nanaimo.ca>
Subject: RE: [mapguide-users] Not much luck with ogr or postgis on
        Ubuntu
To: "MapGuide Users Mail List" <mapguide-users at lists.osgeo.org>,
        <fdo-internals at lists.osgeo.org>
Message-ID:
        <8E468917B01800408B91984428BE03DD072A5C74 at starfish.nanaimo.ca>
Content-Type: text/plain;       charset="US-ASCII"


I ran into the same problem the last time I checked.  Perhaps we need to
put the PostGIS and OGR shared libraries into the include path before
running MapGuide or something?  I unfortunately don't know enough about
this stuff works on *nix to be able to figure out where to start.  Is
there something equivalent to depends.exe on windows?



Are the .so files for the drivers to talk to PostGIS or OGR in some directory other than the FDO/bin directory? If so then add the path to the LD_LIBRARY_PATH and try again. Otherwise copy the .so files into the FDO/bin folder.

At least that's how the other FDO providers work. The.so files need to be in the same folder or in the system path.

Dave

-----Original Message-----
From: mapguide-users-bounces at lists.osgeo.org [mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of Jason Birch
Sent: Friday, November 30, 2007 9:38 AM
To: MapGuide Users Mail List; fdo-internals at lists.osgeo.org
Subject: RE: [mapguide-users] Not much luck with ogr or postgis on Ubuntu


I ran into the same problem the last time I checked.  Perhaps we need to
put the PostGIS and OGR shared libraries into the include path before
running MapGuide or something?  I unfortunately don't know enough about
this stuff works on *nix to be able to figure out where to start.  Is
there something equivalent to depends.exe on windows?

I can't start my VM right now, but if you look in your FDO directory,
can you see whether the appropriate provider library files were built
for these?

Any FDO folks have any ideas about this?

Jason






------
Files attached to this email may be in ISO 26300 format (OASIS Open Document Format). If you have difficulty opening them, please visit http://iso26300.info for more information.

_______________________________________________
mapguide-users mailing list
mapguide-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users
_______________________________________________
mapguide-users mailing list
mapguide-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users
_______________________________________________
mapguide-users mailing list
mapguide-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


More information about the mapguide-users mailing list