Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
486 views
in Technique[技术] by (71.8m points)

CENTOS7下编译安装PHP5.3时候遇到错误

CENTOS7.2 编译安装 PHP 5.3.28

配置命令如下:

./configure --prefix=/usr/local/php5 --with-config-file-path=/usr/local/php5/etc --with-config-file-scan-dir=/usr/local/php5/etc/php.d --with-bz2 --with-openssl --with-zlib --with-mhash --with-pcre --enable-exif --enable-sockets --enable-mbstring --enable-xml --enable-fpm --enable-soap --with-gd --with-curl --with-mcrypt --with-unixODBC --with-imap --with-imap-ssl --with-jpeg-dir --with-png-dir --with-zlib-dir --with-freetype-dir --enable-gd-native-ttf --enable-gd-jis-conv --with-mysql=mysqlnd --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --enable-dom --with-kerberos --disable-debug

运行后显示错误:

checking whether to enable embedded MySQLi support... no

checking for Oracle Database OCI8 support... no

checking for unixODBC support... configure: error: ODBC header file '/usr/local/include/sqlext.h' not found!

clipboard.png

我没有经验,搞不明白这是哪的问题,该怎么更正?多谢!

--更新--------------------

clipboard.png


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

安装unixODBC了吗?没有的话需要安装一下


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...