0
votes

Homebrew does not work anymore. trying brew doctor or brew update command on the terminal getting this error:

/usr/local/Library/brew.rb: line 4: syntax error near unexpected token `('
/usr/local/Library/brew.rb: line 4: `std_trap = trap("INT") { exit! 130 } # no backtrace thanks'

XCode 5 and Command Line Tools have already installed! which brew command result is brew is /usr/local/bin/brew

(uninstall homebrew then re-installed but still I couldnt install brew formulas)

1
add the first 5 lines off /usr/local/Library/brew.rbmpapis
tried nothing! guess missing interpreter or something to run properlyGencebay
you need to run: head -n 5 /usr/local/Library/brew.rb no to execute this filempapis

1 Answers

0
votes

i think it is just a syntax error, just put the backtick(`) at the end of the 4th line. So the line 4 looks like this

      `std_trap = trap("INT") { exit! 130 }`

It is a system call, so to run the command or system call, using backtick is one of the solutions.