openssl编译错误

在编译时提示错误
checking OpenSSL header version… 101000af (OpenSSL 1.1.0j 20 Nov 2018)
checking OpenSSL library version… 101000af (OpenSSL 1.1.0j 20 Nov 2018)
checking whether OpenSSL’s headers match the library… no
configure: error: Your OpenSSL headers do not match your
library. Check config.log for details.
If you are sure your installation is consistent, you can disable the check
by running “./configure --without-openssl-header-check”.
Also see contrib/findssl.sh for help identifying header/library mismatches.
网上搜了下解决方法,
./configure --with-ssl-dir=OPEN_SSL_VERSION_0.9.X_DIRECTORY_PATH`
但不知道安装目录到底在哪个位置。求解

有啥需求非得自己编译openssl啊

是编译一个软件时提示这个。现在知道原因了,软件太久没维护了,需要旧版本的openssl才能用