【发布时间】:2016-05-31 10:20:20
【问题描述】:
我正在努力使用rails,所以很抱歉我是一个n00b。我已经多次安装和卸载了 Ruby 和我所有的 gem,但在启动 rails 时仍然遇到问题。如果我这样做...
$ rails new sample_app
...
$ cd sample_app
...
$ bundle install
...
$ rails s
Could not find rake-10.5.0 in any of the sources
Run `bundle install` to install missing gems.
$ gem install rake -v 10.5.0
Successfully installed rake-10.5.0
Parsing documentation for rake-10.5.0
Installing ri documentation for rake-10.5.0
Done installing documentation for rake after 0 seconds
1 gem installed
$ rails s
Could not find rake-10.5.0 in any of the sources
Run `bundle install` to install missing gems.
$ rails --version
Could not find rake-10.5.0 in any of the sources
Run `bundle install` to install missing gems.
当我执行gem list 时,我看到已安装 rake 10.5。我正在运行使用 rbenv 安装的 Ruby 2.3.0。按照它的指示运行 bundle install 或 bundle update 无济于事。有什么建议吗?
【问题讨论】:
-
试试 bundle exec rails s
-
谢谢,但我得到了同样的错误
-
看起来和这个stackoverflow.com/questions/34826795/…类似的问题
-
这似乎是同样的问题,但这似乎没有帮助,除非问题是我的 ruby 版本太新
-
我的ruby版本是2.2.2
标签: ruby-on-rails ruby ruby-on-rails-3 rake bundler