PDA

View Full Version : Error on running irb1.9



jan247
June 27th, 2008, 02:02 AM
Hi guys. I'm new with Ruby. I have initially installed ruby1.8 and irb1.8. I wanted to try out ruby1.9 and irb1.9. However, irb1.9 won't start stating that it's reading from the 1.8 ruby libraries. Any help would be appreciated. It reads:



~$ irb1.9
/usr/lib/ruby/1.8/e2mmap.rb:51:in `<top (required)>': uninitialized constant VERSION (NameError)
from /usr/lib/ruby/1.8/irb.rb:12:in `require'
from /usr/lib/ruby/1.8/irb.rb:12:in `<top (required)>'
from /usr/bin/irb1.9:10:in `require'
from /usr/bin/irb1.9:10:in `<main>'

rye_
June 27th, 2008, 06:51 AM
I just installed irb1.9 to look for the error and its runs fine on my laptop. did you let all the required dependencies be installed?

Alternatively, you can try removing 1.8

jan247
June 27th, 2008, 11:18 PM
I'm afraid that didn't do the trick. After removing ruby1.8 and irb1.8, I was left with the following instead:



/usr/lib/ruby/1.8/e2mmap.rb:51:in `<top (required)>': uninitialized constant VERSION (NameError)
from /usr/lib/ruby/1.9.0/irb.rb:12:in `require'
from /usr/lib/ruby/1.9.0/irb.rb:12:in `<top (required)>'
from /usr/bin/irb1.9:10:in `require'
from /usr/bin/irb1.9:10:in `<main>'

jan247
June 27th, 2008, 11:23 PM
Sorry, it actually did work. I just forgot to remove libruby1.8. Problem is, after I reinstall ruby1.8, The problem comes back.

jan247
June 29th, 2008, 12:45 PM
anyone?