Naresh
Naresh

Reputation: 653

brew update failes because of deletion of system installed Ruby

brew update failes with the error

/usr/local/bin/brew: /usr/local/Library/brew.rb: /System/Library/Frameworks/Ruby.framework/Versions/Current/usr/bin/ruby: bad interpreter: No such file or directory /usr/local/bin/brew: line 23: /usr/local/Library/brew.rb: Undefined error: 0"

I have deleted /System/Library/Frameworks/Ruby.framework bacause of some Ruby conflicts. I know this was a big mistake.

Is there any way to fix this issue?

Upvotes: 0

Views: 82

Answers (1)

sprungl
sprungl

Reputation: 74

You have to reinstall Ruby. I am assuming you are using Mac OSX? Download the OS from the store and just install the essentials.pkg as shown here.

Would also recommend you use RVM.

Upvotes: 1

Related Questions