OSX – Homebrew is producing two warnings

I use Homebrew as the package manager. I ran this command:

brew update

But I received this error:

< blockquote>

error: unable to unlink old’bin/brew’ (Permission denied)

Error: Failed while executing git pull 07000 master

Under sudo Run again:

/usr/local/Library/Homebrew/brew.h.rb:1: warning: already initialized constant FORMULA_META_FILES
/usr/local /Library/Homebrew/brew.h.rb:2: warning: already initialized constant PLEASE_REPORT_BUG
error: The following untracked working tree files would be overwritten by checkout:

.gitignore
;; ; big list goes here ;;;;

Now, every brew command produces these warnings:

/usr /local/Library/Homebrew/brew.h.rb:1: warning: already initialized constant FORMULA_META_FILES
/usr/local/Library/Homebrew/brew.h.rb:2: warning: already initialized constant PLEASE_REPORT_BUG

Any idea what went wrong?

It sounds like half of it was updated before it had an error, now it’s a bad state. You may want to

cd /usr/local && git reset --hard HEAD

This should remove all files controlled by git (e.g. homebrew) reset to the original version. You may need to sudo the git command. After that, you can try to modify the required permissions (this may be as simple as running sudo chown -R yourname: staff/usr/local, if the files in that directory do not need to be owned by others).

I use Homebrew as the package manager. I ran this command:

brew update

But I received this error:

< blockquote>

error: unable to unlink old’bin/brew’ (Permission denied)

Error: Failed while executing git pull 07000 master

Under sudo Run again:

/usr/local/Library/Homebrew/brew.h.rb:1: warning: already initialized constant FORMULA_META_FILES
/usr/local /Library/Homebrew/brew.h.rb:2: warning: already initialized constant PLEASE_REPORT_BUG
error: The following untracked working tree files would be overwritten by checkout:

.gitignore
;; ; big list goes here ;;;;

Now, every brew command produces these warnings:

/usr /local/Library/Homebrew/brew.h.rb:1: warning: already initialized constant FORMULA_META_FILES
/usr/local/Library/Homebrew/brew.h.rb:2: warning: already initialized constant PLEASE_REPORT_BUG

Any idea what went wrong?

It sounds like it had an error before half of it was updated, and now it is in a bad state. You may want to

cd /usr/local && git reset --hard HEAD

This should remove all files controlled by git (e.g. homebrew) reset to the original version. You may need to sudo the git command. After that, you can try to modify the required permissions (this may be as simple as running sudo chown -R yourname: staff/usr/local, if the files in that directory do not need to be owned by others).

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 5185 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.