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.