刚刚在用yum安装php的时候杯具的出现了Segmentation fault,

尝试了一些方法无效:

1. yum clean all 无效
2. rpm -rebuliddb –initdb 无效
3. /var/cache/yum 目录清过,无效
4. 重新安装过yum,无效
5. 删掉/var/run/yum.pid无效
6. 删掉/var/lib/rpm/__db.00* rebuild,无效
7. 加了–skip-broken,–disableplugin参数,无效

所有把php所有依赖的包都找出来用rpm安装了:

php-common-5.1.6-27.el5.x86_64.rpm
gmp-4.1.4-10.el5.x86_64.rpm
php-cli-5.1.6-27.el5.x86_64.rpm
apr-1.2.7-11.el5_3.1.x86_64.rpm
imake-1.0.2-3.x86_64.rpm
autoconf-2.59-12.noarch.rpm
automake-1.9.6-2.3.el5.noarch.rpm
postgresql-libs-8.1.18-2.el5_4.1.x86_64.rpm
apr-util-1.2.7-11.el5.x86_64.rpm
httpd-2.2.3-43.el5.centos.x86_64.rpm
php-5.1.6-27.el5.x86_64.rpm
php-devel-5.1.6-27.el5.x86_64.rpm
perl-DBI-1.52-2.el5.x86_64.rpm
mysql-5.0.77-4.el5_4.2.x86_64.rpm
php-pdo-5.1.6-27.el5.x86_64.rpm
php-mysql-5.1.6-27.el5.x86_64.rpm
php-gd-5.1.6-27.el5.x86_64.rpm
php-ncurses-5.1.6-27.el5.x86_64.rpm
libexif-0.6.13-4.0.2.el5_1.1.x86_64.rpm
libxslt-1.1.17-2.el5_2.2.x86_64.rpm
php-xml-5.1.6-27.el5.x86_64.rpm