centOS升级python2至python3过程中遇到configure: error: no acceptable C compiler found in $PATH
2017-11-02 19:39
906 查看
今天安装了一个centos 6.9 ,查看默认python版本是2.6,所以准备升级,按着以前在ubuntu上的升级步骤:
(1) wget http://www.python.org/ftp/python/3.3.0/Python-3.3.0.tgz
(2) tar -xzvf Python-3.3.0.tgz
(3) mkdir /usr/local/python
(4) ./configure --prefix=/usr/local/python3
在第四步出现了一个提示:
(5) yum -y install gcc
顺利下载安装成功,重复操作第四步命令: ./configure --prefix=/usr/local/python3 顺利配置成功
(6) make
make install
(7) mv /usr/bin/python /usr/bin/python_old2
(8) ln -s /usr/local/python3/bin/python3/usr/bin/python
(1) wget http://www.python.org/ftp/python/3.3.0/Python-3.3.0.tgz
(2) tar -xzvf Python-3.3.0.tgz
(3) mkdir /usr/local/python
(4) ./configure --prefix=/usr/local/python3
在第四步出现了一个提示:
提示:configure: error: no acceptable C compiler found in $PATH
原来是缺少C编译器,需要安装GCC套件,于是采用如下命令安装,(5) yum -y install gcc
顺利下载安装成功,重复操作第四步命令: ./configure --prefix=/usr/local/python3 顺利配置成功
(6) make
make install
(7) mv /usr/bin/python /usr/bin/python_old2
(8) ln -s /usr/local/python3/bin/python3/usr/bin/python
相关文章推荐
- Centos5.8(64位)装Python2.7.5执行./configure时报错,configure: error: no acceptable C compiler found in $PATH
- CentOS上安装软件错误提示:configure: error: no acceptable C compiler found in $PATH
- Python3.6安装报错 configure: error: no acceptable C compiler found in $PATH
- CentOS上安装软件错误提示:configure: error: no acceptable C compiler found in $PATH
- CentOS上安装软件错误提示:configure: error: no acceptable C compiler found in $PATH
- configure: error: no acceptable C compiler found in $PATH
- configure 包,出现error: no acceptable C compiler found in $PATH 问题
- 报错:configure: error: no acceptable C compiler found in $PATH
- configure: error: no acceptable C compiler found in $PATH 问题解决
- configure: error : no acceptable C compiler found in $PATH
- configure: error: no acceptable C compiler found in $PATH解决
- configure: error: no acceptable C compiler found in $PATH
- configure: error: no acceptable C compiler found in $PATH
- configure: error: no acceptable C compiler found in $PATH
- configure: error: no acceptable C compiler found in $PATH
- configure: error: no acceptable C compiler found in $PATH
- configure: error: no acceptable C compiler found in $PATH See `config.log' for more details 问题解决
- CentOS5.8上安装PHP软件提示“configure:error:no acceptable cc found in $path”
- configure: error: no acceptable C compiler found in $PATH
- configure: error: no acceptable C compiler found in $PATH 问题解决