Install PDO, PDO_SQLITE, PDO_DBLIB, PDO_MYSQL

来源:互联网 发布:阿里云 和自建机房 编辑:程序博客网 时间:2024/04/28 21:15
Recently I'm using PRADO framework for some web application development. It comes to deploy to the server side.The server is running Debian 3.1r3 * apt-get install php5-dev php5-mysql php5-sybase php5-sqlite libmysqlclient-dev freetds-dev * apt-get install make * pecl install PDO * pecl install PDO_SQLITE * pecl install PDO_MYSQL * pecl install PDO_DBLIBAt the last step, it report:pear/PDO_DBLIB requires PHP extension "pdo" (version >= 1.0)No valid packages foundinstall failedHere's the solution: * pecl download PDO_DBLIB * tar zxvf PDO_DBLIB-1.0.tgz * pecl build * After the build finished, it'll try to install to /var/tmp, on my system, the files was gone after the make. so I have to build it again * cd PDO_DBLIB-1.0 * ./configure * make * After the make finished, the module is locate at ./PDO_DBLIB-1.0/modules/pdo_dblib.so, copy it to /usr/lib/php5/20060613+lfs or any location that extension files should be * add extension=pdo_dblib.so * happy coding now!