2018年1月3日 星期三

[linux] g++ -lssl error:"collect2: ld returned 1 exit status" Solve


ubuntu 中使用 g++ 編譯程式出現
g++ -lssl error:"collect2: ld returned 1 exit status"

$ sudo apt-cache search libssl
[sudo] password for peicheng:
libssl-dev - Secure Sockets Layer toolkit - development files
libssl-doc - Secure Sockets Layer toolkit - development documentation
libssl1.0.0 - Secure Sockets Layer toolkit - shared libraries
libssl1.0.0-dbg - Secure Sockets Layer toolkit - debug information
cl-plus-ssl - Common Lisp interface to OpenSSL
dcmtk - OFFIS DICOM toolkit command line utilities
dlang-openssl - D version of the C headers for openssl
libdcmtk-dev - OFFIS DICOM toolkit development libraries and headers
libdcmtk5 - OFFIS DICOM toolkit runtime libraries
libssl-ocaml - OCaml bindings for OpenSSL (runtime)
libssl-ocaml-dev - OCaml bindings for OpenSSL
libsslcommon2 - enterprise messaging system - common SSL libraries
libsslcommon2-dev - enterprise messaging system - common SSL development files

$ sudo apt-get install libssl1.0.0 libssl-dev -y

沒有留言:

張貼留言