Fix Corrupted Ruby in Mac OS X Lion

Posted by luckyb56 on Super User See other posts from Super User or by luckyb56
Published on 2012-04-07T15:07:59Z Indexed on 2012/04/07 17:35 UTC
Read the original article Hit count: 477

Filed under:
|

I screwed up my ruby buy executing the command

sudo easy_install pip> /usr/bin/ruby -e "$(/usr/bin/curl -fksSL https://raw.github.com/mxcl/homebrew/master/Library/Contributions/install_homebrew.rb)"

It showed error:

Couldn't find index page for '-e' (maybe misspelled?)
No local packages or download links found for -e
error: Could not find suitable distribution for Requirement.parse('-e')

After that when I tried to install Brew by:

/usr/bin/ruby -e "$(/usr/bin/curl -fksSL https://raw.github.com/mxcl/homebrew/master/Library/Contributions/install_homebrew.rb)"

It shows error which I have no idea:

/usr/bin/ruby: line 1: Searching: command not found
/usr/bin/ruby: line 2: Best: command not found
/usr/bin/ruby: line 3: Processing: command not found
Usage: pip COMMAND [OPTIONS]

pip: error: No command by the name pip 1.1
  (maybe you meant "pip install 1.1")
/usr/bin/ruby: line 5: Installing: command not found
/usr/bin/ruby: line 6: Installing: command not found
/usr/bin/ruby: line 8: Using: command not found
/usr/bin/ruby: line 9: Processing: command not found
/usr/bin/ruby: line 10: Finished: command not found
/usr/bin/ruby: line 11: Searching: command not found
/usr/bin/ruby: line 12: Reading: command not found
/usr/bin/ruby: line 13: syntax error near unexpected token `('
/usr/bin/ruby: line 13: `Scanning index of all packages (this may take a while)'

Can this be fixed?

© Super User or respective owner

Related posts about osx

Related posts about ruby