Welcome Guest. Please Login or Register  


You are here: Index > AMPPS > General Support > Topic : Unable to load dynamic library libpq.5.dylib



Threaded Mode | Print  

 Unable to load dynamic library libpq.5.dylib, After install 2.9 version on mac 10.10. I got this issue. And after i checked, the libpq.5.dylib didn't exist . (3 Replies, Read 5757 times)
elvenour
Group: Member
Post Group: Newbie
Posts: 1
Status:
Got warning like this

Warning: PHP Startup: Unable to load dynamic library '/Applications/AMPPS/php-5.6/lib/extensions/ext/pgsql.so' - dlopen(/Applications/AMPPS/php-5.6/lib/extensions/ext/pgsql.so, 9): Library not loaded: /Applications/AMPPS/extra/lib/libpq.5.dylib
  Referenced from: /Applications/AMPPS/php-5.6/lib/extensions/ext/pgsql.so
  Reason: no suitable image found.  Did find:
    /usr/lib/libpq.5.dylib: mach-o, but wrong architecture in Unknown on line 0
IP: --   

Unable to load dynamic library libpq.5.dylib
pnosko
Group: Member
Post Group: Newbie
Posts: 2
Status:
Did you get this solved? I am having the same issue.
IP: --   

Unable to load dynamic library libpq.5.dylib
pnosko
Group: Member
Post Group: Newbie
Posts: 2
Status:
I copied these two files and two links from the version 2.8 download (http://files.ampps.com/AMPPS-2.8.dmg). Not sure if this is ideal, but my php -m is now "clean."

iMac:lib pnosko$ cd /Volumes/AMPPS/AMPPS/extra/lib
iMac:lib pnosko$ ls -l libpq*
-rwxr-xr-x  1 pnosko  staff  142636 Dec 24 07:48 libpq.5.6.dylib
lrwxr-xr-x  1 pnosko  staff      15 Dec 31 07:19 libpq.5.dylib -> libpq.5.6.dylib
-rw-r--r--  1 pnosko  staff  185400 Dec 24 07:48 libpq.a
lrwxr-xr-x  1 pnosko  staff      15 Dec 31 07:19 libpq.dylib -> libpq.5.6.dylib
IP: --   

Unable to load dynamic library libpq.5.dylib
DaveyJake
Group: Member
Post Group: Newbie
Posts: 2
Status:
I got it! Looking at the error message and the code it finally made sense.

In terminal, run this command:

Code

sudo ln -s /Applications/AMPPS/extra/lib/libpq.5.6.dylib /usr/lib/libpq.5.dylib


Everything will then work without issue.
IP: --   

« Previous    Next »

Threaded Mode | Print  



Jump To :


Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is March 28, 2024, 10:06 am.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 11  |  Page Created In:0.030