views:

1057

answers:

3

Does anyone know how to uninstall MacRuby? I was using RubyCocoa then decided to try out MacRuby, after installing MacRuby, RubyCocoa has stopped working. So I would like to remove MacRuby, but I cannot find any documentation on how to uninstall it.

+1  A: 

I believe everything for MacRuby is installed into /Library/Frameworks/MacRuby.framework. While I haven't tried it myself, removing that directory should remove MacRuby from the system.

MacRuby shouldn't interact with RubyCocoa in such a way as to cause it to stop working. It maybe the case that something else on your system changed at about the same time as the MacRuby install.

dj2
+2  A: 

Dj2 is right, to uninstall MacRuby:

$ rm -rf /Library/Frameworks/MacRuby.framework
$ rm /usr/local/bin/mac*
$ rm /usr/local/bin/hotcocoa

However, MacRuby and RubyCocoa can live side by side in perfect harmony ;)

Matt Aimonetti
+4  A: 

The given answers won't remove everything. You'll still have XCode templates, examples and a few other dangling sym links: to rb_nibtool and the macruby man page.

To clean this up you need the .pkg file used to install MacRuby in the first place. This gives you a list of all files installed which you can delete. I did this:

$ xar -xf macruby_nightly.pkg
$ lsbom macrubynightly.pkg/Bom # not a typo, the above archive contains this folder

It would be nice if there were a better way to do this...

Charles Dale