,我在我的Rails項目運行命令Rails的錯誤,而安裝FCGI:未能建立寶石原生擴展
bundle install
,它給了錯誤:
...
Using activerecord (3.0.11)
Using activeresource (3.0.11)
Using bigdecimal (1.1.0)
Installing fcgi (0.8.8) with native extensions
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/home/jjboat/.rvm/rubies/ruby-1.9.3-p194/bin/ruby extconf.rb
checking for fcgiapp.h... no
checking for fastcgi/fcgiapp.h... no
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
我使用Ubuntu 10.04,和它說: 命令和apt-get安裝FCGI-dev的 [須藤]密碼jjboat: 讀取軟件包列表...完成 大廈的依賴關係樹 讀取狀態信息...完成 E:找不到包FCGI-dev的 –
看來這個軟件包在Ubuntu中實際上被稱爲'libfcgi-dev'。 –
謝謝,'libfcgi-dev'是正確的。現在它遇到了'mysql2'的錯誤。你知道應該安裝什麼軟件包嗎? 安裝mysql2(0.2.17)時發生錯誤,並且Bundler無法繼續。 確保'gem install mysql2 -v'0.2.17''捆綁成功。 –