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 installing Conan which depends on python@2 #828

Closed acgetchell closed 6 years ago

acgetchell commented 6 years ago

Please fill out the issue checklist below and provide all the requested information.

To help us debug your issue please explain:

Using LInuxbrew to install Conan, which requires python.

==> Installing conan dependency: python@2 ==> Downloading https://www.python.org/ftp/python/2.7.15/Python-2.7.15.tar.xz Error: undefined method `sdk_path_if_needed' for OS::Mac:Module

https://travis-ci.org/acgetchell/CDT-plusplus/jobs/420677681#L991

My Travis-CI setup to get Linuxbrew to run is here:

https://github.com/acgetchell/CDT-plusplus/blob/feature/conan/.travis.yml

Note that on the osx images, Conan installs fine.

sjackman commented 6 years ago

Thanks for the bug report, Adam. Duplicate of https://github.com/Linuxbrew/brew/issues/828 Fixed by PR https://github.com/Linuxbrew/homebrew-core/pull/9073

tekpriest commented 6 years ago

I just experienced this issue while trying to install php7.2 brew install php@7.2 The results ./buildconf --force Error: An exception occurred within a child process: NoMethodError: undefined methodsdk_path_if_needed' for OS::Mac:Module `

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

The formula php@7.2 is not found in Linuxbrew/core. You'll need to contact the tap maintainer and ask them whether they'll consider supporting Linux.