【发布时间】:2025-12-12 00:45:01
【问题描述】:
环境:Windows 10 的 Bash
我正在尝试通过客户端存储库在我的工作站上设置 Ruby 环境。我运行bundle install 在rbenv 中安装所有的gem。然后我运行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
【问题讨论】:
-
试试
bundle exec rake <command>
标签: ruby bash rake bundler rbenv