Install PDO, PDO_SQLITE, PDO_DBLIB, PDO_MYSQL
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_DBLIB
At the last step, it report:
pear/PDO_DBLIB requires PHP extension "pdo" (version >= 1.0)
No valid packages found
install failed
Here'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!
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.