-lcrypt -o sapi/cli/php
/bin/ld: cannot find -lcares
collect2: error: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Starting php-fpm done
原因:缺少c-ares依赖
解决方法:
CentOS:yum install c-ares c-ares-devel -y
Ubuntu:apt-get install c-ares c-ares-devel -y