Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/assembly/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Debian 运行与linuxbrew(自制)一起安装的zsh时出错_Debian_Homebrew_Zsh_Linuxbrew - Fatal编程技术网

Debian 运行与linuxbrew(自制)一起安装的zsh时出错

Debian 运行与linuxbrew(自制)一起安装的zsh时出错,debian,homebrew,zsh,linuxbrew,Debian,Homebrew,Zsh,Linuxbrew,我使用linuxbrew安装了zsh,没有问题: 现在,当运行zsh时,我得到一个错误: zsh: error while loading shared libraries: libgdbm.so.4: cannot open shared object file: No such file or directory 但是libgdm.so.4已经出现在~/.linuxbrew/lib中,我的.bashrc和.zshrc中都有: 我错过什么了吗 我使用的是Debian 3.2.54-2 x86

我使用linuxbrew安装了zsh,没有问题:

现在,当运行zsh时,我得到一个错误:

zsh: error while loading shared libraries: libgdbm.so.4: cannot open shared object file: No such file or directory
但是libgdm.so.4已经出现在~/.linuxbrew/lib中,我的.bashrc和.zshrc中都有:

我错过什么了吗

我使用的是Debian 3.2.54-2 x86_64。

问题在于.bashrc中的LD_LIBRARY_路径设置。它必须是:

export LD_LIBRARY_PATH="$HOME/.linuxbrew/lib:$LD_LIBRARY_PATH"
LD_LIBRARY_PATH="$HOME/.linuxbrew/lib:$LD_LIBRARY_PATH"
export LD_LIBRARY_PATH="$HOME/.linuxbrew/lib:$LD_LIBRARY_PATH"