Activerecord-PostgreSQL Adapter Error
- by Tian
When running "rake db:migrate", i receive the following error:
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)
Postgres 8.4.4 installed using the pre-built image file.
Then ran sudo gem install pg to install pg-0.9.0
Config/database.yml:
development:
adapter: postgresql
Does anyone know what the problem is?