MagLev/maglev — Issue #105: require 'prawn' gives a NoMethodError when required from irb 
Author: Patru
Created: 2011-11-10 00:08:01+00:00
State: open

On an rvm installed maglev image on Mac OS X Lion I tried to
```ruby
require 'ruby gems'
require 'prawn'
```

only to get the following stack trace:
```
NoMethodError: NoMethodError: undefined method `ruby_18' for
from /Users/patru/.rvm/gems/maglev-head@invoice/gems/prawn-0.12.0/lib/prawn/core/object_store.rb:246:in `__compileClass'
from /Users/patru/.rvm/gems/maglev-head@invoice/gems/prawn-0.12.0/lib/prawn/core/object_store.rb:14:in `__compileClass'
from /Users/patru/.rvm/gems/maglev-head@invoice/gems/prawn-0.12.0/lib/prawn/core/object_store.rb:13:in `__compileClass'
from /Users/patru/.rvm/gems/maglev-head@invoice/gems/prawn-0.12.0/lib/prawn/core/object_store.rb:12
from /Users/patru/.rvm/rubies/maglev-head/src/kernel/bootstrap/Kernel.rb:831:in `gem_original_require'
from /Users/patru/.rvm/rubies/maglev-head/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from /Users/patru/.rvm/rubies/maglev-head/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:57:in `require'
from /Users/patru/.rvm/gems/maglev-head@invoice/gems/prawn-0.12.0/lib/prawn/core.rb:78
from /Users/patru/.rvm/rubies/maglev-head/src/kernel/bootstrap/Kernel.rb:831:in `gem_original_require'
from /Users/patru/.rvm/rubies/maglev-head/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from /Users/patru/.rvm/rubies/maglev-head/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:57:in `require'
from /Users/patru/.rvm/gems/maglev-head@invoice/gems/prawn-0.12.0/lib/prawn.rb:11
from /Users/patru/.rvm/rubies/maglev-head/src/kernel/bootstrap/Kernel.rb:831:in `gem_original_require'
from /Users/patru/.rvm/rubies/maglev-head/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:59:in `require'
from /Users/patru/.rvm/rubies/maglev-head/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:57:in `require'
from /Users/patru/.rvm/rubies/maglev-head/src/kernel/bootstrap/Kernel.rb:831:in `gem_original_require'
from /Users/patru/.rvm/rubies/maglev-head/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from /Users/patru/.rvm/rubies/maglev-head/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:57:in `require'
from (irb):6:in `__compileEval'
from (irb):8:in `__compileEval'
from /Users/patru/.rvm/rubies/maglev-head/src/kernel/bootstrap/Kernel.rb:394:in `eval'
from /Users/patru/.rvm/rubies/maglev-head/lib/ruby/1.8/irb.rb:159:in `eval_input'
from /Users/patru/.rvm/rubies/maglev-head/lib/ruby/1.8/irb.rb:162:in `eval_input'
from /Users/patru/.rvm/rubies/maglev-head/lib/ruby/1.8/irb.rb:280:in `signal_status'
from /Users/patru/.rvm/rubies/maglev-head/lib/ruby/1.8/irb.rb:281:in `signal_status'
from /Users/patru/.rvm/rubies/maglev-head/lib/ruby/1.8/irb.rb:156:in `eval_input'
from /Users/patru/.rvm/rubies/maglev-head/lib/ruby/1.8/irb.rb:155:in `eval_input'
from /Users/patru/.rvm/rubies/maglev-head/lib/ruby/1.8/irb.rb:71:in `start'
from /Users/patru/.rvm/rubies/maglev-head/lib/ruby/1.8/irb.rb:70:in `start'
from /Users/patru/.rvm/rubies/maglev-head/lib/ruby/1.8/irb.rb:73:in `start'
```
The same code works in a ree rib and in maglev-ruby when written in a file. Strange things go on inside of maglev-irb :-)