我繼承了Ruby on Rails項目。它被交付了全部拉上,以便作爲第一步,我想要得到它我的桌面上運行Mac:安裝Gem錯誤 - 無法構建gem原生擴展
腳本/服務器
=>引導的WEBrick ... /Library/Ruby/Gems/1.8 /gems/activerecord-2.2.2/lib/active_record/connection_adapters/abstract/connection_specification.rb:74:in establish_connection': Please install the postgresql adapter:
安裝了activerecord-的PostgreSQL-adapter`(沒有這樣的文件來加載 - PG)(RuntimeError)
所以,我嘗試安裝activerecord-postgresql-adapter gem,然後得到:
$ sudo gem install activerecord-postgresql-adapter
Password:
Building native extensions. This could take a while...
ERROR: Error installing activerecord-postgresql-adapter:
ERROR: Failed to build gem native extension.
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb mkmf.rb在/System/Library/Frameworks/Ruby.framework/找不到ruby的頭文件版本/ 1.8/usr/lib/ruby/ruby.h
Gem文件將保留安裝在/Library/Ruby/Gems/1.8/gems/pg-0.14.1中進行檢查。 結果記錄到/Library/Ruby/Gems/1.8/gems/pg-0.14.1/ext/gem_make.out
我怎樣才能得到這個所需的gem安裝?
感謝
感謝。這似乎工作 – Slinky