Ruby Can';找不到gem';耙子';运行包安装后

Ruby Can';找不到gem';耙子';运行包安装后,ruby,bash,rake,bundler,rbenv,Ruby,Bash,Rake,Bundler,Rbenv,环境:适用于Windows 10的Bash 我正在尝试从客户机存储库在工作站上设置Ruby环境。我运行了bundle install来安装rbenv中的所有gems。然后我运行rake,该程序应该在安装过程中安装,并收到一条错误消息。下面是我运行粗体命令时收到的日志 bundle exec rake db:create Could not find rake-10.5.0 in any of the sources Run `bundle install` to install missing

环境:适用于Windows 10的Bash

我正在尝试从客户机存储库在工作站上设置Ruby环境。我运行了
bundle install
来安装rbenv中的所有gems。然后我运行
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.
Could not find rake-10.5.0 in any of the sources
Run `bundle install` to install missing gems.
Bundle complete! 31 Gemfile dependencies, 124 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.
  * 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
rake

Could not find rake-10.5.0 in any of the sources
Run `bundle install` to install missing gems.
Could not find rake-10.5.0 in any of the sources
Run `bundle install` to install missing gems.
Bundle complete! 31 Gemfile dependencies, 124 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.
  * 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
捆绑安装

Could not find rake-10.5.0 in any of the sources
Run `bundle install` to install missing gems.
Could not find rake-10.5.0 in any of the sources
Run `bundle install` to install missing gems.
Bundle complete! 31 Gemfile dependencies, 124 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.
  * 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
捆绑信息rake

Could not find rake-10.5.0 in any of the sources
Run `bundle install` to install missing gems.
Could not find rake-10.5.0 in any of the sources
Run `bundle install` to install missing gems.
Bundle complete! 31 Gemfile dependencies, 124 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.
  * 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
捆绑| grep rake

Could not find rake-10.5.0 in any of the sources
Run `bundle install` to install missing gems.
Could not find rake-10.5.0 in any of the sources
Run `bundle install` to install missing gems.
Bundle complete! 31 Gemfile dependencies, 124 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.
  * 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

使用rake 10.5.0

也许您可以尝试手动安装rake,看看它是否解决了您的问题,运行
gem安装rake-v'10.5.0'

试试
bundle-exec-rake
就是它做到了!谢谢