【发布时间】:2010-07-19 22:03:14
【问题描述】:
我已经按照 RobbyOnRails 安装指南通过 MacPorts 安装了 Postgres 8.4.4。当我尝试连接到项目时,出现以下错误:
establish_connection':RuntimeError: Please install the postgresql adapter: `gem install activerecord-postgresql-adapter` (dlopen(/Library/Ruby/Gems/1.8/gems/pg-0.9.0/lib/pg_ext.bundle, 9): no suitable image found. Did find:
/Library/Ruby/Gems/1.8/gems/pg-0.9.0/lib/pg_ext.bundle: mach-o, but wrong architecture - /Library/Ruby/Gems/1.8/gems/pg-0.9.0/lib/pg_ext.bundle)
PG gem 安装成功,但出现上述错误。
有什么想法吗?
【问题讨论】:
-
运行
gem install activerecord-postgresql-adapter时会发生什么? -
该 gem 不存在/不再受支持