Opened 17 years ago

Last modified 4 years ago

#188 closed defect

OGR and PostGIS providers not working under MapGuide on Ubuntu 7.10 — at Version 3

Reported by: jbirch Owned by: gregboone
Priority: major Milestone: 3.4.0
Component: Build System Version: 3.3.0
Severity: 3 Keywords:
Cc: mloskot External ID:

Description (last modified by jbirch)

From Jo Cook on the mapguide-users mailing list:

I have managed to build MGOS2 on Ubuntu 7.04 with help from Jason's
great instructions on the wiki. However, when I try and make a new
data connection with either postgis or ogr I get errors. 

In mapguide studio when I try to make a postgis connection I get
the default feature editor screen and errors in my error log
saying CLNT_8_UNABLE_TO_LOAD_LIBRARY.

When I make an ogr connection I get the proper editor (with data
source and readonly connection options) but I get a connection
failed error when I try and test the connection. The error log
says CLNT_4_PROVIDERNOTREGISTERED.

I have tested my connection string with ogrinfo and it works,
and I have checked that both providers are in my providers.xml
file. 

I have also tested both connection strings with testconnection in
the web tier test suite and both give me the
CLNT_4_PROVIDERNOTREGISTERED error.

Has anyone successfully managed to use either of these connectors
with Ubuntu, and how do I begin debugging the problem?

Change History (3)

comment:1 by jbirch, 17 years ago

Jo's follow-up:

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)

comment:2 by jbirch, 17 years ago

Jack Lee responded:

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.

comment:3 by jbirch, 17 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.