brew update fails with “Permission denied” error
I have been trying to upgrade my brew installation on Mac and it always fails with the following error:
Error: An unexpected error occurred during the `brew link` step
The formula built, but is not symlinked into /usr/local
Permission denied @ dir_s_mkdir - /usr/local/Frameworks
Error: Permission denied @ dir_s_mkdir - /usr/local/Frameworks
I do not want to run brew as sudo, but is there a way to fix this error? I'm not able to install Python3 which is my ultimate goal. Is there another way to install Pythion3 on Mc other than brew? Is there any resolution for this problem here?
EDIT: I tried to remove python3 and tried to re install it again and this time it fails with some other message:
==> Pouring python-3.6.5.high_sierra.bottle.1.tar.gz
Error: An unexpected error occurred during the `brew link` step
The formula built, but is not symlinked into /usr/local
Permission denied @ dir_s_mkdir - /usr/local/Frameworks
Error: Permission denied @ dir_s_mkdir - /usr/local/Frameworks
macos homebrew
|
show 1 more comment
I have been trying to upgrade my brew installation on Mac and it always fails with the following error:
Error: An unexpected error occurred during the `brew link` step
The formula built, but is not symlinked into /usr/local
Permission denied @ dir_s_mkdir - /usr/local/Frameworks
Error: Permission denied @ dir_s_mkdir - /usr/local/Frameworks
I do not want to run brew as sudo, but is there a way to fix this error? I'm not able to install Python3 which is my ultimate goal. Is there another way to install Pythion3 on Mc other than brew? Is there any resolution for this problem here?
EDIT: I tried to remove python3 and tried to re install it again and this time it fails with some other message:
==> Pouring python-3.6.5.high_sierra.bottle.1.tar.gz
Error: An unexpected error occurred during the `brew link` step
The formula built, but is not symlinked into /usr/local
Permission denied @ dir_s_mkdir - /usr/local/Frameworks
Error: Permission denied @ dir_s_mkdir - /usr/local/Frameworks
macos homebrew
ls -l /usr/local/Frameworks
output?
– nadavvadan
May 10 '18 at 7:13
Start here: docs.brew.sh/Troubleshooting
– deceze♦
May 10 '18 at 7:13
ls: /usr/local/Frameworks: No such file or directory
– sparkr
May 10 '18 at 7:38
How is that second message different? And Have. You. Looked. At. docs.brew.sh/Troubleshooting?!
– deceze♦
May 10 '18 at 7:46
1
Please be specific in your question title; "Issue with brew update on Mac" is too vague. I edited it to make it a bit clearer. Also, FYI the [brew] tag has nothing to do with Homebrew.
– bfontaine
May 22 '18 at 16:25
|
show 1 more comment
I have been trying to upgrade my brew installation on Mac and it always fails with the following error:
Error: An unexpected error occurred during the `brew link` step
The formula built, but is not symlinked into /usr/local
Permission denied @ dir_s_mkdir - /usr/local/Frameworks
Error: Permission denied @ dir_s_mkdir - /usr/local/Frameworks
I do not want to run brew as sudo, but is there a way to fix this error? I'm not able to install Python3 which is my ultimate goal. Is there another way to install Pythion3 on Mc other than brew? Is there any resolution for this problem here?
EDIT: I tried to remove python3 and tried to re install it again and this time it fails with some other message:
==> Pouring python-3.6.5.high_sierra.bottle.1.tar.gz
Error: An unexpected error occurred during the `brew link` step
The formula built, but is not symlinked into /usr/local
Permission denied @ dir_s_mkdir - /usr/local/Frameworks
Error: Permission denied @ dir_s_mkdir - /usr/local/Frameworks
macos homebrew
I have been trying to upgrade my brew installation on Mac and it always fails with the following error:
Error: An unexpected error occurred during the `brew link` step
The formula built, but is not symlinked into /usr/local
Permission denied @ dir_s_mkdir - /usr/local/Frameworks
Error: Permission denied @ dir_s_mkdir - /usr/local/Frameworks
I do not want to run brew as sudo, but is there a way to fix this error? I'm not able to install Python3 which is my ultimate goal. Is there another way to install Pythion3 on Mc other than brew? Is there any resolution for this problem here?
EDIT: I tried to remove python3 and tried to re install it again and this time it fails with some other message:
==> Pouring python-3.6.5.high_sierra.bottle.1.tar.gz
Error: An unexpected error occurred during the `brew link` step
The formula built, but is not symlinked into /usr/local
Permission denied @ dir_s_mkdir - /usr/local/Frameworks
Error: Permission denied @ dir_s_mkdir - /usr/local/Frameworks
macos homebrew
macos homebrew
edited May 22 '18 at 16:24
bfontaine
9,36774474
9,36774474
asked May 10 '18 at 7:11
sparkrsparkr
5,2831344115
5,2831344115
ls -l /usr/local/Frameworks
output?
– nadavvadan
May 10 '18 at 7:13
Start here: docs.brew.sh/Troubleshooting
– deceze♦
May 10 '18 at 7:13
ls: /usr/local/Frameworks: No such file or directory
– sparkr
May 10 '18 at 7:38
How is that second message different? And Have. You. Looked. At. docs.brew.sh/Troubleshooting?!
– deceze♦
May 10 '18 at 7:46
1
Please be specific in your question title; "Issue with brew update on Mac" is too vague. I edited it to make it a bit clearer. Also, FYI the [brew] tag has nothing to do with Homebrew.
– bfontaine
May 22 '18 at 16:25
|
show 1 more comment
ls -l /usr/local/Frameworks
output?
– nadavvadan
May 10 '18 at 7:13
Start here: docs.brew.sh/Troubleshooting
– deceze♦
May 10 '18 at 7:13
ls: /usr/local/Frameworks: No such file or directory
– sparkr
May 10 '18 at 7:38
How is that second message different? And Have. You. Looked. At. docs.brew.sh/Troubleshooting?!
– deceze♦
May 10 '18 at 7:46
1
Please be specific in your question title; "Issue with brew update on Mac" is too vague. I edited it to make it a bit clearer. Also, FYI the [brew] tag has nothing to do with Homebrew.
– bfontaine
May 22 '18 at 16:25
ls -l /usr/local/Frameworks
output?– nadavvadan
May 10 '18 at 7:13
ls -l /usr/local/Frameworks
output?– nadavvadan
May 10 '18 at 7:13
Start here: docs.brew.sh/Troubleshooting
– deceze♦
May 10 '18 at 7:13
Start here: docs.brew.sh/Troubleshooting
– deceze♦
May 10 '18 at 7:13
ls: /usr/local/Frameworks: No such file or directory
– sparkr
May 10 '18 at 7:38
ls: /usr/local/Frameworks: No such file or directory
– sparkr
May 10 '18 at 7:38
How is that second message different? And Have. You. Looked. At. docs.brew.sh/Troubleshooting?!
– deceze♦
May 10 '18 at 7:46
How is that second message different? And Have. You. Looked. At. docs.brew.sh/Troubleshooting?!
– deceze♦
May 10 '18 at 7:46
1
1
Please be specific in your question title; "Issue with brew update on Mac" is too vague. I edited it to make it a bit clearer. Also, FYI the [brew] tag has nothing to do with Homebrew.
– bfontaine
May 22 '18 at 16:25
Please be specific in your question title; "Issue with brew update on Mac" is too vague. I edited it to make it a bit clearer. Also, FYI the [brew] tag has nothing to do with Homebrew.
– bfontaine
May 22 '18 at 16:25
|
show 1 more comment
2 Answers
2
active
oldest
votes
Try to change owner of /usr/local
.
if you use macOS High Sierra try this command:
sudo chown -R $(whoami) $(brew --prefix)/*
if you use macOS Sierra or lower:
sudo chown -R $(whoami) /usr/local
add a comment |
In Mac OSX Mojave, installing Python3, I solved this issue by the following:
sudo mkdir /usr/local/Frameworks
sudo chown -R user:group /usr/local/Frameworks/
brew link python
Where user and group are specified as set by the OS. You can find out what user/group values should be by doing:
ls -al /usr/local
And then python3 was successfully installed:
> python3
Python 3.7.2 (default, Feb 12 2019, 08:15:36)
[.Clang 10.0.0 (clang-1000.11.45.5)] on darwin
add a comment |
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f50267510%2fbrew-update-fails-with-permission-denied-error%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
Try to change owner of /usr/local
.
if you use macOS High Sierra try this command:
sudo chown -R $(whoami) $(brew --prefix)/*
if you use macOS Sierra or lower:
sudo chown -R $(whoami) /usr/local
add a comment |
Try to change owner of /usr/local
.
if you use macOS High Sierra try this command:
sudo chown -R $(whoami) $(brew --prefix)/*
if you use macOS Sierra or lower:
sudo chown -R $(whoami) /usr/local
add a comment |
Try to change owner of /usr/local
.
if you use macOS High Sierra try this command:
sudo chown -R $(whoami) $(brew --prefix)/*
if you use macOS Sierra or lower:
sudo chown -R $(whoami) /usr/local
Try to change owner of /usr/local
.
if you use macOS High Sierra try this command:
sudo chown -R $(whoami) $(brew --prefix)/*
if you use macOS Sierra or lower:
sudo chown -R $(whoami) /usr/local
edited Jan 2 at 20:13
Scott Lawrence
3,854104061
3,854104061
answered May 10 '18 at 8:50
Andrew VergunovAndrew Vergunov
601318
601318
add a comment |
add a comment |
In Mac OSX Mojave, installing Python3, I solved this issue by the following:
sudo mkdir /usr/local/Frameworks
sudo chown -R user:group /usr/local/Frameworks/
brew link python
Where user and group are specified as set by the OS. You can find out what user/group values should be by doing:
ls -al /usr/local
And then python3 was successfully installed:
> python3
Python 3.7.2 (default, Feb 12 2019, 08:15:36)
[.Clang 10.0.0 (clang-1000.11.45.5)] on darwin
add a comment |
In Mac OSX Mojave, installing Python3, I solved this issue by the following:
sudo mkdir /usr/local/Frameworks
sudo chown -R user:group /usr/local/Frameworks/
brew link python
Where user and group are specified as set by the OS. You can find out what user/group values should be by doing:
ls -al /usr/local
And then python3 was successfully installed:
> python3
Python 3.7.2 (default, Feb 12 2019, 08:15:36)
[.Clang 10.0.0 (clang-1000.11.45.5)] on darwin
add a comment |
In Mac OSX Mojave, installing Python3, I solved this issue by the following:
sudo mkdir /usr/local/Frameworks
sudo chown -R user:group /usr/local/Frameworks/
brew link python
Where user and group are specified as set by the OS. You can find out what user/group values should be by doing:
ls -al /usr/local
And then python3 was successfully installed:
> python3
Python 3.7.2 (default, Feb 12 2019, 08:15:36)
[.Clang 10.0.0 (clang-1000.11.45.5)] on darwin
In Mac OSX Mojave, installing Python3, I solved this issue by the following:
sudo mkdir /usr/local/Frameworks
sudo chown -R user:group /usr/local/Frameworks/
brew link python
Where user and group are specified as set by the OS. You can find out what user/group values should be by doing:
ls -al /usr/local
And then python3 was successfully installed:
> python3
Python 3.7.2 (default, Feb 12 2019, 08:15:36)
[.Clang 10.0.0 (clang-1000.11.45.5)] on darwin
answered Feb 12 at 20:04


saswanbsaswanb
1,414818
1,414818
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f50267510%2fbrew-update-fails-with-permission-denied-error%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
ls -l /usr/local/Frameworks
output?– nadavvadan
May 10 '18 at 7:13
Start here: docs.brew.sh/Troubleshooting
– deceze♦
May 10 '18 at 7:13
ls: /usr/local/Frameworks: No such file or directory
– sparkr
May 10 '18 at 7:38
How is that second message different? And Have. You. Looked. At. docs.brew.sh/Troubleshooting?!
– deceze♦
May 10 '18 at 7:46
1
Please be specific in your question title; "Issue with brew update on Mac" is too vague. I edited it to make it a bit clearer. Also, FYI the [brew] tag has nothing to do with Homebrew.
– bfontaine
May 22 '18 at 16:25