Wednesday, February 27, 2013

Unable to install Ruby version 2.0.0-p0 via RVM on Fedora 18

Ruby 2.0.0. version 2.0.0-p0 to be exact, was released on 24th Feb 2013 and as any Ruby programmer would do, i too tried to upgrade to Ruby 2.0.0
Fedora 18 Linux being a new OS, which too was released recently in the mid of January wasn't very helpful in the installation.



So anyone working on Fedora 18, using rvm and wants to try out Ruby 2, follow this and you'll be good to go. ( Well this is the dirty way of course ;) )

Start off by running

rvm get head


After that if you don't already have libyaml run this:

sudo yum install libyaml-devel


Now, try to install ruby using:

rvm install 2.0.0


If this fails giving you this error, don't worry, i'm here for you ;)

Error running 'requirements_centos_libs_install iconv-devel', 
please read /home/user/.rvm/log/ruby-2.0.0-preview/package_install_iconv-devel.log

go to the ".rvm" directory in your home folder and then do this:

cd "/scripts/functions/requirements"


in there, you'll find a file named "fedora". Open it in vim,

vim fedora


and go to line no. 41 and remove the entry "iconv-devel" from the list

save the file, and thats it. run this again

rvm install 2.0.0


and you'll be good to go :)

1 comment:

  1. Best way to do the audit, it will solve your problem from root.

    yum --enablerepo updates-testing install audit

    ReplyDelete