macos下使用homebrew安裝ftp提示Cannot install inetutils because conflicting formulae are installed解決

macos下使用homebrew安裝ftp提示Cannot install inetutils because conflicting formulae are installed解決

telnet: because both install telnet bina

brew install telent

brew install inetutils

提示

Error: Cannot install inetutils because conflicting formulae are installed.
  telnet: because both install `telnet` binaries

Please `brew unlink telnet` before continuing.
Unlinking removes a formula's symlinks from /usr/local. You can
link the formula again after the install finishes. You can --force this
install, but the build may fail or cause obscure side effects in the
resulting software.

brew unlink telnet

提示運行brew unlink telent斷開公式的鏈接,再進行

brew install inetutils

提示

If you really need to use these commands with their normal names, you
can add a "gnubin" directory to your PATH from your bashrc like:

    PATH="/usr/local/opt/inetutils/libexec/gnubin:$PATH"

根據提示直接使用ftp命令需將其添加至path內

vim ~/.bash_profile

將PATH="/usr/local/opt/inetutils/libexec/gnubin:$PATH"添加其中

成功安裝ftp

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章