Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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.

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
show 1 more comment

2 Answers

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

share|improve this answer
add comment

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

share|improve this answer
add comment

Your Answer

 
discard

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.