Question

I have just installed (built from source) Ruby 1.9.3 onto my CentOS 6.4 system, but found shortly afterwards that I should have installed libyaml first.

How do I uninstall Ruby 1.9.3, so that I can install libyaml before rebuilding and reinstalling Ruby? Are there any other libraries I should install at the same time as libyaml to avoid having to go through this for a second time?

If it makes any difference, I'm doing this on a machine that isn't connected to the internet.

Was it helpful?

Solution 2

Recompiling and reinstalling over the top seemed to work fine.

OTHER TIPS

If you built from source and kept the source code, then you should be able to run:

$ cd path/to/ruby/source
$ make uninstall

You might need to sudo it.

If you haven't kept the source code, then it's messier. You will have to locate all of the files created by the installation and remove them manually. On CentOS you should have the locate command, so just run:

$ sudo updatedb
$ locate ruby

That will give you a long list of files. You should be able to work out which ones were installed and remove them.

While you're rebuilding, include libreadline (might not be the exact name). I've had to re-build ruby for this a number of times.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top