zoukankan      html  css  js  c++  java
  • file download hash mismatch

      在linux中使用cmake时,遇到了"file download hash mismatch",同时status显示"unsupported protocol"。

    google发现问题出在cmake,如同一位网友所言:Based on the error message "unsupported protocol", you probably build CMake without OpenSSL support。

    那么解决方案就是build CMake with OpenSSL support, 方法举例:

    1 cd cmake-2.8.12.2
    2 ./bootstrap --prefix=$HOME/.local -- -DCMAKE_USE_OPENSSL=ON
    3 make
    4 make install

    原文链接:https://github.com/neovim/neovim/issues/1469

      如果使用上述方法过程中又出现如下错误:

    CMake Error at Modules/FindPackageHandleStandardArgs.cmake:136 (message):
      Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the
      system variable OPENSSL_ROOT_DIR (missing: OPENSSL_LIBRARIES
      OPENSSL_INCLUDE_DIR)

    怎么解决?我的情况是这样的:首先检查系统是否安装了openssl,发现已经安装,然后yum install openssl-devel, 问题消失。

      However,问题并没有结束,在后续的操作中依旧会出现其他莫名其妙的问题。与别人讨论,发现问题根源在于我是使用源码安装的cmake,后来使用yum install cmake,啥问题也没有。

    这篇文章写的很无章法,只是告诉大家:源码安装真心不好使,不仅卸载麻烦,而且还会出些奇怪的问题,推荐大家多使用yum或者apt-get安装,真心方便。

  • 相关阅读:
    C-5 猜数字游戏
    J-8 面向对象
    C-4 一个标准的学生类的代码及测试
    J-7 面向对象
    C-3 this的使用
    J-6 面向对象
    ArcEngine关于单位转换示例
    Arcglobe三维信息系统开发常见问题
    安装arcgis server 10.2遇到的问题总结
    使用Arcglobe 10与3dmax建立三维城市
  • 原文地址:https://www.cnblogs.com/gattaca/p/4109259.html
Copyright © 2011-2022 走看看