php5.6版本安装出错 make: * [ext/fileinfo/libmagic/apprentice.lo] Error 1

WBOY
Release: 2016-06-23 13:21:04
Original
1225 people have browsed it

我们手动编译安装php5.6版本时,与之前安装的老版本不一样,在执行make这一步时会出现错误:


make: *** [ext/fileinfo/libmagic/apprentice.lo] Error 1


这是由于服务器内存小于1G所导致编译占用资源不足(好吧,我的服务器一共就1G的内存,当然不足)


解决办法:在编译参数后面加上一行内容


--disable-fileinfo  


Disable fileinfo support 禁用 fileinfo,搞定


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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!