error while loading shared libraries: libavdevice.so.52 :cannot open shared object file: No such file or directory //红色可以为其他文件
解决办法:
find / -name "name" //红色name 为上述类似的红色文件
1.找到文件所在位置后输入指令gedit /etc/ld.so.conf
然后编辑弹出来的文件
include /etc/ld.so.conf.d/*.conf
/usr/local/ffmpeg/lib //文件所在的位置
同等操作:
2.echo "/usr/local/ffmpeg/lib">>/etc/ld.so.conf //1和2一样意思
输入ldconfig后,重启即可