寻找需要的 RPM包

寻找需要的 RPM包

http://rpmfind.net/linux/RPM/index.html

安装libxml2 需要 xz-devel zlib-devel 依赖包

yum install xz-devel zlib-devel

rpm -ivh libxml2-2.9.1-6.el7_2.3.x86_64.rpm 

rpm -ivh libxml2-devel-2.9.1-6.el7_2.3.x86_64.rpm

如果有2个php版本的话 ,检查并去掉一个

# /usr/bin/php -v
PHP 5.4.16 (cli) (built: Oct 30 2018 19:30:51) 
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
# /usr/local/bin/php -v
PHP 5.4.45 (cli) (built: Mar 28 2019 22:05:42) 
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies

 #mv php php.5.4.16
 #mv php-cgi php-cgi.5.4.16
 #mv phpize  phpize .5.4.16

标签
菜单分类