Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I had ruby in my Red hat linux pc. I manually deleted the folders of ruby in /usr/lib and /usr/bin. Now when I try to install ruby again it says it conflicts with some files which does not exist.

rpm -i ruby-libs-1.8.6.111-1.i386.rpm

file /usr/lib/ruby/1.8/yaml/tag.rb from install of ruby-libs-1.8.6.111-1 conflicts with file from package ruby-libs-1.8.5-5.el5 and lot more files

What should I do now ?Can someone guide me.

Regards, Mithun

share|improve this question

3 Answers 3

If you're sure you really want to install that file, you can use the --force option:

rpm -i --force ruby-libs-1.8.6.111-1.i386.rpm
share|improve this answer

Try removing the old installation using rpm

rpm -qa | grep ruby

to get see that it is installed, then

rpm -e ruby-libs-1.8.6.111-1

to uninstall it. Do this for other packages that are conflicting as well.

share|improve this answer

Use rvm if you want to do anything with ruby. Particularly when you're using a distro that tends to be on the conservative side.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.