可能重複:
How to handle Ruby on Rails error: 「Please install the postgresql adapter: `gem install activerecord-postgresql-adapter'」請安裝PostgreSQL的適配器:`安裝了activerecord-PostgreSQL相關adapter`
我試圖讓管理平臺與Postgres的工作。
在我的日誌中,我一直在看。
Please install the postgresql adapter: `gem install activerecord-postgresql-adapter`
谷歌搜索後,大家都說你需要做寶石安裝頁面。但當我做寶石列表
actionmailer (2.3.5)
actionpack (2.3.5)
activerecord (2.3.8, 2.3.5)
activeresource (2.3.5)
activesupport (2.3.8, 2.3.5)
fastthread (1.0.7)
passenger (2.2.15)
pg (0.9.0)
postgres (0.7.9.2008.01.28)
postgres-pr (0.6.3)
rack (1.0.1)
rails (2.3.5)
rake (0.8.7)
你可以清楚地看到,pg已經安裝。有沒有其他人發現這個問題或解決它?
現在我得到/opt/redmine/apps/redmine/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:76:in'establish_connection':請安裝postgresql適配器:'gem install activerecord-postgresql-adapter'(/usr/lib/ruby/gems/1.8/gems/pg-0.9.0/lib/pg_ext.so:錯誤ELF類:ELFCLASS64 - /usr/lib/ruby/gems/1.8/gems/pg-0.9.0/lib/pg_ext.so)(RuntimeError) – silent1mezzo 2010-07-27 20:58:57
這與ruby不再相關,你的本地postgre庫有些問題。特別是,你下載了正確的版本(32/64位)?此外,似乎有很多相關的內容在谷歌的「錯誤的ELF類:ELFCLASS64」 – 2010-07-27 21:16:43
Postgres或PostgreSQL - 不是postgre – rfusca 2010-07-27 21:59:28