Home > Backend Development > PHP Tutorial > 安装php-5.3.28 时问题

安装php-5.3.28 时问题

WBOY
Release: 2016-06-20 12:57:05
Original
1308 people have browsed it

1:configure: error:xm12-config not ffound.please check your libxm12 installation

[root@rh-linux /]# yum install libxml2-devel -y

安装完之后查找xml2-config文件是否存在

[root@rh-linux /] # find / -name "xml2-config"

/usr/bin/xml2-config

 

如果存在的话重新安装php

[root@rh-linux  php-5.4.3]# ./configure

[root@rh-linux  php-5.4.3]# make

[root@rh-linux  php-5.4.3]# make install

安装好php后别忘了配置下php.ini 文件, 

[root@rh-linux php-5.4.3]# cp php.ini-production /usr/local/lib/php.ini

也可以直接在 make install 后面加一个编译参数 --with-config-file-path=/usr/local/php/etc 指定自己的php.ini路径 然后从源码里面 cp过去php.ini 源码里面有个php.ini-development和php.ini-production 如果不是本地调试模式的 选择后者



Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template