I won't go into the details of why I did this because I already feel stupid enough but I deleted ruby from the use/bin folder and now Brew does not want to work.
How can I fix this?
(I am on Lion)
I won't go into the details of why I did this because I already feel stupid enough but I deleted ruby from the use/bin folder and now Brew does not want to work.
How can I fix this?
(I am on Lion)
Ruby isn't a critical system file (as far as I know), so I'd imagine you should be able to reinstall it. Just follow the same procedure you did to install Ruby in the first place. See e.g. official instructions.
On a standard system, /usr/bin/ruby
is a symlink to ../../System/Library/Frameworks/Ruby.framework/Versions/Current/usr/bin/ruby
If you still have that file, you can just link it back:
sudo ln -s '../../System/Library/Frameworks/Ruby.framework/Versions/Current/usr/bin/ruby' /usr/bin/ruby