先设置代理安装,安装好后再设置mirror来加速。openclaw@ubuntu:~$ export HTTP_PROXY=http://192.168.123.165:23333openclaw@ubuntu:~$ export HTTPS_PROXY=http://192.168.123.165:23333openclaw@ubuntu:~$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
openclaw@ubuntu:~$ tail -7 .bashrc export HOMEBREW_INSTALL_FROM_API=1export HOMEBREW_API_DOMAIN="https://mirrors.aliyun.com/homebrew-bottles/api"export HOMEBREW_BREW_GIT_REMOTE="https://mirrors.aliyun.com/homebrew/brew.git"export HOMEBREW_CORE_GIT_REMOTE="https://mirrors.aliyun.com/homebrew/homebrew-core.git"export HOMEBREW_BOTTLE_DOMAIN="https://mirrors.aliyun.com/homebrew/homebrew-bottles"
openclaw@ubuntu:~$ echo >> /home/openclaw/.bashrc echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv bash)"' >> /home/openclaw/.bashrc eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv bash)"
用 openclaw 用户,重新登录。
再安装推荐的软件。
openclaw@ubuntu:~$ brew update openclaw@ubuntu:~$ brew install gccopenclaw@ubuntu:~$ sudo apt-get install build-essential