我刚刚安装了PostgreSQL和pg gem用于在Heroku上运行Rails。我跑为什么rake因libpq.5.dylib而中止
$ 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库?
这里的另一种方法,如果你遇到了这个问题,可能工作:http://stackoverflow.com/questions/24627465/ruby-pg-gem-linking-to-wrong-copy-of-libpq-5- dylib-ON-OSX –