久しぶりにtexを触ったらコンパイル失敗

何か悪いことしたかなあ

エラー文をコピしてそのままgoogle大先生にペーしたらGhostscriptが怪しいことが判明した。ありがとう大先生。しかしながら、OSもgsもアップデートしてもtexコンパイルが失敗。もうきつい。やけになり、

$ brew install Ghostscript

を打ち込んでみた。そしたらば、

Warning: ghostscript 9.23 is already installed, it's just not linked
You can use `brew link ghostscript` to link this version.

######################################################
# Initialize /Users/tokunaga/.config/brewfile/Brewfile
######################################################


##############################################################
# You can edit /Users/tokunaga/.config/brewfile/Brewfile with:
#     $ brew-file edit
##############################################################

て怒られた。でもエラー文の指示に従って、以下を実行してみる。

Mandrake:tex tokunaga$ brew link ghostscript
Linking /usr/local/Cellar/ghostscript/9.23... 
Error: Could not symlink bin/dvipdf
Target /usr/local/bin/dvipdf
already exists. You may want to remove it:
  rm '/usr/local/bin/dvipdf'

To force the link and overwrite all conflicting files:
  brew link --overwrite ghostscript

To list all files that would be deleted:
  brew link --overwrite --dry-run ghostscript

めちゃめちゃ言うこと聞く。

Mandrake:tex tokunaga$ brew link --overwrite ghostscript
Linking /usr/local/Cellar/ghostscript/9.23... 56 symlinks created

ここまでやると、全部解決。ありがとう。