免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 5894 | 回复: 2
打印 上一主题 下一主题

Could not find rake-0.9.2 in any of the sources Run `bundle install` to install [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-10-26 16:16 |只看该作者 |倒序浏览
Could not find rake-0.9.2 in any of the sources Run `bundle install` to install


刚使用rake test进行测试报错

Ruby代码
  1. 1.Could not find rake-0.9.2 in any of the sources   
  2. 2.Run `bundle install` to install missing gems.  
  3. Could not find rake-0.9.2 in any of the sources
  4. Run `bundle install` to install missing gems.
  5. 使用sudo bundle install
复制代码
返回:

Ruby代码
  1. 1.Fetching source index for http://rubygems.org/   
  2. 2.Installing rake (0.9.2)   
  3. 3.Using multi_json (1.0.3)   
  4. 4.Using activesupport (3.1.1)   
  5. 5.Using builder (3.0.0)   
  6. 6.Using i18n (0.6.0)   
  7. 7.Using activemodel (3.1.1)   
  8. 8.Using erubis (2.7.0)   
  9. 9.Installing rack (1.3.4)   
  10. 10.Using rack-cache (1.1)   
  11. 11.Using rack-mount (0.8.3)   
  12. 12.Using rack-test (0.6.1)   
  13. 13.Using hike (1.2.1)   
  14. 14.Using tilt (1.3.3)   
  15. 15.Installing sprockets (2.0.2)   
  16. 16.Using actionpack (3.1.1)   
  17. 17.Installing mime-types (1.16)   
  18. 18.Using polyglot (0.3.2)   
  19. 19.Using treetop (1.4.10)   
  20. 20.Using mail (2.3.0)   
  21. 21.Using actionmailer (3.1.1)   
  22. 22.Using arel (2.2.1)   
  23. 23.Using tzinfo (0.3.30)   
  24. 24.Using activerecord (3.1.1)   
  25. 25.Using activeresource (3.1.1)   
  26. 26.Using bundler (1.0.21)   
  27. 27.Installing coffee-script-source (1.1.2)   
  28. 28.Installing execjs (1.2.9)   
  29. 29.Installing coffee-script (2.2.0)   
  30. 30.Using rack-ssl (1.3.2)   
  31. 31.Using json (1.6.1)   
  32. 32.Installing rdoc (3.10)   
  33. 33.Using thor (0.14.6)   
  34. 34.Using railties (3.1.1)   
  35. 35.Installing coffee-rails (3.1.1)   
  36. 36.Installing jquery-rails (1.0.14)   
  37. 37.Installing libv8 (3.3.10.2)   
  38. 38.Using rails (3.1.1)   
  39. 39.Installing sass (3.1.10)   
  40. 40.Installing sass-rails (3.1.4)   
  41. 41.Installing sqlite3 (1.3.4) with native extensions   
  42. 42.Installing therubyracer (0.9.8) with native extensions   
  43. 43.Installing uglifier (1.0.3)   
  44. Fetching source index for http://rubygems.org/
  45. Installing rake (0.9.2)
  46. Using multi_json (1.0.3)
  47. Using activesupport (3.1.1)
  48. Using builder (3.0.0)
  49. Using i18n (0.6.0)
  50. Using activemodel (3.1.1)
  51. Using erubis (2.7.0)
  52. Installing rack (1.3.4)
  53. Using rack-cache (1.1)
  54. Using rack-mount (0.8.3)
  55. Using rack-test (0.6.1)
  56. Using hike (1.2.1)
  57. Using tilt (1.3.3)
  58. Installing sprockets (2.0.2)
  59. Using actionpack (3.1.1)
  60. Installing mime-types (1.16)
  61. Using polyglot (0.3.2)
  62. Using treetop (1.4.10)
  63. Using mail (2.3.0)
  64. Using actionmailer (3.1.1)
  65. Using arel (2.2.1)
  66. Using tzinfo (0.3.30)
  67. Using activerecord (3.1.1)
  68. Using activeresource (3.1.1)
  69. Using bundler (1.0.21)
  70. Installing coffee-script-source (1.1.2)
  71. Installing execjs (1.2.9)
  72. Installing coffee-script (2.2.0)
  73. Using rack-ssl (1.3.2)
  74. Using json (1.6.1)
  75. Installing rdoc (3.10)
  76. Using thor (0.14.6)
  77. Using railties (3.1.1)
  78. Installing coffee-rails (3.1.1)
  79. Installing jquery-rails (1.0.14)
  80. Installing libv8 (3.3.10.2)
  81. Using rails (3.1.1)
  82. Installing sass (3.1.10)
  83. Installing sass-rails (3.1.4)
  84. Installing sqlite3 (1.3.4) with native extensions
  85. Installing therubyracer (0.9.8) with native extensions
  86. Installing uglifier (1.0.3)
复制代码
再次调用rake test:

Ruby代码
  1. 1.rake aborted!   
  2. 2.You have already activated rake 0.9.2.2, but your Gemfile requires rake 0.9.2. Using bundle exec may solve this.  
  3. rake aborted!
  4. 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. 1.gem 'rake', '0.9.2.2'  
  2. gem 'rake', '0.9.2.2'
复制代码
再执行:

Java代码
  1. 1.sudo bundle update rake  
复制代码

论坛徽章:
0
2 [报告]
发表于 2011-10-27 08:34 |只看该作者
用不上。

论坛徽章:
0
3 [报告]
发表于 2011-10-28 11:24 |只看该作者
rake版本冲突, 移除rake0.9.2.2则可

or

bundle exec install
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP