# Php 安装 php-xml 支持

**URL:** <https://www.isharkfly.com/t/php-php-xml/10515>\
**Category:** DevOps\
**Created:** [April 1, 2013, 12:38am UTC](https://www.isharkfly.com/t/php-php-xml/10515 "2013-04-01T00:38:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![honeymoose](https://www.isharkfly.com/user_avatar/www.isharkfly.com/honeymoose/32/20796_2.png) [@honeymoose](https://www.isharkfly.com/u/honeymoose)\
**Post date:** [April 1, 2013, 12:38am UTC](https://www.isharkfly.com/t/php-php-xml/10515/1 "2013-04-01T00:38:17Z")

</div>

可以运行下面的命令：`yum install php-xml`[code][root@us1 httpdocs]# yum install php-xml  
Loaded plugins: fastestmirror  
Loading mirror speeds from cached hostfile

- base: [centos.mirror.lstn.net](http://centos.mirror.lstn.net)
- extras: [centos.mirror.lstn.net](http://centos.mirror.lstn.net)
- updates: [centos.mirror.lstn.net](http://centos.mirror.lstn.net)  
base | 3.7 kB 00:00  
extras | 3.5 kB 00:00  
updates | 3.5 kB 00:00  
Setting up Install Process  
Resolving Dependencies  
 → Running transaction check  
—\> Package php-xml.x86\_64 0:5.3.3-22.el6 will be installed  
 → Processing Dependency: libxslt.so.1(LIBXML2\_1.0.24)(64bit) for package: php-xml-5.3.3-22.el6.x86\_64  
 → Processing Dependency: libxslt.so.1(LIBXML2\_1.0.22)(64bit) for package: php-xml-5.3.3-22.el6.x86\_64  
 → Processing Dependency: libxslt.so.1(LIBXML2\_1.0.18)(64bit) for package: php-xml-5.3.3-22.el6.x86\_64  
 → Processing Dependency: libxslt.so.1(LIBXML2\_1.0.13)(64bit) for package: php-xml-5.3.3-22.el6.x86\_64  
 → Processing Dependency: libxslt.so.1(LIBXML2\_1.0.11)(64bit) for package: php-xml-5.3.3-22.el6.x86\_64  
 → Processing Dependency: libxslt.so.1()(64bit) for package: php-xml-5.3.3-22.el6.x86\_64  
 → Processing Dependency: libexslt.so.0()(64bit) for package: php-xml-5.3.3-22.el6.x86\_64  
 → Running transaction check  
—\> Package libxslt.x86\_64 0:1.1.26-2.el6\_3.1 will be installed  
 → Finished Dependency Resolution

Dependencies Resolved

# ================================================================================ Package Arch Version Repository Size

Installing:  
php-xml x86\_64 5.3.3-22.el6 base 103 k  
Installing for dependencies:  
libxslt x86\_64 1.1.26-2.el6\_3.1 base 452 k

# Transaction Summary

Install 2 Package(s)

## Total download size: 555 k Installed size: 2.4 M Is this ok [y/N]: y Downloading Packages: (1/2): libxslt-1.1.26-2.el6\_3.1.x86\_64.rpm | 452 kB 00:00 (2/2): php-xml-5.3.3-22.el6.x86\_64.rpm | 103 kB 00:00

Total 4.8 MB/s | 555 kB 00:00  
Running rpm\_check\_debug  
Running Transaction Test  
Transaction Test Succeeded  
Running Transaction  
Installing : libxslt-1.1.26-2.el6\_3.1.x86\_64 1/2  
Installing : php-xml-5.3.3-22.el6.x86\_64 2/2  
Verifying : libxslt-1.1.26-2.el6\_3.1.x86\_64 1/2  
Verifying : php-xml-5.3.3-22.el6.x86\_64 2/2

Installed:  
php-xml.x86\_64 0:5.3.3-22.el6

Dependency Installed:  
libxslt.x86\_64 0:1.1.26-2.el6\_3.1

Complete!  
[root@us1 httpdocs]#  
[/code] ![](https://www.isharkfly.com/images/transparent.png)
