在我正在使用的本地计算机上rbenv
当我跑步时bundle install我得到:
The git source `git://github.com/sinatra/sinatra.git` uses the `git` protocol, which transmits data without encryption. Disable this warning with `bundle config git.allow_insecure true`, or switch to the `https` protocol to keep your data secure.
Warning: the running version of Bundler (1.17.2) is older than the version that created the lockfile (1.17.3). We suggest you upgrade to the latest version of Bundler by running `gem install bundler`.
Following files may not be writable, so sudo is needed: …Run Code Online (Sandbox Code Playgroud) 我正在使用rbenv,执行时出现跟随错误rails s
您的Ruby版本是2.0.0,但您的Gemfile指定为2.1.2
我正在读这个帖子:Mavericks,RBENV,你的Ruby版本是2.0.0,但是你的Gemfile指定了2.1.1
但错误仍然存在.
rails -v
Your Ruby version is 2.0.0, but your Gemfile specified 2.1.2
Run Code Online (Sandbox Code Playgroud)
和命令
sudo gem install bundler
rbenv rehash
Run Code Online (Sandbox Code Playgroud)
$ which ruby
/usr/bin/ruby
$ bundle exec which ruby
Your Ruby version is 2.0.0, but your Gemfile specified 2.1.2
doenst解决问题.我做错了什么?