Board logo

标题: [教程] configure: error: no acceptable C compiler found in $PATH [打印本页]

作者: admin    时间: 2012-9-8 13:17     标题: configure: error: no acceptable C compiler found in $PATH

在 安装一键包或编译软件时,比较经常会有如下的提示
checking for egrep... grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... no
checking for gcc... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
make: *** No targets specified and no makefile found.  Stop.



注意看红色字体文字

意思是,没有安装GCC等编译器,因为Linux里编译软件,都要用到GCC,所以这个是必须的,否则,是无法安装的

这种情况,一般是在安装系统时最小安装或选择安装时没有选择编译环境等原因

那怎么办呢,可以用yum来安装

yum install -y gcc gcc-c++ make autoconf libtool-ltdl-devel


执行完上面这个就可以了


但是,确定上面有执行成功,有些情况是,上面这个也执行不成功的,那样还是仍然会有问题,上面这个执行不成功,一般是DNS的问题
作者: marstefa    时间: 2012-9-9 09:24

  1.   --> Missing Dependency: kernel-headers >= 2.2.1 is needed by package glibc-headers-2.5-81.el5_8.7.x86_64 (updates)
  2. glibc-headers-2.5-81.el5_8.7.x86_64 from updates has depsolving problems
  3.   --> Missing Dependency: kernel-headers is needed by package glibc-headers-2.5-81.el5_8.7.x86_64 (updates)
  4. Error: Missing Dependency: kernel-headers >= 2.2.1 is needed by package glibc-headers-2.5-81.el5_8.7.x86_64 (updates)
  5. Error: Missing Dependency: kernel-headers is needed by package glibc-headers-2.5-81.el5_8.7.x86_64 (updates)
  6. You could try using --skip-broken to work around the problem
  7. You could try running: package-cleanup --problems
  8.                         package-cleanup --dupes
  9.                         rpm -Va --nofiles --nodigest
  10. The program package-cleanup is found in the yum-utils package.
复制代码
执行后提示这样的错误...咋办
作者: admin    时间: 2012-9-9 10:06

http://www.wdlinux.cn/bbs/thread-2287-1-1.html
作者: marstefa    时间: 2012-9-9 11:20

admin 发表于 2012-9-9 10:06



    提示安装pdo_mysql 成功了  ...服务也重启了... php.ini里也自动加入了


  1. zend_extension_ts=/www/wdlinux/Zend/lib/ZendExtensionManager_TS.soextension=pdo_mysql.so
复制代码



但是在phpinfo里依然没有  pdo_mysql  ...这是啥情况...
作者: wapsos    时间: 2012-12-23 23:32

回复 1# admin


    不行饿 error3.png

图片附件: error3.png (2012-12-23 23:32, 26.09 KB) / 下载次数 4691
http://wdlinux.cn/bbs/attachment.php?aid=2262&k=352e5e11ca2ec8a69a2f40746caacfa1&t=1715253587&sid=cB3Jxz






欢迎光临 WDlinux官方论坛 (http://wdlinux.cn/bbs/) Powered by Discuz! 7.2