我嘗試在Ruby 1.8.6,Rails 2.2.2,gem 1.3和sqlite-3.5.9的Fedora 9 Linux機器上安裝SQLite gem。以下是我正在運行的命令及其結果:爲什麼我不能安裝SQLite gem?
sudo gem install sqlite3-ruby
Building native extensions. This could take a while...
ERROR: Error installing sqlite3-ruby:
ERROR: Failed to build gem native extension.
/usr/bin/ruby extconf.rb install sqlite3-ruby
can't find header files for ruby.
Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4 for inspection.
Results logged to /usr/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4/ext/sqlite3_api/gem_make.out
gem_make.out
只是重複了已經發送到控制檯。我怎樣才能安裝這個寶石?
我不斷得到這個錯誤! – Perpetualcoder 2009-01-07 17:41:56
錯誤中的線索是「找不到ruby的頭文件」......這意味着您將需要ruby的開發包。 – 2009-01-07 20:49:25
@ salt.racer/ANY ONE THERE - 你能否發佈需要什麼包(主要)。 – 2014-01-01 10:50:03