听说安装很简单
一个命令
brew install tmux
但是在安装过程中会出现
cannot run C compiled programs 问题
解决办法
直接在终端运行
xcode-select --install
接着又会出现如下的错误
curl: (22) The requested URL returned error: 404 Not Found
Error: Failed to download resource "openssl"
Download failed: https://raw.githubusercontent.com/DomT4/LibreMirror/master/OpenSSL/openssl-1.0.2.tar.gz
搜了很多还是没有解决,最后没有办法,直接重新安装了homebrew
安装之前先卸载之前已经安装的
卸载办法一:
$ cd `brew --prefix`
$ rm -rf Cellar
$ brew prune
$ rm -rf Library .git .gitignore bin/brew README.md share/man/man1/brew
$ rm -rf ~/Library/Caches/Homebrew
卸载方法二:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"
或者也可以方法一和二都用下
接下来是安装:
可以直接搜homebrew安装的教程
也可以直接用下边的命令:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
重新安装了homebrew终于好了
直接使用最开始的
brew install tmux
安装即可
终于将tmux安装上了
http://www.sbloger.com/blog/2013/07/09/about-tmux.html
https://github.com/Homebrew/homebrew/issues/40762
https://www.douban.com/note/319606153/