configure: error: no acceptable C compiler found in $PATH
在 安装一键包或编译软件时,比较经常会有如下的提示[quote]checking for egrep... grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... no
checking for gcc... no
[color=#ff0000]configure: error: no acceptable C compiler found in $PATH[/color]
See `config.log' for more details.
make: *** No targets specified and no makefile found. Stop.[/quote]
注意看红色字体文字
意思是,没有安装GCC等编译器,因为Linux里编译软件,都要用到GCC,所以这个是必须的,否则,是无法安装的
这种情况,一般是在安装系统时最小安装或选择安装时没有选择编译环境等原因
那怎么办呢,可以用yum来安装
[color=#494949][font=Verdana, sans-serif][size=12px]yum install -y gcc gcc-c++ make autoconf libtool-ltdl-devel[/size][/font][/color]
[font=Verdana, sans-serif][color=#494949][size=12px]执行完上面这个就可以了[/size][/color][/font]
[font=Verdana, sans-serif][color=#494949]
[/color][/font]
[font=Verdana, sans-serif][color=#494949][size=12px]但是,确定上面有执行成功,有些情况是,上面这个也执行不成功的,那样还是仍然会有问题,上面这个执行不成功,一般是DNS的问题[/size][/color][/font] [code]
--> Missing Dependency: kernel-headers >= 2.2.1 is needed by package glibc-headers-2.5-81.el5_8.7.x86_64 (updates)
glibc-headers-2.5-81.el5_8.7.x86_64 from updates has depsolving problems
--> Missing Dependency: kernel-headers is needed by package glibc-headers-2.5-81.el5_8.7.x86_64 (updates)
Error: Missing Dependency: kernel-headers >= 2.2.1 is needed by package glibc-headers-2.5-81.el5_8.7.x86_64 (updates)
Error: Missing Dependency: kernel-headers is needed by package glibc-headers-2.5-81.el5_8.7.x86_64 (updates)
You could try using --skip-broken to work around the problem
You could try running: package-cleanup --problems
package-cleanup --dupes
rpm -Va --nofiles --nodigest
The program package-cleanup is found in the yum-utils package.[/code]执行后提示这样的错误...咋办 [url]http://www.wdlinux.cn/bbs/thread-2287-1-1.html[/url] [quote]
[size=2][color=#999999]admin 发表于 2012-9-9 10:06[/color] [url=http://www.wdlinux.cn/bbs/redirect.php?goto=findpost&pid=13166&ptid=3505][img]http://www.wdlinux.cn/bbs/images/common/back.gif[/img][/url][/size][/quote]
提示安装pdo_mysql 成功了 ...服务也重启了... php.ini里也自动加入了
[code]
zend_extension_ts=/www/wdlinux/Zend/lib/ZendExtensionManager_TS.soextension=pdo_mysql.so
[/code]
但是在phpinfo里依然没有 pdo_mysql ...这是啥情况... [b]回复 [url=http://www.wdlinux.cn/bbs/redirect.php?goto=findpost&pid=13128&ptid=3505]1#[/url] [i]admin[/i] [/b]
不行饿 [attach]2262[/attach]
页:
[1]