What have you found for these years?

2009-07-01

rails script/console segfault

我找到原因了:

photos@testvm97 ~ $ head -1 /home/photos/.gem/ruby/1.8/gems/rails-2.3.2/lib/commands/console.rb
irb = RUBY_PLATFORM =~ /(:?mswin|mingw)/ ? 'irb.bat' : 'irb'

對不起,irb 是 ruby 1.9...

photos@testvm97 ~ $ tail -1 /home/photos/.gem/ruby/1.8/gems/rails-2.3.2/lib/commands/console.rb
exec "#{options[:irb]} #{libs} --simple-prompt"

拜託!這樣寫我根本不能換 ruby 吧!
讀到記憶體裡面有這麼難嗎?
一個 require 'irb' 不是很好嗎?唉...

真的是強烈金玉其外的感覺

0 retries:

Post a Comment

All texts are licensed under CC Attribution 3.0