Upgrade Linux built-in libxml2 library install php-5.2.5 on RedHatLinux

Source: Internet
Author: User
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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.