现在的位置: 我的问答 >dwebp: error while loading shared libraries解决办法

dwebp: error while loading shared libraries解决办法

2019-07-26 00:39 ⁄ 被浏览 415

安装完libwebp之后,执行dwebp或者cwebp命令报 dwebp: error while loading shared libraries: libwebpdemux.so.2: cannot open shared object file: No such file or directory 错误的解决办法:


添加环境变量: 

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
echo $LD_LIBRARY_PATH
echo "export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib" >> ~/.bashrc