错误 1
 
  1. The program package-cleanup is found in the yum-utils package 
  1. # yum clean all 
  2. # rpm --rebuilddb 
  3. # yum update 
 
使用解决方法仍然报错,根据错误信息 检查 /etc/yum.conf 确保 没有这行 exclude=*.i386 *.i586 *.i686
结束
原来使用yum 安装软件时会自动安装上两个版本的,xxx.i386 与 xxx.x86_64 ,由于我使用的基本是64 位操作系统,所以在 /etc/yum.conf 屏蔽安装所有 i386 软件包,造成了这个错误。
 
错误2
  1. login: PAM [dlerror: /lib/security/pam_limits.so: cannot open shared object 
  2. file: No such file or directory] 
解决方法
  1. vim /etc/pam.d/login 
  2. 修改 
  3.  
  4. "session    required     /lib/security/pam_limits.so" 
  5.  
  6. 为 
  7. "session    required     /lib64/security/pam_limits.so" 
  8.  
  9. 重启 
 错误3
  1. /usr/local/php/bin/phpize  
  2. Cannot find config.m4.  
  3. Make sure that you run '/usr/local/php/bin/phpize' in the top level source directory of the module 
解决方法
  1. # ls 
  2. config0.m4  CREDITS    openssl.dsp  php_openssl.h  tests 
  3. config.w32  openssl.c  openssl.mak  README         xp_ssl.c 
  4. ln -s config0.m4 config.m4 
  5. # ls 
  6. config0.m4  config.w32  openssl.c    openssl.mak    README  xp_ssl.c 
  7. config.m4   CREDITS     openssl.dsp  php_openssl.h  tests 
  8.  
  9. /usr/local/php/bin/phpize  
  10. Configuring for: 
  11. PHP Api Version:         20041225 
  12. Zend Module Api No:      20060613 
  13. Zend Extension Api No:   220060519 
 
本文出自 “dongnan” 博客,转载请与作者联系!