首页 > Operation System > fc3下安装php5.2.5+pdo_mysql

fc3下安装php5.2.5+pdo_mysql

2008年5月16日 哈哈 发表评论 阅读评论

也算是需求推动
产品那边需要在一台fc3(fedora core 3)的机器上装上php5
并且要启用pdo_mysql支持
偶,额滴神呀
幸好以前在别的机器上手工编过php5.x(具体版本5.2.5)
赶紧从那台机器上把php5.2.5拷过来
并把原来的./configure连同编译参数都调出来
再加上个–with-pdo-mysql重新configure一下
再make
make的时候出错了
不知道原因在哪儿
后来在网上搜了下
找了种折衷的办法
说是先编好php5
然后再把pdo_mysql的支持编进去

cd php5.2.5/ext/pdo_mysql
phpize
./configure
make
make install

这样居然成功了
再接着改php.ini
把编出来的pdo_mysql.so正确load进来
这样居然成功了!!

原创文章,转载请注明: 转载自嘻嘻哈哈的部落格(blog)

本文链接地址: fc3下安装php5.2.5+pdo_mysql

  1. daniu
    2008年12月8日11:28 | #1

    phpize不是什么折中的啊。
    经常用的方法。

  1. 本文目前尚无任何 trackbacks 和 pingbacks.

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word