2016-11-04 77 views
0

我重新安裝並更新了我的Ubuntu到16.04,所以現在我已經安裝了使用Jekyll的RVM,但是在運行gemfile的bundle安裝時遇到了問題。錯誤ruby版本當我在Jekyll中運行軟件包安裝時

$ bundle install 
Ignoring executable-hooks-1.3.2 because its extensions are not built. 
Try: gem pristine executable-hooks --version 1.3.2 
Ignoring gem-wrappers-1.2.7 because its extensions are not built. Try: gem pristine gem-wrappers --version 1.2.7 
Your Ruby version is 2.3.1, but your Gemfile specified 2.2.0 

$ ruby -v 
ruby 2.2.0p0 (2014-12-25 revision 49005) [x86_64-linux] 

$ rvm gemset list 
gemsets for ruby-2.2.0 (found in /home/kedinn/.rvm/gems/ruby-2.2.0) 

沒有運行,因爲這2.3.1, but your Gemfile specified 2.2.0爲什麼?如果我使用ruby-2.2.0

回答

0

看起來你已經安裝了RVM和rbenv,它們可能有衝突。由於他們做了或多或少相同的事情,所以擺脫其中一個應該是安全的。這意味着紅寶石的rbenv安裝被破壞。

sudo rm -rf ~/.rbenv 

嘗試安裝Ruby like this

相關問題