Installing php-5.2.5 on RedHatLinux requires upgrading the libxml2 library that comes with Linux, but libxml2 has a lot of dependencies (dependencies), and below is my upgrade method. The official version of libxml2 is
Installing php-5.2.5 on RedHat Linux requires upgrading the libxml2 library that comes with Linux, but libxml2 has a lot of dependencies (dependencies), and below is my upgrade method.
Libxml2 official is ftp://xmlsoft.org/libxml2/
First remove the libxml2-python-2.5.4-1, my libxml2-python-2.5.4-1
Based on the actual version of your system
[Root @ WebServer root] # rpm-e libxml2-python-2.5.4-1
Error: Failed dependencies:
Libxml2-python is needed by (installed) redhat-config-packages-1.1.8-1
If a dependency is found, it is queried.
[Root @ WebServer root] # rpm-qa | grep redhat-config-packages
Redhat-config-packages-1.1.8-1
Remove
[Root @ WebServer root] # rpm-e redhat-config-packages-1.1.8-1
Then remove the libxml2-python-2.5.4-1 again
[Root @ WebServer root] # rpm-e libxml2-python-2.5.4-1
Removed successfully. check and confirm.
[Root @ WebServer root] # rpm-qa | grep libxml2
Libxml2-2.5.4-1
Libxml2-devel-2.5.4-1
Remove libxml2-devel-2.5.4-1
[Root @ WebServer root] # rpm-e libxml2-devel-2.5.4-1
Remove libxml2-2.5.4-1
[Root @ WebServer root] # rpm-e libxml2-2.5.4-1
Error: Failed dependencies:
Libxml2.so. 2 is needed by (installed) libxslt-1.0.27-3
Libxml2.so. 2 is needed by (installed) alchemist-1.0.26-1
Libxml2.so. 2 is needed by (installed) foomatic-2.0.2-15
Libxml2.so. 2 is needed by (installed) bonobo-activation-2.2.0-4
Libxml2.so. 2 is needed by (installed) GConf2-2.2.0-1
Libxml2.so. 2 is needed by (installed) gnome-vfs2-2.2.2-4
Libxml2.so. 2 is needed by (installed) libglade2-2.0.1-3
Libxml2.so. 2 is needed by (installed) libgnome-2.2.0.1-8
Libxml2.so. 2 is needed by (installed) libgnomecanvas-2.2.0.1-1
Libxml2.so. 2 is needed by (installed) gtkhtml2-2.2.0-5
Libxml2.so. 2 is needed by (installed) gnome-python2-gtkhtml2-1.99.14-5
Libxml2.so. 2 is needed by (installed) libbonoboui-2.2.0-1
Libxml2.so. 2 is needed by (installed) libgnomeui-2.2.0.1-5
Libxml2.so. 2 is needed by (installed) pygtk2-libglade-1.99.14-4
Libxml2.so. 2 is needed by (installed) gnome-python2-bonobo-1.99.14-5
Libxml2.so. 2 is needed by (installed) gnome-python2-1.99.14-5
Libxml2.so. 2 is needed by (installed) usermode-gtk-1.67-2
Libxml2.so. 2 is needed by (installed) memprof-0.5.1-3
Libxml2> = 2.5.2 is needed by (installed) libxslt-1.0.27-3
Libxml2> = 2.3.8 is needed by (installed) alchemist-1.0.26-1
Libxml2> = 2.4.12-0.7 is needed by (installed) libglade2-2.0.1-3
Libxml2> = 2.5 is needed by (installed) libgnome-2.2.0.1-8
Libxml2> = 2.4.20 is needed by (installed) gtkhtml2-2.2.0-5
Libxml2> = 2.5 is needed by (installed) libbonoboui-2.2.0-1
Libxml2> = 2.5 is needed by (installed) libgnomeui-2.2.0.1-5
An error occurred while removing the dependency.
Overwrite the installation with the Upgrade Method
[Root @ WebServer home] # rpm-Uvh libxml2-2.6.11-1.i386.rpm
Warning: libxml2-2.6.11-1.i386.rpm: V3 DSA signature: NOKEY, key ID de95bc1f
Preparing... ############# [100%]
1: libxml2 ############ [100%]
[Root @ WebServer home] # rpm-qa | grep libxml2
Libxml2-2.6.11-1
Install libxml2-devel-2.6.11-1
[Root @ WebServer home] # rpm-ivh libxml2-devel-2.6.11-1.i386.rpm
Warning: libxml2-devel-2.6.11-1.i386.rpm: V3 DSA signature: NOKEY, key ID de95bc1f
Preparing... ############### [100%]
1: libxml2-devel ############## [100%]
[Root @ WebServer home] # rpm-ivh libxml2-python-2.6.11-1.i386.rpm
Warning: libxml2-python-2.6.11-1.i386.rpm: V3 DSA signature: NOKEY, key ID de95bc1f
Preparing... ################## [100%]
1: libxml2-python ################ [100%]
View installation results
[Root @ WebServer home] # rpm-qa | grep libxml2
Libxml2-2.6.11-1
Libxml2-devel-2.6.11-1
Libxml2-python-2.6.11-1