[英]./configure: No such file or directory when installing Xdebug on OSX
As the title shows I'm trying to install Xdebug on OSX (10.13.2) 如标题所示,我正在OSX(10.13.2)上安装Xdebug
I followed all the steps on https://xdebug.org/wizard.php and had first problems when it came to running phpize. 我按照https://xdebug.org/wizard.php上的所有步骤进行操作,并且在运行phpize时遇到了第一个问题。
Finally I found out which path to use: 最后,我找出了要使用的路径:
/usr/local/php5-7.1.1-20170213-100732/bin/phpize
that gave me the following output: 这给了我以下输出:
Configuring for:
PHP Api Version: 20160303
Zend Module Api No: 20160303
Zend Extension Api No: 320160303
autom4te: need GNU m4 1.4 or later: /usr/bin/m4
So far, so good. 到现在为止还挺好。 But when it comes to the next step where I am supposed to run configure I simply get
但是当涉及到应该运行配置的下一步时,我得到的只是
./configure: No such file or directory
./configure:没有这样的文件或目录
I have no experience in using the terminal and to be honest I don't understand half of what I'm doing. 我没有使用终端的经验,老实说,我不了解我在做什么。 Still I would love to have Xdebug on my local PHP installation.
我仍然希望在本地PHP安装上安装Xdebug。 Can anyone please help me and tell me what I am doing wrong here?
谁能帮我一下,告诉我我在做什么错?
EDIT: before someone asks: Yes, I'm running the ./configure
command in the correct directory (xdebug-2.6.0beta1). 编辑:在有人问之前:是的,我在正确的目录(xdebug-2.6.0beta1)中运行
./configure
命令。 When I ls
or just open the folder in Finder it also shows me that there is no such configure file. 当我
ls
或者只是在Finder中打开文件夹,也让我发现,有没有这样的配置文件。 It seems that this file has to be created somehow, I just don't know when and how. 看来该文件必须以某种方式创建,我只是不知道何时何地。
The problem here is: 这里的问题是:
autom4te: need GNU m4 1.4 or later: /usr/bin/m4
autom4te:需要GNU m4 1.4或更高版本:/ usr / bin / m4
It looks like you need to install GNU m4 with brew: 看来您需要使用brew安装GNU m4:
brew install m4
That way, you should get a newer m4. 这样,您应该获得更新的m4。
Alternatively, you might have to (re)install the "Command Line Tools" from within Xcode. 或者,您可能必须从Xcode中(重新)安装“命令行工具”。 ⌘, opens preferences and the install button for the "Command Line Tools" can be found in the "Downloads."
⌘,打开首选项,并且可以在“下载”中找到“命令行工具”的安装按钮。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.