在 18.04 上安装 lzma-dev 时出现问题

在 18.04 上安装 lzma-dev 时出现问题

运行后sudo apt install lzma-devpkgconfig无法找到该库。它似乎没有安装 lib 文件。

知道如何解决这个问题吗?谢谢!

$ dpkg -L lzma-dev
/.
/usr
/usr/include
/usr/include/lzma
/usr/include/lzma/7zVersion.h
/usr/include/lzma/LzFind.c
/usr/include/lzma/LzFind.h
/usr/include/lzma/LzHash.h
/usr/include/lzma/LzmaDec.c
/usr/include/lzma/LzmaDec.h
/usr/include/lzma/LzmaEnc.c
/usr/include/lzma/LzmaEnc.h
/usr/include/lzma/Types.h
/usr/share
/usr/share/doc
/usr/share/doc/lzma-dev
/usr/share/doc/lzma-dev/7zC.txt.gz
/usr/share/doc/lzma-dev/7zFormat.txt.gz
/usr/share/doc/lzma-dev/Methods.txt
/usr/share/doc/lzma-dev/changelog.Debian.gz
/usr/share/doc/lzma-dev/copyright
/usr/share/doc/lzma-dev/lzma.txt.gz 

答案1

看来您正在尝试安装错误的包。

相应liblzma.pc文件包含在liblzma-dev包裹。你可以使用以下命令安装:

sudo apt-get install liblzma-dev

相关内容