I am having a hard time trying to reinstall Ruby (1.9.2-p136) on my ubuntu machine, using RVM.
Basically I just do:
rvm install 1.9.2-p136
And during the Compiling step, it fails with the following error message:
(NoMethodError) undefined method
`set_encoding’ for RDoc::Parser:Class
I tried to look for this on Stackoverflow and Google but it didn’t help!
Any idea?
Thanks!
EDIT:
To be clear, I am not using Ubuntu but Linux Mint 9 which is based on Ubuntu 10.04.
Well, oddly enough, RDoc was rev’d last week to a new version. So, I suspect you’re running into a snag with it, maybe Ruby 1.9.2-p136, and maybe RVM.
I’d recommend contacting the author of RVM; You can email him at the address that appears when you do
rvm -v. Include the output ofrvm info.I’ll do an install to a VM on my machine here and see how it goes. I have the same Ruby version, but it’s been in place since it came out, so when RDoc updated there was an existing Ruby. I have the most recent Mint, which I assume is 9, based on Ubuntu 10 I think it said.
EDIT:
I just built a Mint 10 VM, then installed rvm, then installed 1.8.7-p330 and 1.9.2-p136. Neither had any problems.
One thing I didn’t do, that Wayne Seguin told me is important, is to
rvm notesafter installing it, before installing Ruby. That will display any OS-specific things needed. For instance, on Mint 10 it says:EDIT:
An additional thing you might run into is a zlib warning when installing gems, which is handled on the RVM site in Zlib