[Qgis-user] Pre2 postgis woes

William Kyngesburye woklist at kyngchaos.com
Sun Dec 7 13:38:52 PST 2008


On Dec 3, 2008, at 9:02 PM, William Kyngesburye wrote:

> I can't add any postgis layers in 1.0p2.  I can connect to get the  
> layer list, but any layer I try to add gives an error that it's an  
> invalid layer (and that's all it says).  1.0p1 has no problem.
>
> Now, I got thoroughly distracted by a project a couple weeks ago  
> when I first noticed this, and just got back to it.  I have this  
> nagging suspicion that I had already figured it out, likely as a  
> simple runtime thing (ie not recompiling with some other library  
> version or config option).  But I didn't find any notes, or any  
> emails, with this info.  Maybe I didn't figure it out...
>
> This is with my OSX builds (of course).
>

Well, to answer my own question, it was a bizarre bundling issue.  In  
a random thought to simplify a bit, when bundling the Postgres library  
libpq I renamed it to just 'libpq.dylib', leaving out the library  
version.  I'm sure I got all the install_name references to it in  
Qgis, but either I missed one (there were no errors in the console) or  
libpq just didn't like it.

So, left it as libpq.5.dylib, changed all the install_name references  
to match, and no more invalid postgis layers.

-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/

Earth: "Mostly harmless"

- revised entry in the HitchHiker's Guide to the Galaxy





More information about the Qgis-user mailing list