今天在使用某工具时,遇到如下错误:
/usr/bin/env: php: No such file or directory
这可能是在安装LAMP环境时,缺少了PHP命令行组件,解决办法如下:
sudo apt-get install php5-cli