I Accidentally corrupted my system install of ruby and cant find out how to fix this. Any ideas?

Basically i was trying to install Redmine on my system and i accidentally copied a file into /usr/bin/ruby which somehow altered/corrupted the ruby executable located:

/System/Library/Frameworks/Ruby.framework/Versions/Current/usr/bin/ruby

Not sure what happened but the ruby executable is the only file that was modified in that dir now no ruby commands work. Not sure if i overwrote it or what?

Running 10.6.6 64 bit.

link|improve this question
How did you install it? Via MacPorts? From source? – Wuffers Feb 10 '11 at 2:05
Pretty sure its installed by default. Although perhaps it was Xcode? – Tony Feb 10 '11 at 2:12
Can you give us a little more insight on what you mean by corrupted? – Nathaniel Bannister Feb 10 '11 at 2:12
Edited question – Tony Feb 10 '11 at 2:17
Wait, so did you overwrite the symlink at /usr/bin/ruby or did you overwrite the original in /System/Library/…? – fideli Feb 10 '11 at 2:30
show 1 more comment
feedback

2 Answers

Here's the file from my i7 MBP on 10.6.6: http://d.pr/o8sG

link|improve this answer
feedback

first Uninstall ruby. and then use rvm (ruby enVironment manager) to install various rubies and manage gems.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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