我尝试从源代码安装xdebug
extenssion但是当我运行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
有什么想法吗?
答案 0 :(得分:1)
您似乎没有定义" / bin "进入 PATH 环境变量。
尝试在再次执行phpize之前设置此项:
export PATH="/bin:/usr/bin:$PATH"