0

I found openssl is already installed on my server

# yum list installed | grep openssl
openssl.x86_64                          1:1.0.2k-26.el7_9        @updates
openssl-libs.x86_64                     1:1.0.2k-26.el7_9        @updates

However, it couldn't be found by pkg-config

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

I want to know what's wrong and how to fix it.

1 Answer 1

1

The command pkg-config is used for develop libraries and have (directly) nothing to do with system packages, installed in the OS.

3
  • do you mean I have to install something like openssl-devel?
    – calvin
    Commented Dec 22, 2023 at 15:14
  • AFAIK - yes, this util search for dev libraries and it is mostly in use when you compile something Commented Dec 22, 2023 at 15:16
  • 1
    I tried, and it works now, thank you
    – calvin
    Commented Dec 22, 2023 at 15:18

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .