0
我試圖在我的linux mint中安裝Jekyll。如何在linux中安裝Jekyll?
[email protected] ~ $ sudo gem install jekyll
,但我得到:
Building native extensions. This could take a while...
ERROR: Error installing jekyll:
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:4:in `<main>'
Gem files will remain installed in /var/lib/gems/1.9.1/gems/ffi-1.9.10 for inspection.
Results logged to /var/lib/gems/1.9.1/gems/ffi-1.9.10/ext/ffi_c/gem_make.out
我有這個安裝包suplementary:
[email protected] ~ $ ruby -v
ruby 1.9.3p484 (2013-11-22 revision 43786) [x86_64-linux]
[email protected] ~ $ gem -v
1.8.23
隨着rbenv我可以在我的Linux中有多個活躍的ruby版本嗎? –
如何將Ruby 1.9.x更新爲Linux中的最新版本? –
rbenv是最簡單的方法。您可以在全球範圍內使用2.2,並選擇在特定項目中使用2.3。如果你只是想更新你的ruby版本,我鼓勵你搜索,我猜,http://askubuntu.com。 –