0

I have: CentOS release 6.4 (Final)

As it happened, I removed ruby:

rm -rf /usr/local/lib/ruby
rm -Rf /usr/lib/ruby

I tried to update, remove, reinstall ruby and rubygems, but unfortunately does not work :( But I have the following errors:

[root@localhost /]# gem --version
:1:in 'require': cannot load such file -- rubygems.rb (LoadError)
        from :1:in ''

Maybe you have some ideas?

  • Why did you delete it in the first place? Use `yum install` to reinstall Ruby and RubyGems. And stop running as the root user on your system until you know what you are doing. Instead, log in as a normal user and carefully use `sudo`. – the Tin Man Nov 17 '13 at 16:23

1 Answers1

0

I'd suggest you try rbenv.

Since you are using CentOS this guide may help you.

user2422869
  • 750
  • 7
  • 17