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
Note: Only a member of this blog may post a comment.