CentOS編譯安裝cmake時報錯


1.下載cmake源碼包

  wget https://cmake.org/files/v3.18/cmake-3.18.1.tar.gz

 

2.

  ./configure --prefix=/usr/local/cmake

這一步說沒有找到OPENSSL報錯,

-- Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the system variable OPENSSL_ROOT_DIR (missing: OPENSSL_CRYPTO_LIBRARY OPENSSL_INCLUDE_DIR)
CMake Error at Utilities/cmcurl/CMakeLists.txt:485 (message):
  Could not find OpenSSL.  Install an OpenSSL development package or
  configure CMake with -DCMAKE_USE_OPENSSL=OFF to build without OpenSSL.

 

3.

  看到兩篇文章:

  a.https://blog.csdn.net/rubikchen/article/details/104957111?utm_medium=distribute.pc_relevant.none-task-blog-baidulandingword-2&spm=1001.2101.3001.4242

  b.https://blog.csdn.net/zhou_zhao_xu/article/details/105310579

  三個系統上安裝響應的libssl后在重新進行上面的第二步操作;

  我是CentOS7,所以使用:yum -y install openssl-devel安裝,openssl和openssl-devel的區別簡單來說就是devel這個是開發需要的頭文件等東西。

 

4.

  make && make install

 

5.稍微處理

  

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM