no acceptable C compiler found in $PATH
来源:互联网 发布:乐股软件官网 编辑:程序博客网 时间:2024/05/01 05:02
在CENTOS5上下载mysql-3.23.58.tar.gz
#tar -zxvf mysql-3.23.58.tar.gz
#cd mysql-3.23.58
#./configure (于检查系统是否有编译时所需的库,以及库的版本是否满足编译的需要等安装所需要的系统信息。为随后的编译工作做准备。)
提示错误如下:(没有GCC编译器环境)
checking
checking
checking
checking
checking
checking
checking
configure:
百度一下,有个解说如下:
------------------------------------------
经过查阅资料,发现是因为没有安装GCC组件的原因;
我试着通过System
libf2c-3.3.2-1.i386.rpm
libstdc++-devel-3.3.2-1.i386.rpm
glibc-kernheaders-2.4-8.36.i386.rpm
glibc-headers-2.3.2-101.i386.rpm
glibc-devel-2.3.2-101.i386.rpm
gcc-objc-3.3.2-1.i386.rpm
binutils-2.14.90.0.6-3.i386.rpm
gcc-3.3.2-1.i386.rpm
gcc-c++-3.3.2-1.i386.rpm
automake14-1.4p6-7.noarch.rpm
安装比较简单:
#rpm
------------------------------------------
自己的解决办法:
# yum -y install gcc
base
updates
addons
extras
Installed: gcc.i386 0:4.1.2-42.el5
Dependency Installed: cpp.i386 0:4.1.2-42.el5 glibc-devel.i386 0:2.5-24.el5_2.2 glibc-headers.i386 0:2.5-24.el5_2.2 kernel-headers.i386 0:2.6.18-92.1.22.el5 libgomp.i386 0:4.1.2-42.el5
Updated: glibc.i686 0:2.5-24.el5_2.2 glibc-common.i386 0:2.5-24.el5_2.2
Complete!
---------------------------------------------------
安装完GCC以后再重新编译
#./configure
提示如下:
----------------
configure: error: This is a linux system and Linuxthreads was not
found. On linux Linuxthreads should be used.
(or a new glibc) and try again.
Reference Manual for more information.
----------------
再百度,找到一个解决办法如下:
-------------------------
将线程源码放到MySql源码目录的根目录下以mit-pthreads命名的目录。官方没有自己去下一个也是一样的,只要解压后放到上述位置就可了。 pthread-20020327.tar.gz
于是去下了一个pthread源码包(下面有下载),解压放到相应位置。
再#./configure
就顺利通过了。
--------------------------
(我的目录是#./configure
可惜执行到最后又提示 如下错误:
checking for termcap functions library... configure: error: No curses/termcap library found
再再百度一下 如下:
------------------------------------------------------
需要安装ncurses-5.2.tar.gz,安装好之后把安装路径设置到PATH中。
- no acceptable C compiler found in $PATH
- no acceptable C compiler found in $PATH
- no acceptable C compiler found in $PATH
- no acceptable C compiler found in $PATH
- no acceptable C compiler found in $PATH
- no acceptable C compiler found in $PATH
- no acceptable C compiler found in $PATH
- CentOS5 no acceptable C compiler found in $PATH
- configure: error: no acceptable C compiler found in $PATH
- error: no acceptable C compiler found in $PATH
- Linux no acceptable C compiler found in $PATH错误
- 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
- aconfigure: error: no acceptable C compiler found in $PATH
- MICROKERNEL-BASED OPERATING SYSTEMS
- LNMP-Linux下Nginx+MySQL+PHP+phpMyAdmin+eAcelerator一键安装包
- 整合apache和tomcat构建Web服务器
- 第三方网络广告平台窘境
- 移植SlidingMenu Android library,和安装example出现的问题解决
- no acceptable C compiler found in $PATH
- C#正则表达式小结
- 同步/异步与阻塞/非阻塞的区别
- 解决编译Apache出现的问题:configure: error: APR not found . Please read the documentation
- 腾讯马拉松 第五场 第一题
- redis多个节点的数据迁移(利用主从复制)
- linux系统特殊权限和特殊属性,增、删、改、查
- apache资源网址
- centos资源网址