Openssl-1.0.1f 설치
안녕하세요. 어디에도 정보를 구할 수가 없어서처음으로 글을 써 봅니다.
현재, Mac Os 를 사용중이구요.
heartbeat 오류를 직접 수정해보기 위해서, openssl-1.0.1f 를 직접 설치하고자 합니다.
그렇지만 이전에 brew openssl@1.1 을 설치했던것이 문제인지, 계속해서 $ make 과정에서 오류가 나타납니다.
오류메세지:
ld: library not found for -lssl
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [link_app.] Error 1
make[1]: *** [bntest] Error 2
make: *** [tests] Error 2
또한, $./config --prefix=/Users/저의 이름/특정 폴더 --opensslidir/Users/저의 이름/특정 폴더
이렇게 실시하면 결과가 조금 불안정 한 것 같습니다.
결과메세지 일부:
ssltest.c => ../test/ssltest.c
making links in engines...
making links in engines/ccgost...
make[2]: Nothing to be done for `links'.
making links in apps...
make[1]: Nothing to be done for `links'.
making links in test...
make[1]: Nothing to be done for `links'.
making links in tools...
make[1]: Nothing to be done for `links'.
generating dummy tests (if needed)...
make[1]: Nothing to be done for `generate'.
최종적으로 바라는 바는, openssl-1.0.1f 를 설치한 후에, 어떠한 client c++ 파일을 작성하여 다음과 같이 컴파일 하는것 입니다.
g++ -L/home/sec/12345/openssl/lib -I/home/sec/12345/openssl/include
-fpermissive -o cli cli.cpp -lssl -lcrypto -ldl
도움을 기다리고 있습니다... 고수님들 한 번만 도와주세요...
교수님도 모른다고 하셔서, 수업에 따라가지 못하는 상황에 있는 불쌍한 학생입니다...
그럼 답변을 기다리겠습니다...
2021.11.11 #openssl #g++ #make 오류 #make
p.s. 삭제하는 방법...?
더불어서, brew openssl@1.1 을 삭제하는 방법 및 이전에 설치한 make 에 대하여 깔끔하게 삭제하시는 방법을 알고 계신다면 덧붙여서 말씀해 주시면 정말 감사하겠습니다!!
삭제는 ...
make clean
brew uninstall openssl@1.1
------------------------------------------------------------
ProgrammingHolic
감사합니다…!
감사합니다…!
댓글 달기