linux安装brew

2022-10-31 13:32:27 浏览数 (1)

在apt里面安装的brew好像有问题,用不了,一直提示我broken了。

于是直接去git上面clone一个下来就好了

步骤1:

代码语言:javascript复制
git clone https://github.com/Linuxbrew/brew.git ~/.linuxbrew

步骤2:

把homebrew-core克隆下来,里面有一些核心的软件安装formula,比如gcc。

代码语言:javascript复制
git clone https://github.com/Linuxbrew/homebrew-core ~/.linuxbrew/Library/Taps/homebrew

步骤3:

配置环境变量

代码语言:javascript复制
export PATH="$HOME/.linuxbrew/bin:$PATH"
export MANPATH="$HOME/.linuxbrew/share/man:$MANPATH"
export INFOPATH="$HOME/.linuxbrew/share/info:$INFOPATH"
source ~/.bashrc

至此,brew就安装完成了!

转载请注明链接:https://www.longjin666.top/?p=942

0 人点赞