Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Ran "brew update" on OS X 10.8.3 and recieved error. #19140

Closed
lukevers opened this issue Apr 11, 2013 · 13 comments
Closed

Ran "brew update" on OS X 10.8.3 and recieved error. #19140

lukevers opened this issue Apr 11, 2013 · 13 comments

Comments

@lukevers
Copy link

No brew commands currently work for me.

I ran brew update and recieved this error:

warning: unable to unlink Library/ENV/pkgconfig/leopard/libcrypto.pc: Permission denied
warning: unable to unlink Library/ENV/pkgconfig/leopard/libcurl.pc: Permission denied
warning: unable to unlink Library/ENV/pkgconfig/mountain_lion/libcurl.pc: Permission denied
warning: unable to unlink Library/ENV/pkgconfig/mountain_lion/libexslt.pc: Permission denied
warning: unable to unlink Library/ENV/pkgconfig/mountain_lion/libxml-2.0.pc: Permission denied
warning: unable to unlink Library/ENV/pkgconfig/mountain_lion/libxslt.pc: Permission denied
error: unable to create symlink Library/ENV/pkgconfig/10.4 (Permission denied)
fatal: cannot create directory at 'Library/ENV/pkgconfig/10.5': Permission denied
Error: Failure while executing: git pull -q origin refs/heads/master:refs/remotes/origin/master

Now whenever I even try to run brew or any other type of command related, I get this:

/usr/local/Library/Homebrew/global.rb:6:in `require': no such file to load -- extend/object (LoadError)
    from /usr/local/Library/Homebrew/global.rb:6
    from /usr/local/Library/brew.rb:18:in `require'
    from /usr/local/Library/brew.rb:18
@mistydemeo
Copy link
Member

Try this:

sudo chown -R $USER:admin /usr/local
cd /usr/local
git reset --hard origin/master
brew update

@lukevers
Copy link
Author

Thanks, @mistydemeo! After that there was still a problem with a directory that was in /usr/local that shouldn't have been there, but I dealt with those problems and now I'm getting a nice, non-error message.

@nhoizey
Copy link

nhoizey commented May 21, 2013

Had the same issue, @mistydemeo 's commands fixed it. Thanks!

@Jun-Dai
Copy link

Jun-Dai commented Jun 27, 2013

+1. This fixed it for me.

@takaruz
Copy link

takaruz commented Jul 2, 2013

thx u. this fixed it for me.

@jkosturko
Copy link

This fixed my issue also.

Thanks!

@orban
Copy link

orban commented Sep 13, 2013

Fixed my issue as well.

Many thanks!

@crilam
Copy link

crilam commented Sep 24, 2013

Fixed my issue on mac os 10.7 also

@tombevers
Copy link

This fixed my issue as well.

Thanks!

@BenJam
Copy link

BenJam commented Jan 8, 2014

+1

@MikeMcQuaid
Copy link
Member

@BenJam Don't +1 unless you want a slap ;)

@BenJam
Copy link

BenJam commented Jan 8, 2014

haha :)

@vciancio
Copy link

vciancio commented Jul 4, 2014

Thanks! fixed my problem

@Homebrew Homebrew locked and limited conversation to collaborators Jul 4, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests