Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Pyenv Build Failed, trying to install 3.7.0, cannot compute sizeof (size_t) #1201
macOS 10.13.6 (High Sierra)
I've tried various steps with reinstalling openssl and xcode command line tools, but nothing has helped.
env PYENV_DEBUG=1 pyenv install -v 3.7.0
checking for the platform triplet based on compiler characteristics... darwin
BUILD FAILED (OS X 10.13.6 using python-build 20180424)
Inspect or clean up the working tree at /var/folders/jb/h01vxbqs6z93h_238q61d48h0000gn/T/python-build.20180815083027.58071
Last 10 log lines:
Trying to install using:
generated a bunch of warnings...
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.13.sdk/usr/include/stdio.h:64:
and ending with...
/Library/Developer/CommandLineTools/SDKs/MacOSX10.13.sdk/usr/include/pthread.h:527:6: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
I've described the issue more fully in a Stack Overflow post. According to pyenv-doctor, the OpenSSL headers are missing and I've not found a way to resolve that.
I had the same issue and I'm not sure this happened because I used the migration assistant to transfer to a new mac (some things appeared to break) or because of the new high sierra release, but either way it seems like brew was messing with pyenv.
The solution is here SOHU-Co/kafka-node#881 but basically if you run
These were causing some include directive to blow up. After this