LINUX:无法对libcryptsetup进行pkg-config

5cnsuln7  于 2022-12-11  发布在  Linux
关注(0)|答案(1)|浏览(126)

有人可以帮助我解决此错误吗:

pkg-config --cflags  -- libcryptsetup
Package libcryptsetup was not found in the pkg-config search path.
Perhaps you should add the directory containing `libcryptsetup.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libcryptsetup' found

我的服务器:
红帽企业Linux服务器7.8版(Maipo)

~> rpm -qa | grep cryptsetup
cryptsetup-libs-2.0.3-6.el7.x86_64
cryptsetup-2.0.3-6.el7.x86_64

我不确定如何设置PKG_CONFIG_PATH的ENV变量。
谢谢James

2vuwiymt

2vuwiymt1#

现在,您可以使用dnf --enablerepo=crb install cryptsetup-devel在CentOS 9-stream上安装它。
基于https://centos.pkgs.org/9-stream/centos-crb-x86_64/cryptsetup-devel-2.4.3-5.el9.x86_64.rpm.html

相关问题