我需要在AMPPS上安装FANN扩展名,所以我需要使用phpize util。 使用phpize我需要autoconf。 我试图通过MacPort和Brew安装autoconf,但是出现了错误。
$ sudo port install autoconf
返回错误
错误:未找到端口autoconf
和
$ brew install autoconf
返回错误
Error: The `brew link` step did not complete successfully The formula built, but is not symlinked into /usr/local Could not symlink
share / autoconf / Autom4te / C4che.pm目标 /usr/local/share/autoconf/Autom4te/C4che.pm已经存在。你可以 想删除它:rm /usr/local/share/autoconf/Autom4te/C4che.pm
强制链接并覆盖所有冲突的文件:brew链接 --overwrite autoconf
列出所有要删除的文件:brew link --overwrite --dry-run autoconf
可能存在冲突的文件: /usr/local/share/autoconf/Autom4te/C4che.pm /usr/local/share/autoconf/Autom4te/ChannelDefs.pm /usr/local/share/autoconf/Autom4te/Channels.pm /usr/local/share/autoconf/Autom4te/Configure_ac.pm /usr/local/share/autoconf/Autom4te/FileUtils.pm /usr/local/share/autoconf/Autom4te/General.pm /usr/local/share/autoconf/Autom4te/Getopt.pm /usr/local/share/autoconf/Autom4te/Request.pm /usr/local/share/autoconf/Autom4te/XFile.pm 在/ usr / local / share下/ autoconf的/ INSTALL /usr/local/share/autoconf/autoconf/autoconf.m4 /usr/local/share/autoconf/autoconf/autoconf.m4f /usr/local/share/autoconf/autoconf/autoheader.m4 /usr/local/share/autoconf/autoconf/autoscan.m4 /usr/local/share/autoconf/autoconf/autotest.m4 /usr/local/share/autoconf/autoconf/autoupdate.m4 /usr/local/share/autoconf/autoconf/c.m4 /usr/local/share/autoconf/autoconf/erlang.m4 /usr/local/share/autoconf/autoconf/fortran.m4 /usr/local/share/autoconf/autoconf/functions.m4 /usr/local/share/autoconf/autoconf/general.m4 /usr/local/share/autoconf/autoconf/go.m4 /usr/local/share/autoconf/autoconf/headers.m4 /usr/local/share/autoconf/autoconf/lang.m4 /usr/local/share/autoconf/autoconf/libs.m4 /usr/local/share/autoconf/autoconf/oldnames.m4 /usr/local/share/autoconf/autoconf/programs.m4 /usr/local/share/autoconf/autoconf/specific.m4 /usr/local/share/autoconf/autoconf/status.m4 /usr/local/share/autoconf/autoconf/types.m4 /usr/local/share/autoconf/autom4te.cfg /usr/local/share/autoconf/autoscan/autoscan.list /usr/local/share/autoconf/autotest/autotest.m4 /usr/local/share/autoconf/autotest/autotest.m4f /usr/local/share/autoconf/autotest/general.m4 /usr/local/share/autoconf/autotest/specific.m4 /usr/local/share/autoconf/m4sugar/foreach.m4 /usr/local/share/autoconf/m4sugar/m4sh.m4 /usr/local/share/autoconf/m4sugar/m4sh.m4f /usr/local/share/autoconf/m4sugar/m4sugar.m4 /usr/local/share/autoconf/m4sugar/m4sugar.m4f /usr/local/share/autoconf/m4sugar/version.m4 /usr/local/share/emacs/site-lisp/autoconf-mode.el /usr/local/share/emacs/site-lisp/autoconf-mode.elc /usr/local/share/emacs/site-lisp/autotest-mode.el /usr/local/share/emacs/site-lisp/autotest-mode.elc /usr/local/share/man/man1/autoconf.1 /usr/local/share/man/man1/autoheader.1 /usr/local/share/man/man1/autom4te.1 /usr/local/share/man/man1/autoreconf.1 /usr/local/share/man/man1/autoscan.1 /usr/local/share/man/man1/autoupdate.1 /usr/local/share/man/man1/config.guess.1 /usr/local/share/man/man1/config.sub.1 /usr/local/share/man/man1/ifnames.1
安装autoconf需要做什么?或许你知道将FANN安装到AMPPS的其他方法吗?
答案 0 :(得分:-1)
错误:懦弱地拒绝sudo brew link
您可以将brew与sudo一起使用,但前提是brew可执行文件由root拥有。
但是,这既不推荐也不完全不支持,所以这样做
你自己的风险。