在运行 16.04 的相当旧的笔记本电脑上,每当我尝试使用 ffmpeg 时,都会出现以下错误:
$ ffmpeg
ffmpeg: error while loading shared libraries: libcudart.so.5.5: cannot open shared object file: No such file or directory
Run Code Online (Sandbox Code Playgroud)
ffmpeg used to work fine and broke at some point. I can't be sure exactly when, but it might well have been when I upgraded from 14.04 to 16.04.
Running ldd confirms that this library (the CUDA runtime library) is missing, but everything else is fine:
$ ldd /usr/bin/ffmpeg | grep libcudart
libcudart.so.5.5 => not found …Run Code Online (Sandbox Code Playgroud)