Reputation: 10376
I know it should never be done, but I accidentally removed the folder /usr/bin/ruby from my Mac OS X. With that I lost all pre-installed ruby files. Now when trying to install Homebrew, for instance, I get the error:
-bash: /usr/bin/ruby: No such file or directory
How can I get pre-installed ruby back to /usr/bin?
Upvotes: 1
Views: 873
Reputation: 8131
Could you just download it from: ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.6-p111.tar.bz2
and then compile it into your /usr/bin directory.
There still might be permission/ownership issues you'd have to deal with.
Upvotes: 0