Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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:


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.

share|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

Here's the file from my i7 MBP on 10.6.6:

share|improve this answer

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

share|improve this answer

Your Answer


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.