环境:Windows 10的Bash
我正在尝试从客户端存储库在我的工作站上设置Ruby环境。我跑了bundle install
来安装rbenv中的所有宝石。然后我运行rake
,它应该在进程中安装并收到错误消息。以下是以粗体运行命令时收到的日志。
bundle exec rake db:create
Could not find rake-10.5.0 in any of the sources
Run `bundle install` to install missing gems.
rake
Could not find rake-10.5.0 in any of the sources
Run `bundle install` to install missing gems.
bundle install
Bundle complete! 31 Gemfile dependencies, 124 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.
bundle info rake
* rake (10.5.0)
Summary: Rake is a Make-like program implemented in Ruby
Homepage: https://github.com/ruby/rake
Path: /usr/share/rubygems-integration/all/gems/rake-10.5.0
bundle | grep rake
Using rake 10.5.0
答案 0 :(得分:1)
也许您可以尝试手动安装rake以查看它是否解决了您的问题,运行
gem install rake -v '10.5.0'