linux - Reinstall Ruby to use libyaml -


i have installed (built source) ruby 1.9.3 onto centos 6.4 system, found shortly afterwards should have installed libyaml first.

how uninstall ruby 1.9.3, can install libyaml before rebuilding , reinstalling ruby? there other libraries should install @ same time libyaml avoid having go through second time?

if makes difference, i'm doing on machine isn't connected internet.

if built source , kept source code, should able run:

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

you might need sudo it.

if haven't kept source code, it's messier. have locate of files created installation , remove them manually. on centos should have locate command, run:

$ sudo updatedb $ locate ruby 

that give long list of files. should able work out ones installed , remove them.

while you're rebuilding, include libreadline (might not exact name). i've had re-build ruby number of times.


Comments