Linuxbrew / brew

:beer::penguin: The Homebrew package manager for Linux
https://linuxbrew.sh
BSD 2-Clause "Simplified" License
2.66k stars 237 forks source link

Error: undefined method `sdk_path_if_needed' for OS::Mac:Module #827

Closed kennethdave closed 6 years ago

kennethdave commented 6 years ago
During installation got an issue below, please advise. Thanks.
==> Installing dependencies for node: python@2, icu4c
==> Installing node dependency: python@2
==> Downloading https://www.python.org/ftp/python/2.7.15/Python-2.7.15.tar.xz
Already downloaded: /home/ec2-user/.cache/Homebrew/python@2-2.7.15.tar.xz
==> Verifying python@2-2.7.15.tar.xz checksum
tar xf /home/ec2-user/.cache/Homebrew/python@2-2.7.15.tar.xz -C /tmp/d20180826-3521-rvhobn
Error: undefined method `sdk_path_if_needed' for OS::Mac:Module
Please report this bug:
  https://github.com/Linuxbrew/brew/wiki/troubleshooting
/home/ec2-user/.linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/python@2.rb:117:in `install'
/home/ec2-user/.linuxbrew/Homebrew/Library/Homebrew/build.rb:153:in `block (2 levels) in install'
/home/ec2-user/.linuxbrew/Homebrew/Library/Homebrew/formula.rb:1117:in `block in brew'
/home/ec2-user/.linuxbrew/Homebrew/Library/Homebrew/formula.rb:2037:in `block (2 levels) in stage'
/home/ec2-user/.linuxbrew/Homebrew/Library/Homebrew/utils.rb:564:in `with_env'
/home/ec2-user/.linuxbrew/Homebrew/Library/Homebrew/formula.rb:2036:in `block in stage'
/home/ec2-user/.linuxbrew/Homebrew/Library/Homebrew/resource.rb:120:in `block in unpack'
/home/ec2-user/.linuxbrew/Homebrew/Library/Homebrew/resource.rb:189:in `block in mktemp'
/home/ec2-user/.linuxbrew/Homebrew/Library/Homebrew/mktemp.rb:55:in `block in run'
/home/ec2-user/.linuxbrew/Homebrew/Library/Homebrew/mktemp.rb:55:in `chdir'
/home/ec2-user/.linuxbrew/Homebrew/Library/Homebrew/mktemp.rb:55:in `run'
/home/ec2-user/.linuxbrew/Homebrew/Library/Homebrew/resource.rb:188:in `mktemp'
/home/ec2-user/.linuxbrew/Homebrew/Library/Homebrew/resource.rb:115:in `unpack'
/home/ec2-user/.linuxbrew/Homebrew/Library/Homebrew/resource.rb:93:in `stage'
/home/ec2-user/.linuxbrew/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/2.3.0/forwardable.rb:202:in `stage'
/home/ec2-user/.linuxbrew/Homebrew/Library/Homebrew/formula.rb:2014:in `stage'
/home/ec2-user/.linuxbrew/Homebrew/Library/Homebrew/formula.rb:1112:in `brew'
/home/ec2-user/.linuxbrew/Homebrew/Library/Homebrew/build.rb:124:in `block in install'
/home/ec2-user/.linuxbrew/Homebrew/Library/Homebrew/utils.rb:564:in `with_env'
/home/ec2-user/.linuxbrew/Homebrew/Library/Homebrew/build.rb:121:in `install'
/home/ec2-user/.linuxbrew/Homebrew/Library/Homebrew/build.rb:202:in `<main>'
sjackman commented 6 years ago

Please surround copied-and-pasted logs with triple back ticks. See GitHub Help / Quoting Code.

sjackman commented 6 years ago

Thanks for the bug report, @kennethdave. Fixed by PR https://github.com/Linuxbrew/homebrew-core/pull/9073

kennethdave commented 6 years ago

Thanks for the fixed, @sjackman. :)

sjackman commented 6 years ago

Happy to help!