Could not find rake-0.9.2 in any of the sources Run `bundle install` to install
刚使用rake test进行测试报错
Ruby代码- 1.Could not find rake-0.9.2 in any of the sources
- 2.Run `bundle install` to install missing gems.
- Could not find rake-0.9.2 in any of the sources
- Run `bundle install` to install missing gems.
- 使用sudo bundle install
复制代码 返回:
Ruby代码- 1.Fetching source index for http://rubygems.org/
- 2.Installing rake (0.9.2)
- 3.Using multi_json (1.0.3)
- 4.Using activesupport (3.1.1)
- 5.Using builder (3.0.0)
- 6.Using i18n (0.6.0)
- 7.Using activemodel (3.1.1)
- 8.Using erubis (2.7.0)
- 9.Installing rack (1.3.4)
- 10.Using rack-cache (1.1)
- 11.Using rack-mount (0.8.3)
- 12.Using rack-test (0.6.1)
- 13.Using hike (1.2.1)
- 14.Using tilt (1.3.3)
- 15.Installing sprockets (2.0.2)
- 16.Using actionpack (3.1.1)
- 17.Installing mime-types (1.16)
- 18.Using polyglot (0.3.2)
- 19.Using treetop (1.4.10)
- 20.Using mail (2.3.0)
- 21.Using actionmailer (3.1.1)
- 22.Using arel (2.2.1)
- 23.Using tzinfo (0.3.30)
- 24.Using activerecord (3.1.1)
- 25.Using activeresource (3.1.1)
- 26.Using bundler (1.0.21)
- 27.Installing coffee-script-source (1.1.2)
- 28.Installing execjs (1.2.9)
- 29.Installing coffee-script (2.2.0)
- 30.Using rack-ssl (1.3.2)
- 31.Using json (1.6.1)
- 32.Installing rdoc (3.10)
- 33.Using thor (0.14.6)
- 34.Using railties (3.1.1)
- 35.Installing coffee-rails (3.1.1)
- 36.Installing jquery-rails (1.0.14)
- 37.Installing libv8 (3.3.10.2)
- 38.Using rails (3.1.1)
- 39.Installing sass (3.1.10)
- 40.Installing sass-rails (3.1.4)
- 41.Installing sqlite3 (1.3.4) with native extensions
- 42.Installing therubyracer (0.9.8) with native extensions
- 43.Installing uglifier (1.0.3)
- Fetching source index for http://rubygems.org/
- Installing rake (0.9.2)
- Using multi_json (1.0.3)
- Using activesupport (3.1.1)
- Using builder (3.0.0)
- Using i18n (0.6.0)
- Using activemodel (3.1.1)
- Using erubis (2.7.0)
- Installing rack (1.3.4)
- Using rack-cache (1.1)
- Using rack-mount (0.8.3)
- Using rack-test (0.6.1)
- Using hike (1.2.1)
- Using tilt (1.3.3)
- Installing sprockets (2.0.2)
- Using actionpack (3.1.1)
- Installing mime-types (1.16)
- Using polyglot (0.3.2)
- Using treetop (1.4.10)
- Using mail (2.3.0)
- Using actionmailer (3.1.1)
- Using arel (2.2.1)
- Using tzinfo (0.3.30)
- Using activerecord (3.1.1)
- Using activeresource (3.1.1)
- Using bundler (1.0.21)
- Installing coffee-script-source (1.1.2)
- Installing execjs (1.2.9)
- Installing coffee-script (2.2.0)
- Using rack-ssl (1.3.2)
- Using json (1.6.1)
- Installing rdoc (3.10)
- Using thor (0.14.6)
- Using railties (3.1.1)
- Installing coffee-rails (3.1.1)
- Installing jquery-rails (1.0.14)
- Installing libv8 (3.3.10.2)
- Using rails (3.1.1)
- Installing sass (3.1.10)
- Installing sass-rails (3.1.4)
- Installing sqlite3 (1.3.4) with native extensions
- Installing therubyracer (0.9.8) with native extensions
- Installing uglifier (1.0.3)
复制代码 再次调用rake test:
Ruby代码- 1.rake aborted!
- 2.You have already activated rake 0.9.2.2, but your Gemfile requires rake 0.9.2. Using bundle exec may solve this.
- rake aborted!
- You have already activated rake 0.9.2.2, but your Gemfile requires rake 0.9.2. Using bundle exec may solve this.
复制代码 解决:
在Gemfile文件 加入
Ruby代码- 1.gem 'rake', '0.9.2.2'
- gem 'rake', '0.9.2.2'
复制代码 再执行:
Java代码- 1.sudo bundle update rake
复制代码 |