Cabal无法安装ffmpeg-light。它给出了错误:
cabal: The pkg-config package libavutil is required but it could not be found.
Failed to install ffmpeg-light-0.7.1.1
cabal: Error: some packages failed to install:
ffmpeg-light-0.7.1.1 failed during the configure step. The exception was:
ExitFailure 1
pkg-config包位于:
/home/timothy/ffmpeg_build/lib/pkgconfig
如何告诉Cabal在哪里看?
答案 0 :(得分:1)
PKG_CONFIG_PATH变量告诉系统在哪里查找pkg-config软件包。它可以通过以下方式设置:export PKG_CONFIG_PATH = / pkg-config-directory。在这个例子中:
export PKG_CONFIG_PATH=/home/timothy/ffmpeg_build/lib/pkgconfig