相关疑难解决方法(0)

36
推荐指数
8
解决办法
7万
查看次数

修复您的 Ruby 版本是 2.6.8,但您的 gemfile 指定为 2.5.5

在我正在使用的本地计算机上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)

ruby bundle ruby-on-rails bundler rbenv

7
推荐指数
1
解决办法
3万
查看次数

rbenv您的Ruby版本是2.0.0,但您的Gemfile指定为2.1.2

我正在使用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解决问题.我做错了什么?

ruby ruby-on-rails gemfile rbenv

5
推荐指数
1
解决办法
4685
查看次数

标签 统计

ruby ×3

ruby-on-rails ×3

rbenv ×2

bundle ×1

bundler ×1

gemfile ×1

rubygems ×1