Library not loaded: /usr/local/lib/libpq.5.4.dylib

前端 未结 6 1755
轻奢々
轻奢々 2021-01-01 08:54

I am working on a rails app.
Installed Postgresql using postgresql-9.1.2-1-osx.dmg
Installed pg gem.
Then when I executed rake db:create getting the

6条回答
  •  不知归路
    2021-01-01 09:14

    Some time after I posted this question, I found that libpq.5.4.dylib resides in /Library/PostgreSQL/9.1/lib/.
    So, I created the following link:
    lrwxr-xr-x 1 sathishvc admin 43 Jan 28 23:40 /usr/local/lib/libpq.5.4.dylib -> /Library/PostgreSQL/9.1/lib/libpq.5.4.dylib.

    This solved the problem then.

提交回复
热议问题