如何在 Mac OS X 上重新安装 nano?

qod*_*nja 4 nano installation macos

我不小心用unix二进制版本覆盖了我的nano应用程序,现在nano在我的Mac OS(Maverick)上不起作用。

如何恢复 nano 或取回它?

我在自制软件上找不到它,我也不知道关于编译 src 文件的 bean。

尝试使用 git 时出现 Nano 错误

/Applications/Xcode.app/Contents/Developer/usr/libexec/git-core/git-rebase--interactive: line 225: /usr/bin/nano: cannot execute binary file
Could not execute editor
Run Code Online (Sandbox Code Playgroud)

mvn*_*aai 6

  1. 下载 nano 源(我推荐 tar.xz 一个)(nano-editor.org/download.php
  2. 转到它下载到的文件夹(默认情况下它会下载到,~/Downloads但如果你更改了文件下载的目录,那么就去那里)。
  3. 提取您下载的纳米源。
  4. 打开你的终端
  5. 键入不带“”的“cd”,然后拖放您提取的文件夹,然后单击“输入”。
  6. 运行没有“”的“./configure”。
  7. 运行没有“”的“make”。
  8. 运行不带“”的“sudo make install”。]

您现在已经成功安装了nano!