Possible Duplicate:
How to handle Ruby on Rails error: “Please install the postgresql adapter: `gem install activerecord-postgresql-adapter'”ActiveRecord的,PostgreSQL的适配器错误
当运行 “耙分贝:迁移”,我收到以下错误:
请安装PostgreSQL的适配器:gem install activerecord-postgresql-adapter
(dlopen的(/Library/Ruby/Gems/1.8 /gems/pg-0.9.0/lib/pg_ext.bundle,9):没有找到合适的图像发现: /Library/Ruby/Gems/1.8/gems/pg-0.9.0/lib/pg_ext.bundle: mach-o,但是错误的架构 - /Library/Ruby/Gems/1.8/gems/pg-0.9.0/lib/pg_ext.bundle)
- Pos tgres 8.4.4使用预建的映像文件进行安装。
- 然后跑
sudo gem install pg
安装PG-0.9.0 - 配置/ database.yml中:
development:
adapter: postgresql
有谁知道问题是什么?