前提・実現したいこと
ここに質問の内容を詳しく書いてください。
homebrewを使って、emacsをインストールしようとしたら、以下のようなエラ〜メッセージが出て、インストールできませんでした。
解決方法を教えてください。
よろしくおねがいします。
発生している問題・エラーメッセージ
==> Downloading https://emacsformacosx.com/emacs-builds/Emacs-27.2-2-universal.d Already downloaded: /Users/aaa/Library/Caches/Homebrew/downloads/98268eb677c2ae27d49650f398b706013c23eb640fb4ee87f901db9ceb3c0b56--Emacs-27.2-2-universal.dmg ==> Installing Cask emacs ==> Moving App 'Emacs.app' to '/Applications/Emacs.app' ==> Linking Binary 'Emacs' to '/usr/local/bin/emacs' ==> Linking Binary 'ebrowse' to '/usr/local/bin/ebrowse' ==> Linking Binary 'emacsclient' to '/usr/local/bin/emacsclient' ==> Linking Binary 'etags' to '/usr/local/bin/etags' ==> Linking Manpage 'ebrowse.1.gz' to '/usr/local/share/man/man1/ebrowse.1.gz' ln: /usr/local/share/man/man1/ebrowse.1.gz: Permission denied ==> Unlinking Binary '/usr/local/bin/etags' ==> Unlinking Binary '/usr/local/bin/emacsclient' ==> Unlinking Binary '/usr/local/bin/ebrowse' ==> Unlinking Binary '/usr/local/bin/emacs' ==> Backing App 'Emacs.app' up to '/usr/local/Caskroom/emacs/27.2-2/Emacs.app' ==> Removing App '/Applications/Emacs.app' ==> Purging files for version 27.2-2 of Cask emacs Error: Failure while executing; `/bin/ln -h -f -s -- /Applications/Emacs.app/Contents/Resources/man/man1/ebrowse.1.gz /usr/local/share/man/man1/ebrowse.1.gz` exited with 1. Here's the output: ln: /usr/local/share/man/man1/ebrowse.1.gz: Permission denied
> ln: /usr/local/share/man/man1/ebrowse.1.gz: Permission denied
が原因ですね
・「/usr/local/share/man/man1」に、ファイルを作成する権限が無い
・「/usr/local/share/man/man1/ebrowse.1.gz」というファイルが既にあって、それを削除する権限が無い
あたりかな
brew doctor
で、そのあたり何か出ませんか?
参考
https://hacknote.jp/archives/14377/
返信遅れてすみません
次のように出ました。
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: The following directories are not writable by your user:
/usr/local/share/doc
/usr/local/share/man
/usr/local/share/man/man1
You should change the ownership of these directories to your user.
sudo chown -R $(whoami) /usr/local/share/doc /usr/local/share/man /usr/local/share/man/man1
And make sure that your user has write permission.
chmod u+w /usr/local/share/doc /usr/local/share/man /usr/local/share/man/man1
Warning: Homebrew/homebrew-core was not tapped properly! Run:
rm -rf "/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core"
brew tap homebrew/core
Warning: Some taps are not on the default git origin branch and may not receive
updates. If this is a surprise to you, check out the default branch with:
git -C $(brew --repo homebrew/core) checkout
> ・「/usr/local/share/man/man1」に、ファイルを作成する権限が無い
ですね
これ見てください
https://r17n.page/2019/09/24/mac-homebrew-error/
無事インストールできました。
ありがとうございました。
回答1件
あなたの回答
tips
プレビュー