CentOS에서 OpenSSL을 빌드하려고 할 때 구성 오류가 발생했습니다.

CentOS에서 OpenSSL을 빌드하려고 할 때 구성 오류가 발생했습니다.

Centos 5.7 OS 상자가 있고 OpenSSL 1.0.1h를 성공적으로 설치했습니다. 그런데 OpenSSH를 업그레이드하고 ./configure를 실행할 때 다음과 같은 오류 메시지가 나타납니다. 이 문제를 해결하도록 도와주시고 궁금한 점이 있으면 알려주시기 바랍니다.

checking whether snprintf correctly terminates long strings... yes
checking whether snprintf can declare const char *fmt... yes
checking whether system supports SO_PEERCRED getsockopt... yes
checking for (overly) strict mkstemp... yes
checking if openpty correctly handles controlling tty... yes
checking whether getpgrp requires zero arguments... yes
checking OpenSSL header version... 1000108f (OpenSSL 1.0.1h 5 Jun 2014)
checking OpenSSL library version... 90802f (OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008)
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.

답변1

...OpenSSL 1.0.1h를 설치했습니다...

네, 하지만 타이틀 버전에만 해당됩니다. 귀하의 라이브러리는 헤더와 달리 여전히 입니다 0.9.8e-fips-rhel5. 1.0.1h헤더에 맞는 라이브러리를 설치해야 합니다. 수동으로 설치하신
것 같은데 rhel 버전인 것 같습니다. rhel-version은 아마도 패키지 관리자를 통해 설치되었을 것입니다. 어쩌면 를 통해 제거해야 할 수도 있습니다 . 그런 다음 라이브러리가 감지되는지 확인하십시오(header+lib가 설치되어 있다고 가정합니다). 그렇지 않은 경우 -libs를 다시 설치하십시오.OpenSSL 1.0.1h0.9.8e-fips-rhel50.9.8eyum remove openssl-libsOpenSSL 1.0.1hOpenSSL 1.0.1h

관련 정보