LINUX: Failed to pkg-config on libcryptsetup

441 Views Asked by At

Can someone help me with this error:

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

My server:

Red Hat Enterprise Linux Server release 7.8 (Maipo)

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

I am not really sure how to set the ENV var for PKG_CONFIG_PATH.

Thanks James

1

There are 1 best solutions below

0
Mer On

Now you can use dnf --enablerepo=crb install cryptsetup-devel to install that on CentOS9-stream.

base on https://centos.pkgs.org/9-stream/centos-crb-x86_64/cryptsetup-devel-2.4.3-5.el9.x86_64.rpm.html