mint18.1安装好以后自带python2.5和python3.5,按照如下流程更新python3时出现报错。
流程:
wget http:
//www.python.org/ftp/python/3.6.6/Python-3.6.6.tgz
tar -xvzf Python
-3.6
.4.tgz
cd Python
-3.6
.4
./configure --with-ssl
make
sudo
make install
在./configure --with-ssl以后出现:
-
checking build system type... x86_64-unknown-linux-gnu
-
checking host system type... x86_64-unknown-linux-gnu
-
checking wether make sets $(MAKE)... yes
-
checking for gcc... gcc
-
checking wether the C compiler works... no
-
configure: error: in ` /usr/local/python-3.5.':
-
configure: error: C compiler cannot create executables
-
See `config.log' for more details
解决方法:
需要安装一个build-essential.
sudo apt-get install build-essential