php - 运行 phpize 命令时出错

标签 php xdebug php-extension phpize

我正在尝试从源代码安装 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/

相关文章:

php - Laravel 5 PHPUnit 测试失败,getContent() 为 null

php - XDebug 未在 Windows 7 64 位 PHP 5.4 上加载

php - 是否可以从扩展中调用 PHP_FUNCTION

php - Howto ubuntu 18.04 安装/激活 PHP 扩展 ext-mcrypt

PHP 扩展 Dio 未加载?

php - 建立一个大表格,需要建议

php - 使用 php 和 mysql 查看所有表

php - Xdebug 由 PHPStorm 中的代码嗅探器触发

php - 我可以在变化的值上设置断点吗?

javascript - 将输入按钮包装在 HREF 中