安装Python2.7出现configure: error: no acceptable C compiler found in $PATH错误
2017-10-23 17:56
387 查看
安装Python2.7出现configure: error: no acceptable C compiler found in $PATH错误
安装步骤:安装依赖
yum groupinstall -y Development tools yum install -y zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel
安装Python2.7
wget https://www.python.org/ftp/python/2.7.11/Python-2.7.11.tgz tar xvf Python-2.7.11.tgz cd Python-2.7.11 ./configure --prefix=/usr/local make && make install && echo OK
错误
由于没有gcc导致的,安装gcc即可解决:
yum install gcc
参考
http://raulkang.blog.51cto.com/210239/573151
相关文章推荐
- MAC 下用 pip 安装时出现 OSError: [Errno 13] Permission denied: '/Library/Python/2.7/site-packages/
- python2.7 安装channels出现Command"python setup.py egg_info" failed with error code 1 in /tmp/pip-build-y
- pip安装出现Command "python setup.py egg_info" failed with error code 1 的解决方案
- centos7 安装mysql--python模块出现EnvironmentError: mysql_config not found和error: command 'gcc' failed with exit status 1
- Linux系统下 安装nginx时出现提示的错误:configure: error: You need a C++ compiler for C++ support.
- 关于安装PostgreSQL出现configure: error: zlib library not found处理
- 安装python2.7(windows),wxpython: import wx:ImportError:DLL load failed:%1不是有效的Win32应用程序
- easy_install 安装python package的时候出现error writing to -: Broken pipe
- 安装pycrypto出现“fatal error: Python.h: No such file or directory”错误
- Ubuntu编译安装Php,配置时出现:Configure: error: XML configuration could not be found
- zabbix3.x安装出现“configure: error: Not found mysqlclient library”的解决办法
- 安装mysql ./configure编译时出现错误:error: No curses/termcap library found解决方法
- 安装第三方库出现 Python version 2.7 required, which was not found in the registry
- 安装mysql,在./configure时出现错误:error: No curses/termcap library found的解决办法
- 关于安装PostgreSQL出现configure: error: zlib library not found处理
- 安装postgreSQL出现configure:error:readline library not found解决方法
- python 第三方 .whl包安装及出现的IOError问题解决办法
- 安装mysql,在./configure时出现错误:error: No curses/termcap library found的解决办法
- ubuntu安装python2.7出现python-minimal is already the newest version....解决方案
- Python2.7 安装mock出现AttributeError: 'module' object has no attribute的解决方法