升級到MacOS High Sierra? ftp會不見哦!

今天忍不住了,還是升級到MacOS High Sierra
果然沒事找事,一升級就會出問題!

居然終端機裡的ftp不見了,當下心想,又是Apple自己改的!
找了一下,果然如此:

https://discussions.apple.com/thread/8093031?start=0&tstart=0

那怎麼辦呢?
上面討論串的最後,有朋友提了一個方法,就是安裝LFTP來頂著用:
$ brew install inetutils

will install inetutils from GNU that includes /usr/local/bin/ftp

$ which ftp
/usr/local/bin/ftp
$ ftp --version
ftp (GNU inetutils) 1.9.4
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by many authors.
要先安裝brew:
https://brew.sh/

$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

順利裝好。

然後下 $ brew install inetutils
結果:
Error: Your Xcode (8.2) is too outdated.
Please update to Xcode 9.1 (or delete it).

Xcode can be updated from the App Store.

原因是之前為了玩深度學習Tensorflow的nVidia GPU計算功能,把xcode command line工具的路徑固定到8.2版去了,那現在只好改回來:

$ sudo xcode-select --switch /Applications/Xcode.app

再重下之前指令,就好了:
$ brew install inetutils
==> Installing dependencies for inetutils: libidn
==> Installing inetutils dependency: libidn
==> Downloading https://homebrew.bintray.com/bottles/libidn-1.33.high_sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring libidn-1.33.high_sierra.bottle.tar.gz
==> Caveats
Emacs Lisp files have been installed to:
  /usr/local/share/emacs/site-lisp/libidn
==> Summary
🍺  /usr/local/Cellar/libidn/1.33: 72 files, 1.3MB
==> Installing inetutils
==> Downloading https://homebrew.bintray.com/bottles/inetutils-1.9.4.high_sierra.bottle.1.tar.gz
######################################################################## 100.0%
==> Pouring inetutils-1.9.4.high_sierra.bottle.1.tar.gz

🍺  /usr/local/Cellar/inetutils/1.9.4: 107 files, 2.6MB


留言

這個網誌中的熱門文章

D-BUS學習筆記

Cisco Switch學習筆記: EtherChannel

Cisco Switch學習筆記: interface的封包錯誤統計