我刚刚安装了PostgreSQL和用于在 Heroku 上运行 Rails 的pg gem。我在跑
$ rake -T
但由于与“libpq.5.dylib”相关的原因而中止
rake aborted!
dlopen(/Library/Ruby/Gems/1.8/gems/pg-0.13.2/lib/pg_ext.bundle, 9): Library not loaded: libpq.5.dylib
Referenced from: /Library/Ruby/Gems/1.8/gems/pg-0.13.2/lib/pg_ext.bundle
Reason: image not found - /Library/Ruby/Gems/1.8/gems/pg-0.13.2/lib/pg_ext.bundle
是什么赋予了?
如何加载 libpq.5.dylib 库?