python

开发机安装homebrew

2019-11-19  本文已影响0人  迷糊银儿

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一下就可以用了。

上一篇 下一篇

猜你喜欢

热点阅读