Board logo

标题: [求助] 安装PDO_mysql问题 [打印本页]

作者: 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

本帖最后由 wulali 于 2013-1-2 19:18 编辑

貌似缺少gcc,请先安装gcc
centos之类的系统可把下面一行命令复制到SSH里,执行安装:
  1. 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
复制代码





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