我已经重新安装并更新了我的Ubuntu到16.04,所以现在我已经安装了RVM以供使用Jekyll,但是在运行gemfile的gem install时遇到了问题。
$ 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 :(得分:0)
看起来你安装了RVM和rbenv,它们可能存在冲突。由于它们或多或少地做同样的事情,所以摆脱其中一个应该是安全的。这意味着ruby的rbenv安装已经破裂。
sudo rm -rf ~/.rbenv
尝试安装Ruby like this