Centos5.8(64位)装Python2.7.5执行./configure时报错,configure: error: no acceptable C compiler found in $PATH
来源:互联网 发布:淘宝虚拟网店怎么开 编辑:程序博客网 时间:2024/05/09 09:05
**********************************************************
Centos5.8(64位)下安装Python-2.7.5
执行./configure时报错:
configure: error: no acceptable C compiler found in $PATH
***********************************************************
(使用sudo yum install gcc-c++时会自动安装/升级gcc及其他依赖的包。)
重新执行
./configure
make
make install
附带说明gcc与g++/gcc-c++的异同:
gcc为GNU Compiler Collection的缩写,可以编译C和C++源代码等,它是GNU开发的C和C++以及其他很多种语言的编译器(最早的时候只能编译C,后来很快进化成一个编译多种语言的集合,如Fortran、Pascal、Objective-C、Java、Ada、 Go等。)
gcc在编译C++源代码的阶段,只能编译C++源文件,而不能自动和C++程序使用的库链接(编译过程分为编译、链接两个阶段,源程序文件被编译成目标文件,多个目标文件连同库被链接成一个最终的可执行文件,可执行文件被加载到内存中运行)。因此,通常使用g++命令来完成C++程序的编译和连接,该程序会自动调用 gcc 实现编译。
g++也能编译C源代码,只不过把会把它当成C++源代码。后缀为.c的源文件,gcc把它当作是C程序,而g++把它当作是c++程序;后缀为.cpp的,两者都会认为是c++程序。注意,虽然c++是c的超集,但是两者对语法的要求是有区别的。
Centos5.8(64位)下安装Python-2.7.5
执行./configure时报错:
configure: error: no acceptable C compiler found in $PATH
***********************************************************
查看得知未安装合适的编译器。
sudo yum install gcc-c++(使用sudo yum install gcc-c++时会自动安装/升级gcc及其他依赖的包。)
重新执行
./configure
make
make install
成功!
附带说明gcc与g++/gcc-c++的异同:
gcc为GNU Compiler Collection的缩写,可以编译C和C++源代码等,它是GNU开发的C和C++以及其他很多种语言的编译器(最早的时候只能编译C,后来很快进化成一个编译多种语言的集合,如Fortran、Pascal、Objective-C、Java、Ada、 Go等。)
gcc在编译C++源代码的阶段,只能编译C++源文件,而不能自动和C++程序使用的库链接(编译过程分为编译、链接两个阶段,源程序文件被编译成目标文件,多个目标文件连同库被链接成一个最终的可执行文件,可执行文件被加载到内存中运行)。因此,通常使用g++命令来完成C++程序的编译和连接,该程序会自动调用 gcc 实现编译。
g++也能编译C源代码,只不过把会把它当成C++源代码。后缀为.c的源文件,gcc把它当作是C程序,而g++把它当作是c++程序;后缀为.cpp的,两者都会认为是c++程序。注意,虽然c++是c的超集,但是两者对语法的要求是有区别的。
- Centos5.8(64位)装Python2.7.5执行./configure时报错,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 问题解决
- Freeswitch在configure时报错no acceptable C compiler found in $PATH
- ./configure时提示错误 configure: error: no acceptable C compiler found in $PATH
- Python3.6安装报错 configure: error: no acceptable C compiler found in $PATH
- 解决:configure:error: no acceptable C compiler found in......
- configure: error: no acceptable C compiler found in $PATH 处理方法
- Redhat 6.3提示:configure: error: no acceptable C compiler found in $PATH
- configure: error: no acceptable C compiler found in $PATH See `config.log' for more details 问题解决
- configure 包,出现error: no acceptable C compiler found in $PATH 问题
- 利用Hierarchy Viewer优化布局 ---》android布局文件优化
- 我的大学
- Revit 2011 二次开发之“高亮显示错误提示”
- 2013.11.1全表扫描 flush"oracle的缓存 SQL递归语句
- Giant山地车引发的思考
- Centos5.8(64位)装Python2.7.5执行./configure时报错,configure: error: no acceptable C compiler found in $PATH
- Ubuntu系统创建开机启动脚本
- WEB用户访问控制方法
- servlet 中实现发送邮件
- 敏捷开发学习笔记(三)——如何进行团队项目会议
- spring 中action头写法不一样,启动出现action冲突
- TCP/UDP/IP分片
- Firebird DDEX Provider
- BlueCatTools 百度收录批量查询工具