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!
Install PDO, PDO_SQLITE, PDO_DBLIB, PDO_MYSQL
最新推荐文章于 2021-04-01 20:32:40 发布
本文记录了在Debian3.1r3环境下安装PRADO框架过程中遇到的问题及解决办法,特别是针对PDO_DBLIB安装失败的情况给出了详细的步骤说明。
1496

被折叠的 条评论
为什么被折叠?



