第一步:先安装freetds及相关库
yum install freetds freetds-devel yum install php-devel yum install gcc yum install re2c
第二步:下载php源码及编译sybase扩展
wget http://cn2.php.net/get/php-5.4.32.tar.bz2/from/this/mirror tar jxvf php-5.4.32.tar.bz2 cd php-5.4.32/ext/sybase_ct/ phpize ./configure --with-sybase-ct=/usr make make install
第三步:载入PHP的sybase扩展
cd /etc/php.d vim sybase_ct.ini extension=sybase_ct.so