Linuxbrew的首页是http://linuxbrew.sh,安装有个ruby脚本。
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/install/master/install)"
我用这个没有跑成功... 不就是ruby脚本吗,我干脆自己clone一份。
git clone https://github.com/Linuxbrew/brew.git ~/.linuxbrew
还得把homebrew-core克隆下来,里面有一些核心的软件安装formula,比如gcc。
git clone https://github.com/Linuxbrew/homebrew-core ~/.linuxbrew/Library/Taps/homebrew
配置一下bash_profile文件
export PATH="$HOME/.linuxbrew/bin:$PATH"
export MANPATH="$HOME/.linuxbrew/share/man:$MANPATH"
export INFOPATH="$HOME/.linuxbrew/share/info:$INFOPATH"
然后source一下就可以用了。
网友评论