我正在尝试从源代码安装 xdebug
扩展,但是当我运行 phpize
命令时,出现以下错误:
/Applications/XAMPP/xamppfiles/bin/phpize: line 61: grep: command not found
/Applications/XAMPP/xamppfiles/bin/phpize: line 62: grep: command not found
/Applications/XAMPP/xamppfiles/bin/phpize: line 63: grep: command not found
Configuring for:
PHP Api Version:
Zend Module Api No:
Zend Extension Api No:
/Applications/XAMPP/xamppfiles/bin/phpize: line 145: mkdir: command not found
/Applications/XAMPP/xamppfiles/bin/phpize: line 147: cp: command not found
/Applications/XAMPP/xamppfiles/bin/phpize: line 148: cp: command not found
/Applications/XAMPP/xamppfiles/bin/phpize: line 149: cat: command not found
/Applications/XAMPP/xamppfiles/bin/phpize: line 199: touch: command not found
/Applications/XAMPP/xamppfiles/bin/phpize: line 106: chmod: command not found
/Applications/XAMPP/xamppfiles/bin/phpize: line 109: cat: command not found
有什么想法吗?
最佳答案
您似乎没有在 PATH 环境变量中定义“/bin”。
在再次执行 phpize 之前尝试设置此项:
export PATH="/bin:/usr/bin:$PATH"
关于php - 运行 phpize 命令时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30200600/