安装插件
sudo apt updat
sudo apt install linuxbrew-wrapper
或者使用其官方安装脚本https://github.com/Homebrew/install/blob/main/install.sh
添加环境变量
# 第一步:将Homebrew的环境变量添加到.bashrc
echo 'export PATH="/home/linuxbrew/.linuxbrew/bin:$PATH"' >> ~/.bash_profile
echo 'export MANPATH="/home/linuxbrew/.linuxbrew/share/man:$MANPATH"' >> ~/.bash_profile
echo 'export INFOPATH="/home/linuxbrew/.linuxbrew/share/info:$INFOPATH"' >> ~/.bash_profile
# 第二步:立即生效环境变量(无需重启终端)
source ~/.bash_profile
sudo apt-get install build-essential
# 第三步:验证配置
brew --version
# 若显示版本号(如Homebrew 1.9.4),则配置成功。
安装依赖
# 安装 Homebrew 依赖
brew tap langgenius/dify
brew install dify
后续事宜请参阅:
https://github.com/yuos-bit/DOC-Dify-Plugin/blob/main/README-Zh-cn.md