问题描述
我想像在 Linux 中一样使用终端安装文本编辑器 Atom (https://atom.io),因此我按照本教程在我的 Mac(版本 11.1 Big Sur)上执行了以下步骤,以使我能够使用MacPorts 命令行工具:
https://guide.macports.org/chunked/installing.macports.html
我执行的步骤是:
-
直接从 App Store 安装 Xcode(文件很大,需要 40 分钟下载)。
-
以传统下载方式安装 MacPorts(即不是从终端或 App Store,而是从网站:https://github.com/macports/macports-base/releases/tag/v2.6.4)
版本:MacPorts-2.6.4_1-11-BigSur.pkg
这是我安装的 MacPorts 版本的直接链接:https://github.com/macports/macports-base/releases/download/v2.6.4/MacPorts-2.6.4_1-11-BigSur.pkg
接下来,我进入了直接从终端安装 Atom 的有趣部分。我使用以下命令这样做:
sudo port -fp install atom
这安装了相当长的依赖项列表(30-40 项)。安装成功完成。
在终端(zsh终端)中,我通过键入以下内容来测试是否安装了atom:
atom --version
返回错误:
"command not found: atom"
我还在 Launchpad、Spotlight Search 和 Applications 文件夹中查找了 Atom。好像也没有。
问题:有没有人看到我遗漏的东西,或者 Atom 可能安装到的任何想法?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)