Activerecord-PostgreSQL Adapter Error
Posted
by Tian
on Stack Overflow
See other posts from Stack Overflow
or by Tian
Published on 2010-06-15T20:55:04Z
Indexed on
2010/06/16
4:22 UTC
Read the original article
Hit count: 456
ruby-on-rails
|postgresql
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?
© Stack Overflow or respective owner