Skip to content

Instantly share code, notes, and snippets.

@tosik
Created October 27, 2018 07:51
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tosik/061d3155112332d3c83ef7f7014f2ddd to your computer and use it in GitHub Desktop.
Save tosik/061d3155112332d3c83ef7f7014f2ddd to your computer and use it in GitHub Desktop.
pyenv install cannot work

problems

pyenv install 3.7.1
python-build: use openssl from homebrew
python-build: use readline from homebrew
Downloading Python-3.7.1.tar.xz...
-> https://www.python.org/ftp/python/3.7.1/Python-3.7.1.tar.xz
Installing Python-3.7.1...
python-build: use readline from homebrew

BUILD FAILED (OS X 10.14 using python-build 1.2.7-11-g835707da)

Inspect or clean up the working tree at /var/folders/p0/_5lf8w5d0sd92mnyq2zj20dm0000gn/T/python-build.20181027164510.63194
Results logged to /var/folders/p0/_5lf8w5d0sd92mnyq2zj20dm0000gn/T/python-build.20181027164510.63194.log

Last 10 log lines:
checking for --with-icc... no
checking for gcc... clang
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... configure: error: in `/var/folders/p0/_5lf8w5d0sd92mnyq2zj20dm0000gn/T/python-build.20181027164510.63194/Python-3.7.1':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details
make: *** No targets specified and no makefile found.  Stop.

references

frida/frida#338

resolution command

cd /Library/Developer/CommandLineTools/Packages/
open macOS_SDK_headers_for_macOS_10.14.pkg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment