brewコマンドで永遠にbrew:[:7: integer expression expected: lineが出るエラー
久々に$brew doctor
してみたらめちゃくちゃに怒られてた。
1. brew:[:7: integer expression expected: line
意味がわからなかった。。。調べても全然ヒットしなかったのでそもそもHomebrewってどうやってインストールしたっけ?から調べた。 その結果まあ、brew自体を再インストールしたw しかし治らず。。泣いた。
ターミナルは普段zshを愛用してるんだけど、その設定ファイルの~/.zshrcがなぜか邪魔してたっぽい。 でも中見たら昔の自分が頑張ってた跡があって消すのは惜しいので~/.zshrc_hogeに改名したった。
んでもっかい$brew doctor
実行したら消えてた。うれし。$brew install sl
しても、$brew update
でも表題のエラーが出力されて何もできなかったから
とりあえず一安心。
他のエラー
一般的なエラー(?)。
Warning: Unbrewed header files were found in /usr/local/include. If you didn't put them there on purpose they could cause problems when building Homebrew formulae, and may need to be deleted.
この下に50行ぐらいnodeのファイル達が列挙してあって、!?ってなったけどよく考えたらnode前にunlinkしてからディレクトリごと消してたんだった。
$ brew install node $ brew link --overwrite node $ brew doctor Your system is ready to brew.
で解決〜。