库未加载:/usr/local/lib/libpq.5.4.dylib [英] Library not loaded: /usr/local/lib/libpq.5.4.dylib

查看:204
本文介绍了库未加载:/usr/local/lib/libpq.5.4.dylib的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Rails应用程序.
使用postgresql-9.1.2-1-osx.dmg
安装了Postgresql 已安装pg gem.
然后当我执行rake db:create 出现以下错误-

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 following error -

dlopen(/Users/sathishvc/.rvm/gems/ruby-1.9.3-head@knome-vivacious/gems/pg-0.12.2/lib/pg_ext.bundle, 9):库未加载:/usr/local/lib/libpq.5.4.dylib

dlopen(/Users/sathishvc/.rvm/gems/ruby-1.9.3-head@knome-vivacious/gems/pg-0.12.2/lib/pg_ext.bundle, 9): Library not loaded: /usr/local/lib/libpq.5.4.dylib

检查/usr/local/lib/libpq.5.4.dylib是否存在.不会.
因此,它应该存在于系统中的其他位置,或者如果我需要为此安装其他任何软件,我也不知道.

Checked if /usr/local/lib/libpq.5.4.dylib exists or not. It does not.
So, it should be existing somewhere else in the system or I do not know, if I need to install any other piece of software for this.

请咨询任何人?

推荐答案

发布此问题一段时间后,我发现libpq.5.4.dylib驻留在/Library/PostgreSQL/9.1/lib/中.
因此,我创建了以下链接:
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.

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.

然后解决了这个问题.

这篇关于库未加载:/usr/local/lib/libpq.5.4.dylib的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆