WDlinux官方论坛's Archiver

haoyoyoyo 发表于 2013-1-2 15:18

安装PDO_mysql问题

按照官方的办法,执行./configure --with-php-config=/www/wdlinux/php/bin/php-config --with-pdo-mysql=/www/wdlinux/mysql
时,提示为:


checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... no
checking for gcc... no
configure: error: in `/root/PDO_MYSQL-1.0.2':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.



请问该怎么办?

wulali 发表于 2013-1-2 19:16

[i=s] 本帖最后由 wulali 于 2013-1-2 19:18 编辑 [/i]

貌似缺少gcc,请先安装gcc
centos之类的系统可把下面一行命令复制到SSH里,执行安装:[code]yum install -y gcc gcc-c++ make autoconf libtool-ltdl-devel gd-devel freetype-devel libxml2-devel libjpeg-devel libpng-devel openssl-devel curl-devel patch libmcrypt-devel libmhash-devel ncurses-devel sudo bzip2[/code]

页: [1]

Powered by Discuz! Archiver 7.2  © 2001-2009 Comsenz Inc.