美文网首页python
开发机安装homebrew

开发机安装homebrew

作者: 迷糊银儿 | 来源:发表于2019-11-19 11:36 被阅读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一下就可以用了。

相关文章

网友评论

    本文标题:开发机安装homebrew

    本文链接:https://www.haomeiwen.com/subject/svjwictx.html