Error Cannot Write To /usr/local/cellar Homebrew
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings error: permission denied - /library/caches/homebrew/formula/ and policies of this site About Us Learn more about Stack
Cannot Write To /usr/local/cellar El Capitan
Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs
Sudo Chown -r $user /usr/local
Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them;
Brew Install Permission Denied
it only takes a minute: Sign up Installing in Homebrew errors up vote 104 down vote favorite 39 Attempting to install rvm and ruby 1.9.2 I already installed homebrew and git, but couldn't get complete updates because I kept getting permission errors. Re-installed Snow Leopard and repaired permissions. Now this happens... $ brew install wget Error: Cannot write to /usr/local/Cellar homebrew permission denied ruby permissions rvm homebrew share|improve this question asked Jan 26 '11 at 11:45 Ibrahim 524253 Did you try sudo? –Jonas Elfström Jan 26 '11 at 12:31 11 Can you accept the answer by Ben, as it obviously is a solution to your issue –Abe Petrillo May 11 '12 at 8:06 stackoverflow.com/questions/4804169/… should be marked as accepted answer - i fear that visitors who do not see that this question has not been answered they will move on –dmo Sep 26 '15 at 19:23 add a comment| 7 Answers 7 active oldest votes up vote 259 down vote sudo chown -R $USER /usr/local You'll have to give yourself ownership of /usr/local/ using that line right there. I had to do this myself after using the ruby one-liner at the top of the official docs to install Homebrew. Worked like a charm for me. It ought to be the only time you'll ever need to sudo with Homebrew. I'm not sure if the ruby one-liner does this. If it did, then something else
Sign in Pricing Blog Support Search GitHub This repository Watch 1,057 Star 29,540 Fork 14,103 Homebrew/legacy-homebrew Code Issues 5 Pull requests 0 Projects 0 Pulse Graphs Error: Cannot write to /usr/local #3930 Closed error: cowardly refusing to 'sudo brew install' x2on opened this Issue Jan 18, 2011 · 14 comments Projects None yet failure while executing: /usr/bin/otool -l /usr/bin/install_name_tool Labels None yet Milestone No milestone Assignees No one assigned 12 participants x2on commented Jan 18, 2011 I /usr/local/bin is not writable. can't install any formula. I get always this error message: brew install wget Error: Cannot write to /usr/local I installed brew with: ruby -e "$(curl -fsSL https://gist.github.com/raw/323731/install_homebrew.rb)" I installed git with brew without problems. But http://stackoverflow.com/questions/4804169/installing-in-homebrew-errors now i can't install any formula with brew install xyz x2on commented Jan 18, 2011 sudo chmod g+w /usr/local sudo chgrp staff /usr/local And it works... Perhaps the install script doesn't this correctly? fannar commented Feb 4, 2011 @x20n: This fixed it for me. I just did brew update and then the permission problem appeared. Something broken in brew. MindTooth commented Mar 30, 2011 Can this be of help?: https://github.com/Homebrew/legacy-homebrew/issues/3930 alias fixbrew='sudo chown -R $USER /usr/local' adamv commented Apr 5, 2011 Did MindTooth's command help? adamv closed this Apr 5, 2011 alexbuijs commented Apr 6, 2011 I had a similar problem and for me MindTooth's command did fix it leshill commented May 6, 2011 Just as an FYI, some OSX installs like 'Instant On' which comes with Airfoil 4.0.2 will reset permissions on /usr/local. adamv commented May 6, 2011 You should write to Airfoil and tell them to stop doing that. … On Fri, May 6, 2011 at 3:57 PM, leshill ***@***.***> wrote: Just as an FYI, some OSX installs like 'Instant On' which comes with Airfoil 4.0.2 will reset permissions on /usr/local. -- Reply to this email directly or view it on GitHub: #3930 (comment) leshill commented May 6, 2011 Have done, wanted it in the thread just in case someone else ran into it. dareiff commented May 8, 2011 I think that's exactly what happened to me, leshill. Thanks! kch commented Jun 19, 2011 shouldn't brew doctor detect this? leshill added a commit to leshill/homebrew that referenced this issue Jun 19, 2011 leshill java development, ruby and node.js is available. ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)" # Add the Homebrews binary path to the front of the $PATH echo 'export PATH=/usr/local/bin:$PATH' >> ~/.bash_profile source ~/.bash_profile Check the installation with permission denied brew doctor. brew doctor When I originally installed homebrew I had errors because I use the mac as multiple users (one for work work, one for other work). ! brew install problem ! Configure brew to allow other users to cannot write to write to Cellar Larson-2:~ larson$ brew install postgresql Error: Cannot write to /usr/local/Cellar Larson-2:~ larson$ sudo brew install postgresql Cowardly refusing to `sudo brew install' Jeromys-MacBook-Pro:~ jeromyevans$ ls -ld /usr/local/Cellar drwxr-xr-x 8 jeromy admin 272 22 Jun 21:13 /usr/local/Cellar sudo chmod -R g+w /usr/local/Cellar Jeromys-MacBook-Pro:~ jeromyevans$ brew install node Error: Permission denied - /Library/Caches/Homebrew/Formula/node.brewing sudo chmod -R g+w /Library/Caches/Homebrew sudo chmod -R g+w /usr/local/ Bring brew up to date. This may be need to be repeated from time to time. brew update And try it out by installing node.js > brew install node 🍺 /usr/local/Cellar/node/0.10.29: 1547 files, 18 Please enable JavaScript to view the comments powered by Disqus. @jeromyevans