1.报错:
virtual memory exhausted: Cannot allocate memory
make: *** [ext/fileinfo/libmagic/apprentice.lo] Error 1
解决方法:
Adding –disable-fileinfo to ./configure solves the problem.
即:./configure –prefix=……. –disable-fileinfo
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