Mac 不通过 brew 安装 Telnet 工具
侧边栏壁纸
博主昵称
404

  • 累计撰写 17 篇文章
  • 累计收到 0 条评论
Mac

Mac 不通过 brew 安装 Telnet 工具

404
404
2022-07-28 / 0 评论 / 3 阅读 / 正在检测是否收录...

通过 brew install telnet 时会要求安装 xcode

MacBook:~ 404$ brew install telnet
Warning: You are using macOS 10.14.
We (and Apple) do not provide support for this old version.
You will encounter build failures with some formulae.
Please create pull requests instead of asking for help on Homebrew's GitHub,
Twitter or any other official channels. You are responsible for resolving
any issues you experience while you are running this
old version.

telnet: A full installation of Xcode.app is required to compile
this software. Installing just the Command Line Tools is not sufficient.

Xcode can be installed from the App Store.
Error: telnet: An unsatisfied requirement failed this build.

如果不想安装xcode 可用下面方式安装

MacOS 10.14 的版本可以把MacOS10.12下的telnet和ftp的二进制文件拷贝回来,使得终端继续支持:
首先下载MacOS10.12的telnet和ftp的二进制文件到下载文件夹下:
https://link.zhihu.com/?target=https%3A//pan.baidu.com/s/15TksjubFMKgsy4XhinLQmQ
提取码:wco4
如果失效
http://soga.ac.cn/upload/macos10.13%E7%BC%BA%E5%A4%B1ftp%20telnet%E8%A7%A3%E5%86%B3%E5%8A%9E%E6%B3%95.zip

然后,把这两个文件拷贝到/usr/local/bin/的目录下
cd ~/Downloads
sudo cp telnet /usr/local/telnet
输入自己账号的密码回车

sudo cp ftp /usr/local/ftp
输入自己账号的密码回车

拷贝完成后进入/usr/local/bin目录,分别给telnet和ftp添加权限
cd /usr/local/bin

sudo chmod 755 telnet
输入自己账号的密码回车

sudo chmod 755 ftp
输入自己账号的密码回车

ls -l查看权限如下图即可
0

评论 (0)

取消