我已經安裝了rails和ruby使用自制軟件,並從編碼休息,最近試圖升級我的軟件包。安裝由於紅寶石版本的寶石問題
當運行:
bundle install --without production
我收到以下錯誤信息:
Gem::InstallError: listen requires Ruby version ~> 2.2.
An error occurred while installing listen (3.1.1), and Bundler cannot continue.
Make sure that `gem install listen -v '3.1.1'` succeeds before bundling.
通過BREW更新檢查,我有這麼ruby 2.3
我不清楚爲什麼這不會安裝。
此外,當我嘗試檢查我的rails版本時,我收到以下錯誤。
Could not find gem 'rails_12factor (= 0.0.2) ruby' in the gems available on this machine.
我很感激一個很好的教程的建議,使我能夠通過更新過程或快速修復?
謝謝
哪個版本的ruby在Gemfile中聲明? –
我宣佈軌'4.2.2',但不是紅寶石。當我在沒有版本的情況下聲明ruby時,它如上所述失敗。如果我試圖強制一個版本,它會失敗並找不到版本。 – mhairic
顯示輸出'bundle exec ruby -v' –