autoconf 寻找不存在的文件夹

autoconf looking for a folder that doesn't exist

我一直在我的 Sierra Mac 上设置 PHP 开发环境。我现在大部分时间都在使用它,但需要在 PHP.

上安装 intl 扩展

我试过了

sudo pecl install intl

但它抛出以下错误:

/usr/local/autoconf/bin/autoconf: /usr/local/mac-dev-env/autoconf-2.69/bin/autom4te: /Applications/XAMPP/xamppfiles/bin/perl: bad interpreter: No such file or directory
/usr/local/autoconf/bin/autoconf: line 505: /usr/local/mac-dev-env/autoconf-2.69/bin/autom4te: Undefined error: 0
ERROR: `phpize' failed

它似乎在 /Applications/XAMPP/xamppfiles/bin/perl 中寻找 Perl 可执行文件,它不再存在,因为我已经卸载了 XAMPP。 Perl 现在位于 /usr/bin/perl.

如何更改 autoconf 中的位置?

好的,感谢 Ikegami,这是有效的方法:

已打开 autom4te(在 /usr/local/mac-dev-env/autoconf-2.69/bin/autom4te,如错误消息中所指定)。

顶部的评论说该文件是自动生成的,因此不应编辑,但我编辑了引用 XAMPP 的行,并将路径更改为 /usr/bin/perl

运行 "sudo pecl install intl" 和 运行 与几个不同的程序(都在 autoconf-2.69 目录中)相同的错误。更改了它们中的每一个以删除对 XAMPP 的引用,并替换为正确的路径。

运行 再次安装命令,成功了。