プログラミング

Home brewでbrew pruneしてもエラーが出るとき

プログラミング
スポンサーリンク

問題

Home brewで$brew doctorしたら、以下のようなエラーが…

$ brew doctor
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!
Warning: You have unlinked kegs in your Cellar
Leaving kegs unlinked can lead to build-trouble and cause brews that depend on
those kegs to fail to run properly once built. Run `brew link` on these:
ghostscript
Warning: Broken symlinks were found. Remove them with `brew prune`:
/usr/local/share/ghostscript/9.19/Resource/CIDFSubst/Baoli.ttc
/usr/local/share/ghostscript/9.19/Resource/CIDFSubst/Hannotate.ttc
/usr/local/share/ghostscript/9.19/Resource/CIDFSubst/Hanzipen.ttc
/usr/local/share/ghostscript/9.19/Resource/CIDFSubst/HiraginoSansCNS.ttc
/usr/local/share/ghostscript/9.19/Resource/CIDFSubst/HiraginoSansGB-W3.ttc
/usr/local/share/ghostscript/9.19/Resource/CIDFSubst/HiraginoSansGB-W6.ttc
/usr/local/share/ghostscript/9.19/Resource/CIDFSubst/HiraginoSansR-W4.ttc
/usr/local/share/ghostscript/9.19/Resource/CIDFSubst/HiraginoSerif-W3.ttc
/usr/local/share/ghostscript/9.19/Resource/CIDFSubst/HiraginoSerif-W6.ttc
/usr/local/share/ghostscript/9.19/Resource/CIDFSubst/Kaiti.ttc
/usr/local/share/ghostscript/9.19/Resource/CIDFSubst/Klee.ttc
/usr/local/share/ghostscript/9.19/Resource/CIDFSubst/Kyokasho.ttc
/usr/local/share/ghostscript/9.19/Resource/CIDFSubst/Lantinghei.ttc
/usr/local/share/ghostscript/9.19/Resource/CIDFSubst/LiHeiPro.ttf
/usr/local/share/ghostscript/9.19/Resource/CIDFSubst/LiSongPro.ttf
/usr/local/share/ghostscript/9.19/Resource/CIDFSubst/Libian.ttc
/usr/local/share/ghostscript/9.19/Resource/CIDFSubst/NanumGothic.ttc
/usr/local/share/ghostscript/9.19/Resource/CIDFSubst/NanumMyeongjo.ttc
/usr/local/share/ghostscript/9.19/Resource/CIDFSubst/NanumScript.ttc
/usr/local/share/ghostscript/9.19/Resource/CIDFSubst/STFangsong.ttf
/usr/local/share/ghostscript/9.19/Resource/CIDFSubst/STHeiti.ttf
/usr/local/share/ghostscript/9.19/Resource/CIDFSubst/STXihei.ttf
/usr/local/share/ghostscript/9.19/Resource/CIDFSubst/ToppanBunkyuGothic.ttc
/usr/local/share/ghostscript/9.19/Resource/CIDFSubst/TsukushiAMaruGothic.ttc
/usr/local/share/ghostscript/9.19/Resource/CIDFSubst/TsukushiBMaruGothic.ttc
/usr/local/share/ghostscript/9.19/Resource/CIDFSubst/Xingkai.ttc
/usr/local/share/ghostscript/9.19/Resource/CIDFSubst/YuMincho.ttc
/usr/local/share/ghostscript/9.19/Resource/CIDFSubst/Yuanti.ttc
/usr/local/share/ghostscript/9.19/Resource/CIDFont/DFWaWaSC-W5
/usr/local/share/ghostscript/9.19/Resource/CIDFont/MLingWaiMedium-SC
/usr/local/share/ghostscript/9.19/Resource/CIDFont/MLingWaiMedium-TC
/usr/local/share/ghostscript/9.19/Resource/CIDFont/ToppanBunkyuMidashiGothicStdN-ExtraBold
/usr/local/share/ghostscript/9.19/Resource/CIDFont/ToppanBunkyuMidashiMinchoStdN-ExtraBold
/usr/local/share/ghostscript/9.19/Resource/CIDFont/ToppanBunkyuMinchoPr6N-Regular
/usr/local/share/ghostscript/9.19/Resource/CIDFont/Weibei-SC-Bold
/usr/local/share/ghostscript/9.19/Resource/CIDFont/Weibei-TC-Bold
/usr/local/share/ghostscript/9.19/Resource/CIDFont/YuGo-Bold
/usr/local/share/ghostscript/9.19/Resource/CIDFont/YuGo-Medium
/usr/local/share/ghostscript/9.19/Resource/CIDFont/YuppySC-Regular
/usr/local/share/ghostscript/9.19/Resource/CIDFont/YuppyTC-Regular

ghostscriptなるものをbrew pruneしろとのことなので、

$brew pruneを実行するもErrorが出る。

対処法※削除してもいいもの

  1. unlinkする
  2. ディレクトリを削除する

unlinkする

$brew unlink ghostscript

を実行します。

ディレクトリを削除する

$ rm -drf /usr/local/Cellar/ghostscript/

を実行します。

これでOKです。

$brew pruneを実行して確かめると

$brew prune
Pruned 41 symbolic links and 12 directories from /usr/local

doctorでもエラーがなくなりました。

$ brew doctor
Your system is ready to brew.

必要なものの場合はもう一度インストールして

$brew link ~~をしたらいいと思います。

コメント

タイトルとURLをコピーしました