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

Failed install on MacOS Mojave #1236

Closed
n8henrie opened this Issue Nov 2, 2018 · 7 comments

Comments

Projects
None yet
6 participants
@n8henrie
Copy link
Contributor

n8henrie commented Nov 2, 2018

I'm failing to install multiple versions on Mojave (tried installing 3.7.1 and 3.6.6, both fail).

I use Homebrew, so my install command is:

PYENV_DEBUG=1 CFLAGS="-I$(brew --prefix openssl)/include" LDFLAGS="-L$(brew --prefix openssl)/lib" pyenv install 3.7.1

Debug output: https://pastebin.com/EHLh6hMR
Logfile: https://pastebin.com/QNG3Q93e

I've been using homebrew / pyenv for a few years now and this has usually worked.

After running into the issue, I followed the instructions for the missing SDK headers from the wiki -- no change.

Prerequisite

  • Make sure your problem is not listed in the common build problems.
  • Make sure no duplicated issue has already been reported in the pyenv issues. You should look for closed issues, too.
  • Make sure you are not asking us to help solving your specific issue.
    • GitHub issues is opened mainly for development purposes. If you want to ask someone to help solving your problem, go to some community site like Gitter, StackOverflow, etc.
  • Make sure your problem is not derived from packaging (e.g. Homebrew).
    • Please refer to the package documentation for the installation issues, etc.
  • Make sure your problem is not derived from plugins.
    • This repository is maintaining pyenv and the default python-build plugin only. Please refrain from reporting issues of other plugins here.

Description

  • Platform information (e.g. Ubuntu Linux 16.04): MacOS 10.4
  • OS architecture (e.g. amd64): amd64
  • pyenv version: 1.2.8
  • Python version: Fails trying to install 3.7.1 and 3.6.6
  • C Compiler information (e.g. gcc 7.3): See below
  • Please attach verbose build log as gist
    • You can turn on verbose debug logging using by setting PYENV_DEBUG=1, e.g. env PYENV_DEBUG=1 pyenv install -v 3.6.4
$ clang --version
Apple LLVM version 10.0.0 (clang-1000.11.45.5)
Target: x86_64-apple-darwin18.0.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
$ gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 10.0.0 (clang-1000.11.45.5)
Target: x86_64-apple-darwin18.0.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
$ clang++ --version
Apple LLVM version 10.0.0 (clang-1000.11.45.5)
Target: x86_64-apple-darwin18.0.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
@n8henrie

This comment has been minimized.

Copy link
Contributor Author

n8henrie commented Nov 3, 2018

Same error with 10.14.1 (and XCode 10.1).

@punjab

This comment has been minimized.

Copy link

punjab commented Nov 4, 2018

Same here on OS X 10.14.1. The issue however seem not to be with pyenv, but with the way new command line tools may have changed in the upgrade. rbenv for ruby is failing to install same way.

@caipre

This comment has been minimized.

Copy link

caipre commented Nov 5, 2018

I was running into this as well, and noticed that my ar was /usr/local/bin/ar rather than the system ar. I ran brew remove binutils and was finally able to run pyenv install 2.7.15 and pyenv install 3.7.1 without problems . I had also upgraded to Xcode 10.1, but I think it was binutils that was giving me trouble. YMMV.

@binbjz

This comment has been minimized.

Copy link

binbjz commented Nov 7, 2018

I was running into this as well, and noticed that my ar was /usr/local/bin/ar rather than the system ar. I ran brew remove binutils and was finally able to run pyenv install 2.7.15 and pyenv install 3.7.1 without problems . I had also upgraded to Xcode 10.1, but I think it was binutils that was giving me trouble. YMMV.

$ brew remove binutils
It solved my problems ! Thank you very much !

@n8henrie

This comment has been minimized.

Copy link
Contributor Author

n8henrie commented Nov 10, 2018

Removing binutils seems to have solved the issue. Thanks @caipre and @binbjz!

@n8henrie n8henrie closed this Nov 10, 2018

@VagelisD

This comment has been minimized.

Copy link

VagelisD commented Dec 9, 2018

I can attest to that running macOS High Sierra (10.13.6) i tried everything with CFLAGS and LDFLAGS
removing binutils was the only solution, thanks again !

@rezhajulio

This comment has been minimized.

Copy link

rezhajulio commented Feb 24, 2019

Wow, amazing! This solved my issue that has been happening for months. Thanks guys!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.