Linux安装php报错记录
程序员文章站
2022-05-30 21:10:36
...
1.报错:
virtual memory exhausted: Cannot allocate memory
make: * [ext/fileinfo/libmagic/apprentice.lo] Error 1
解决方法:
Adding –disable-fileinfo to ./configure solves the problem.
virtual memory exhausted: Cannot allocate memory
make: * [ext/fileinfo/libmagic/apprentice.lo] Error 1
解决方法:
Adding –disable-fileinfo to ./configure solves the problem.
2.报错:
collect2: ld returned 1 exit status
make: * [sapi/cli/php] Error 1
解决方法:
vim Makefile
跳到大概98行 修改EXTRA_LIBS = ….. -lcrypt 在最后加上 -liconv
3.报错:
[root@iZ28rvl9qn3Z ~]# ERROR: No pool defined. at least one pool section must be specified in config file
……
解决方法:
原来php-fpm.conf 里include /usr/local/php7/etc/php-fpm.d/*.conf
只有www.conf.defaul, 需将 mv www.conf.default www.conf
以上就介绍了Linux安装php报错记录,包括了方面的内容,希望对PHP教程有兴趣的朋友有所帮助。
下一篇: 开发大型PHP项目的方法_php基础