0
我一直在我的Sierra Mac上建立一个PHP开发环境。我现在主要工作,但需要在PHP上安装intl
扩展。autoconf寻找一个不存在的文件夹
我已经试过
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
它看起来像它看起来的Perl可执行文件中/Applications/XAMPP/xamppfiles/bin/perl
,不再存在,因为我已经自卸载XAMPP
。 Perl现在位于/usr/bin/perl
。
如何更改autoconf
中的位置?
我想你正在使用一个程序('/ usr/local/mac-dev-env/autoconf-2.69/bin/autom4te'),该程序是使用卸载的'perl'安装的。你可以尝试编辑它的shebang行来使用不同的'perl',但是这个“new”'perl'可能没有安装脚本的所有依赖。更好的解决方案是用“new”'perl'重新安装该程序。 – ikegami
是的......你说'shebang line'是什么意思? – Sharon
https://en.wikipedia.org/wiki/Shebang_(Unix) – ikegami