Mac OSX 10.6 libpq.5.dylib

From: PANAGIOTIS GERMANIS <pgermanis(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Mac OSX 10.6 libpq.5.dylib
Date: 2011-02-19 11:09:11
Message-ID: 81062720-9928-4067-845A-8B7FD8876C0E@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

My application builds successfully in Xcode and runs without problems in my mac (running snow leopard 10.6.6) because I have properly installed the postgres 9.0 software.
But when I am trying to run my application in an other mac (that hasn't the postgres installed) I get the following error:

Dyld Error Message:
Library not loaded: libpq.5.dylib
Referenced from: /Volumes/Documents/Projects/Mac_Software/iMacProjects/macReport/build/Release/macReport.app/Contents/MacOS/macReport
Reason: image not found

My application bundle includes libpq.5.dylib into the Frameworks folder.
I faced similar problem with mySQL libraries and resolved them using the following commands in terminal:
install_name_tool -change /usr/local/mysql/lib/libmysqlclient.16.dylib @executable_path/../Frameworks/libmysqlclient.16.dylib macReport
install_name_tool -change /usr/local/mysql/lib/libmysqlclient_r.16.dylib @executable_path/../Frameworks/libmysqlclient_r.16.dylib macReport

I tryed to do the same with libpq.5.dylib but the problem remains.

If you have any idea how to solve this error please respond.

THANKS
___________________________________
Panos Germanis
Software Engineer
pgermanis(at)gmail(dot)com
mob: 6944339998

"Peace cannot be kept by force. It can only be achieved by understanding."
(Albert Einstein)

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Radosław Smogura 2011-02-19 11:33:21 Re: Postgresql prepared transactions
Previous Message Allan Kamau 2011-02-19 10:06:17 Re: mysql 2 pg script...