asdf-community / asdf-python

Python plugin for the asdf version manager
https://github.com/asdf-vm/asdf
MIT License
651 stars 56 forks source link

python 2.7.18 build failing on Ubuntu 20.04 #104

Closed kraktus closed 3 years ago

kraktus commented 3 years ago
$ asdf install python 2.7.18
python-build 2.7.18 /home/ubuntu/.asdf/installs/python/2.7.18
Downloading Python-2.7.18.tar.xz...
-> https://www.python.org/ftp/python/2.7.18/Python-2.7.18.tar.xz
Installing Python-2.7.18...

BUILD FAILED (Ubuntu 20.04 using python-build 2.0.1-6-g5f751985)

Inspect or clean up the working tree at /tmp/python-build.20210621163035.36727
Results logged to /tmp/python-build.20210621163035.36727.log

Last 10 log lines:
checking MACHDEP... linux2
checking EXTRAPLATDIR... 
checking for --without-gcc... no
checking for --with-icc... no
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/tmp/python-build.20210621163035.36727/Python-2.7.18':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details

worked fine with sudo apt install python2

lifeiscontent commented 3 years ago

here's a few deps I needed.

sudo apt-get install build-essential zlib1g-dev

kraktus commented 3 years ago

I didn't install system dependencies beforehand hence the build errors: https://github.com/pyenv/pyenv/wiki#suggested-build-environment