解决冻结rails版本的问题

上一篇 / 下一篇  2008-05-21 17:12:28 / 个人分类:Ruby & Rails

我的环境是gem 1.1.1,rails 1.2.6, rake 0.8.1
7@.oc,tuU9Z0在一个项目里运行rake rails:freeze:gems时,出现一些错误:LUPA开源社区fB&lw:N/z'Rj1Q
Freezing to the gems for Rails 1.2.6
F)z+Z#eierr0rake aborted!
^3j$} TQ6d0uninitialized constant Gem::GemRunnerLUPA开源社区x#D.H f;}g!o(U
LUPA开源社区e6a:i5ch0{ K8p Gu
解决办法是编辑/usr/local/lib/ruby/gems/1.8/gems/rails-1.2.6/lib/tasks/framework.rake这个文件。LUPA开源社区sjS ]i [
LUPA开源社区t0l6W$BW~6N p
namespace :rails do
H/SY$quPl0l0  namespace :freeze do
-e'w5g Gn H)mk-U/F0    desc "Lock this application to the current gems (by unpacking them into vendor/rails)"
$W;{ rhp x7X?0    task :gems do
$z`9?Odpqd0      deps = %w(actionpack activerecord actionmailer activesupport actionwebservice)
\Z ^ [.~ w }:Yu"o.T*C0      require 'rubygems'LUPA开源社区9~F3D { phF5u^ ^
      require 'rubygems/gem_runner'   #加入这一项LUPA开源社区V4Q~Sx~
      Gem.manage_gems

TAG:

 

评分:0

我来说两句

显示全部

:loveliness: :handshake :victory: :funk: :time: :kiss: :call: :hug: :lol :'( :Q :L ;P :$ :P :o :@ :D :( :)

日历

« 2008-10-11  
   1234
567891011
12131415161718
19202122232425
262728293031 

数据统计

  • 访问量: 1466
  • 日志数: 18
  • 建立时间: 2006-09-28
  • 更新时间: 2008-05-21

RSS订阅

Open Toolbar