我正在嘗試渲染我的Rails應用程序上Chrome。 但是,我得到的Passenger
一個錯誤頁面:apache2:您的Ruby版本是2.1.6,但您的Gemfile指定爲2.3.4
We're sorry, but something went wrong.
The issue has been logged for investigation. Please try again later.
Technical details for the administrator of this website
This website is powered by Passenger®, a rock-solid, feature-rich web application server that integrates with Apache and Nginx built by Phusion®.
的Apache的錯誤日誌說,我有以下錯誤:
Your Ruby version is 2.1.6, but your Gemfile specified 2.3.4
我做了以下但事與願違幫助:
$ruby -v
ruby 2.3.4p301 (2017-03-30 revision 58214) [x86_64-darwin16]
$rbenv version
2.3.4 (set by /Users/.../.rbenv/version)
$gem update bundler
Updating installed gems
Nothing to update
$ brew upgrade ruby-build
Error: ruby-build 20170523 already installed
$ bundle install
...Bundle complete!...
有誰知道如何解決它? 在此先感謝!
有運行rbenv老調重彈,如果沒有的話裏面的文件夾,你可以運行這個 – widjajayd
我做到了。仍然不起作用:( –