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!
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值