ZBLOG

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)

The error message you received indicates that CMake could not find the OpenSSL library and include directories. To resolve this issue, you can try setting the path to the OpenSSL root folder in the system variable OPENSSL_ROOT_DIR.

Here’s how you can do it:

  1. Locate the OpenSSL installation folder on your system.
  2. Set the OPENSSL_ROOT_DIR environment variable to the path of the OpenSSL root folder.

If you’re using Windows:

  • Open Control Panel -> System -> Advanced system settings.
  • Click on “Environment Variables”.
  • Under “System variables”, click “New” and add a variable named OPENSSL_ROOT_DIR with the value set to your OpenSSL installation path.

If you’re using Linux or macOS:

  • Open a terminal window.
  • Run the following command to export the OPENSSL_ROOT_DIR variable:
    
    export OPENSSL_ROOT_DIR=/path/to/openssl
    
    Replace /path/to/openssl with your actual OpenSSL installation path.

After setting the OPENSSL_ROOT_DIR, try running CMake again and see if it can find OpenSSL successfully.


内容由零声教学AI助手提供,问题来源于学员提问

本站部分文章来源于网络,版权归原作者所有,如有侵权请联系站长删除。
转载请注明出处:https://golang.0voice.com/?id=12714

分享:
扫描分享到社交APP
上一篇
下一篇
发表列表
游客 游客
此处应有掌声~
评论列表

还没有评论,快来说点什么吧~

联系我们

在线咨询: 点击这里给我发消息

微信号:3007537140

上班时间: 10:30-22:30

关注我们
x

注册

已经有帐号?