Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

<formula unkonwn> undefined method `rebuild' #4204

Closed
1 task
appkr opened this issue Aug 24, 2016 · 6 comments
Closed
1 task

<formula unkonwn> undefined method `rebuild' #4204

appkr opened this issue Aug 24, 2016 · 6 comments

Comments

@appkr
Copy link

appkr commented Aug 24, 2016

If Homebrew was updated on Aug 10-11th 2016 and brew update always says Already up-to-date. you need to run: cd $(brew --repo); git fetch; git reset --hard origin/master; brew update.

Please follow the general troubleshooting steps first:

  • [v] Ran brew update and retried your prior step?
  • [v ] Ran brew doctor, fixed as many issues as possible and retried your prior step?
  • If you're seeing permission errors tried running sudo chown -R $(whoami) $(brew --prefix)?

You can erase any parts of this template not applicable to your Issue.

Bug reports:

I got this message when I ran brew doctor

Error: undefined method `rebuild' for #<BottleSpecification:0x007fd359befe90>
Please report this bug:
    https://git.io/brew-troubleshooting
/usr/local/Library/Taps/homebrew/homebrew-php/Formula/php56.rb:16:in `block in <class:Php56>'
/usr/local/Library/Homebrew/software_spec.rb:91:in `instance_eval'
/usr/local/Library/Homebrew/software_spec.rb:91:in `bottle'
/usr/local/Library/Homebrew/formula.rb:1737:in `bottle'
/usr/local/Library/Taps/homebrew/homebrew-php/Formula/php56.rb:15:in `<class:Php56>'
/usr/local/Library/Taps/homebrew/homebrew-php/Formula/php56.rb:3:in `load_formula'
/usr/local/Library/Homebrew/formulary.rb:25:in `module_eval'
/usr/local/Library/Homebrew/formulary.rb:25:in `load_formula'
/usr/local/Library/Homebrew/formulary.rb:42:in `load_formula_from_path'
/usr/local/Library/Homebrew/formulary.rb:91:in `load_file'
/usr/local/Library/Homebrew/formulary.rb:82:in `klass'
/usr/local/Library/Homebrew/formulary.rb:78:in `get_formula'
/usr/local/Library/Homebrew/formulary.rb:215:in `factory'
/usr/local/Library/Homebrew/formula.rb:1187:in `[]'
/usr/local/Library/Taps/homebrew/homebrew-php/Requirements/php-meta-requirement.rb:14:in `<class:PhpMetaRequirement>'
/usr/local/Library/Taps/homebrew/homebrew-php/Requirements/php-meta-requirement.rb:3:in `<top (required)>'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/usr/local/Library/Taps/homebrew/homebrew-php/Abstract/abstract-php-phar.rb:2:in `<top (required)>'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/usr/local/Library/Taps/homebrew/homebrew-php/Formula/composer.rb:1:in `load_formula'
/usr/local/Library/Homebrew/formulary.rb:25:in `module_eval'
/usr/local/Library/Homebrew/formulary.rb:25:in `load_formula'
/usr/local/Library/Homebrew/formulary.rb:42:in `load_formula_from_path'
/usr/local/Library/Homebrew/formulary.rb:91:in `load_file'
/usr/local/Library/Homebrew/formulary.rb:82:in `klass'
/usr/local/Library/Homebrew/formulary.rb:78:in `get_formula'
/usr/local/Library/Homebrew/formulary.rb:175:in `get_formula'
/usr/local/Library/Homebrew/formulary.rb:215:in `factory'
/usr/local/Library/Homebrew/formulary.rb:234:in `from_rack'
/usr/local/Library/Homebrew/formula.rb:1138:in `block in installed'
/usr/local/Library/Homebrew/formula.rb:1136:in `map'
/usr/local/Library/Homebrew/formula.rb:1136:in `installed'
/usr/local/Library/Homebrew/diagnostic.rb:899:in `check_missing_deps'
/usr/local/Library/Homebrew/cmd/doctor.rb:42:in `block in doctor'
/usr/local/Library/Homebrew/cmd/doctor.rb:35:in `each'
/usr/local/Library/Homebrew/cmd/doctor.rb:35:in `doctor'
/usr/local/Library/brew.rb:87:in `<main>'

Formula Requests:

Please note by far the quickest way to get a new formula into Homebrew is to file a Pull Request.

We will consider your request but it may be closed if it's something we're not actively planning to work on.

@MikeMcQuaid
Copy link
Member

Sorry but you have not followed the requested steps on the Troubleshooting page

Please follow (all of) these steps and post the information here so we can help you with your problem.

Thanks!

@appkr
Copy link
Author

appkr commented Aug 24, 2016

Sorry for interrupting you. I manage to fix the problem, but I don't remember what I did. Anyway thanks.

@appkr appkr closed this as completed Aug 24, 2016
@heisjoe
Copy link

heisjoe commented Aug 31, 2016

I did the following code to resolve the problem

cd $(brew --prefix)
rm Library/Formula/argp-standalone.rb
rm Library/Formula/cocot.rb

And then do the

git fetch origin
git reset --hard origin/master
brew update

i dont know why but it done

@CyberPunkCodes
Copy link

Followed the OP's instructions:

cd $(brew --repo); git fetch; git reset --hard origin/master; brew update

Worked like a charm :) This should be on the main README as a failsafe to force brew to update so we can get back in action.

@retokromer
Copy link
Contributor

Actually it is! https://github.com/Homebrew/brew

@CyberPunkCodes
Copy link

oh wow. maybe i was on another page or just scrolled right past it not expecting it to be the very first thing..

@Homebrew Homebrew locked and limited conversation to collaborators May 4, 2018
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

5 participants