安装PDO_DBLIB时FreeTDS目录报错的解决

Standard

报错:
[root@test PDO_DBLIB-1.0]# ./configure –with-php-config=/usr/bin/php-config –with-pdo_dblib=/usr/local/freetds


configure: error: Directory /usr/local/freetds is not a FreeTDS installation directory

解决:
touch /usr/local/freetds/include/tds.h
touch /usr/local/freetds/lib/libtds.a
再 ./configure –with-php-config=/usr/bin/php-config –with-pdo_dblib=/usr/local/freetds 时就ok了

3 thoughts on “安装PDO_DBLIB时FreeTDS目录报错的解决

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.