编译openssh出现报错configure: error: OpenSSL library not found.

checking if getpgrp accepts zero args... yes
checking openssl/opensslv.h usability... yes
checking openssl/opensslv.h presence... yes
checking for openssl/opensslv.h... yes
checking OpenSSL header version... 1010104f (OpenSSL 1.1.1d 10 Sep 2019)
checking for OpenSSL_version... no
checking for OpenSSL_version_num... no
checking OpenSSL library version... not found
configure: error: OpenSSL library not found.
[root@localhost openssh-8.1p1]#
编译openssh时,出现这个问题,就在执行 ./configure弹出的
电脑里面有两个openssl
[root@localhost openssh-8.1p1]# /usr/local/bin/openssl version
OpenSSL 1.1.1d 10 Sep 2019
[root@localhost openssh-8.1p1]# /bin/openssl version
OpenSSL 1.0.1e-fips 11 Feb 2013
[root@localhost openssh-8.1p1]#
上面是编译安装的,在/usr/local下面,一个是系统自带的在/usr下面。请问怎么将这个编译的openssh装上去,出现这个报错 怎么解决

卸载当前openssl-devel版本然后再安装上这个版本,问题解决;但原因是啥也还在找

重装openssl即可:https://blog.csdn.net/akai9898/article/details/83716484

https://blog.csdn.net/bytxl/article/details/46639073

删除/usr/local/bin/openssl 再次安装