我想在我的電腦中安裝Octopress
。 我儘量做到像無法在安裝RedCloth-4.2.9時安裝gem原生擴展安裝Linux
當我運行
bundle install
我收到錯誤消息
An error occured while installing RedCloth (4.2.9), and Bundler cannot continue.
Make sure that `gem install RedCloth -v '4.2.9'` succeeds before bundling.
所以,我跑
sudo gem install RedCloth -v '4.2.9'
然後,我再次收到一條錯誤消息:
ERROR: Error installing RedCloth:
ERROR: Failed to build gem native extension.
/usr/bin/ruby1.9.1 extconf.rb
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- mkmf (LoadError)
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from extconf.rb:1:in `<main>'
我沒有學過關於ruby的任何知識。
你有什麼GNU?你爲Ruby構建'dev'包嗎? – Hauleth