编译PHP5.5 make 时出现错误
make: *** [ext/fileinfo/libmagic/apprentice.lo] Error 1
解决办法
这是由于内存小于1G所导致.
在./configure加上选项:
--disable-fileinfo
文章标签 php make apprentice.lo disable-fileinfo 文章分类 PHP 后端开发
编译PHP5.5 make 时出现错误
make: *** [ext/fileinfo/libmagic/apprentice.lo] Error 1
解决办法
这是由于内存小于1G所导致.
在./configure加上选项:
--disable-fileinfo
make: * [http-push.o] Error 1yum update curl libcurl yum -y install libcurl-devel.x86_6 yum -y install expat-devel.x86_64
yum -y install gd *openssl*
原因是因为gcc版本过低,yum安装的gcc是4.8.5的。因此需要升级gcc,升级过程如下:yum -y install centos-release-sclyum -y install devtoolset-9-gcc devtoolset-9-gcc-c++ devtoolset-9-binutils#这句是临时的scl enable devtoolset-9 bash#修改环境变量echo “source /opt/rh/devtoolset-9/enable” >> /et
请注明出处:://blog..net/l102
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M