linux下如何安装PHP5.03+PDO-1.0RC1?

tovy 2005-10-19 09:46:02
我已经安装好php5.03+mysql4.1+apache2了,
现在就是不知道怎样把pdo装上,请高手帮忙啊!
...全文
277 13 打赏 收藏 转发到动态 举报
写回复
用AI写文章
13 条回复
切换为时间正序
请发表友善的回复…
发表回复
szhnet 2005-10-21
  • 打赏
  • 举报
回复
朋友,请关注一下此帖:
http://community.csdn.net/Expert/topic/4338/4338855.xml?temp=.8305628
tovy 2005-10-19
  • 打赏
  • 举报
回复
如果用源代码编译安装,怎样安装呢?
tovy 2005-10-19
  • 打赏
  • 举报
回复

[root@tovy PDO]# phpize
-bash: phpize: command not found
[root@tovy PDO]#
怎么办,请高手帮下忙,

还有如果我改用php5.1.x但没有rpm包,
如果用源代码编译安装呢?
xuzuning 2005-10-19
  • 打赏
  • 举报
回复
安装
Windows

Follow the same steps to install and enable the PDO drivers of your choice.

Windows users can download the extension DLL php_pdo.dll as part of the PECL collection binaries from http://www.php.net/downloads.php or a more recent version from a PHP 5 PECL Snapshot.

To enable the PDO extension on Windows operating systems, you must add the following line to php.ini: extension=php_pdo.dll



Next, choose the other DB specific DLL files and either use dl() to load them at runtime, or enable them in php.ini below pdo_pdo.dll. For example: extension=php_pdo.dll
extension=php_pdo_firebird.dll
extension=php_pdo_mssql.dll
extension=php_pdo_mysql.dll
extension=php_pdo_oci.dll
extension=php_pdo_oci8.dll
extension=php_pdo_odbc.dll
extension=php_pdo_pgsql.dll
extension=php_pdo_sqlite.dll



These DLL's should exist in the systems extension_dir.

Linux and UNIX

Due to a bug in the pear installer you should install the PDO package manually using the following steps:

Follow the same steps to install and enable the PDO drivers of your choice.

Download the PDO package to your local machine: bash$ wget http://pecl.php.net/get/PDO



Determine your PHP bin directory. If your PHP 5 CLI binary lives at /usr/local/php5/bin/php then the bin dir is /usr/local/php5/bin.

Set your path so that your PHP bin directory is at the front: export PATH="/usr/local/php5/bin:$PATH"



Manually build and install the PDO extension: bash$ tar xzf PDO-0.2.tgz
bash$ cd PDO-0.2
bash$ phpize
bash$ ./configure
bash$ make
bash$ sudo -s
bash# make install
bash# echo extension=pdo.so >> /usr/local/php5/lib/php.ini



使用pdo最好是用php5.1.x
iasky 2005-10-19
  • 打赏
  • 举报
回复
mark

pdo还没有搞过
tovy 2005-10-19
  • 打赏
  • 举报
回复
是的,就是用rpm装的,
ashchen 2005-10-19
  • 打赏
  • 举报
回复
不知道configure你是怎么装好的?不会是rpm吧?
tovy 2005-10-19
  • 打赏
  • 举报
回复
configure --help|grep pdo
是的怎么搞啊,

[root@test error]# configure --help|grep pdo
-bash: configure: command not found
[root@test error]#

我linux不熟,最近才搞的,
帮我再看看呢,
ashchen 2005-10-19
  • 打赏
  • 举报
回复
pdo是一个扩展吧?
configure --help|grep pdo
看看,应该有的
tovy 2005-10-19
  • 打赏
  • 举报
回复
呵呵,
ashchen能给我讲一下为什么不建议用呢?
网上说可以比adodb的速度提高三倍,
而且我也主要是想边学边练,~~
关键能不能告诉我该怎么在linux下安装啊,谢谢你啦!
ashchen 2005-10-19
  • 打赏
  • 举报
回复
分我不要

正式生产不建议上PDO,测试可以
tovy 2005-10-19
  • 打赏
  • 举报
回复
是在linux环境下面,解决后立即给分,谢谢大家了,
uuq 2005-10-19
  • 打赏
  • 举报
回复
刚装好as 4晚上练练
pdo是一个模块,是直接编译这个模块?

21,887

社区成员

发帖
与我相关
我的任务
社区描述
从PHP安装配置,PHP入门,PHP基础到PHP应用
社区管理员
  • 基础编程社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧