質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.46%
MacOS(OSX)

MacOSとは、Appleの開発していたGUI(グラフィカルユーザーインターフェース)を採用したオペレーションシステム(OS)です。Macintoshと共に、市場に出てGUIの普及に大きく貢献しました。

Q&A

解決済

1回答

1104閲覧

homebrewでインストールできない

ace99

総合スコア5

MacOS(OSX)

MacOSとは、Appleの開発していたGUI(グラフィカルユーザーインターフェース)を採用したオペレーションシステム(OS)です。Macintoshと共に、市場に出てGUIの普及に大きく貢献しました。

0グッド

0クリップ

投稿2021/06/10 01:09

前提・実現したいこと

ここに質問の内容を詳しく書いてください。
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

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

jbpb0

2021/06/10 04:10

> 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/
ace99

2021/06/10 13:27

返信遅れてすみません 次のように出ました。 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
ace99

2021/06/11 02:05

無事インストールできました。 ありがとうございました。
guest

回答1

0

ベストアンサー

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
で確認して、対処してください

参考
brew updateでエラーになった時にやったこと
Mac の本体新調後に Homebrew でエラーが発生する場合の解決法

投稿2021/06/11 02:45

jbpb0

総合スコア7653

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.46%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問