在apt里面安装的brew好像有问题,用不了,一直提示我broken了。
于是直接去git上面clone一个下来就好了
步骤1:
git clone https://github.com/Linuxbrew/brew.git ~/.linuxbrew
步骤2:
把homebrew-core克隆下来,里面有一些核心的软件安装formula,比如gcc。
git clone https://github.com/Linuxbrew/homebrew-core ~/.linuxbrew/Library/Taps/homebrew
步骤3:
配置环境变量
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
欢迎关注我的公众号“灯珑”,让我们一起了解更多的事物~