簡體   English   中英

錯誤的紅寶石版本當我在Jekyll中運行捆綁安裝時

[英]Error ruby version When i'm running bundle install in Jekyll

我已經將Ubuntu重新安裝並更新到16.04,所以現在我已經安裝了RVM以使用Jekyll,但是運行gemfile捆綁安裝時出現了問題。

$ 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無法運行2.3.1, but your Gemfile specified 2.2.0為什么呢? 如果我有使用ruby-2.2.0

看來您同時安裝了RVM和rbenv,並且它們可能存在沖突。 由於它們或多或少都執行相同的操作,因此擺脫其中之一應該是安全的。 這意味着ruby的rbenv安裝已損壞。

sudo rm -rf ~/.rbenv

嘗試像這樣安裝Ruby

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM