apt remove로 지웠다간, 크롬 firefox snapd등이 실행이안됨.
그래서 프로젝트 컴파일할때만 사용한다.
1. 빌드해야하므로 관련 프로그램 설치
sudo apt install -y build-essential checkinstall zlib1g-dev
2. 다운로드 (어디든 다운로드해도 됨.)
3. 압축풀고
tar xvfz openssl-1.1.1w.tar.gz
4. 아래 실행.
./config shared
make
make install
5. 확인
happycpu@happycpu-X1:~$ openssl version
OpenSSL 1.1.1w 11 Sep 2023
OpenSSL 1.1.1w 11 Sep 2023
$ whereis openssl
openssl: /usr/bin/openssl /usr/local/bin/openssl /usr/include/openssl /usr/local/ssl/bin/openssl /usr/share/man/man1/openssl.1ssl.gz
여기 설치됨. 대충보면. 아래와같음. 즉 설치위치는 /usr/local/ssl/
$ ls /usr/local/ssl/
bin certs ct_log_list.cnf ct_log_list.cnf.dist include lib misc openssl.cnf openssl.cnf.dist private share
bin certs ct_log_list.cnf ct_log_list.cnf.dist include lib misc openssl.cnf openssl.cnf.dist private share
cmakelists.txt에 추가해줄것.
set(OPENSSL_ROOT_DIR "/usr/local/ssl")
find_package(OpenSSL 1.1.1 REQUIRED)
이렇게하면, 1.1.1을 찾을것임.
댓글 없음:
댓글 쓰기