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安装,真心方便。

  • 相关阅读:
    数据库的隔离
    Maven的工程类型有哪些
    Redis中的常用命令哪些
    flume--exec源
    hadoop基本组件原理小总结
    Idea 激活
    hadoop中遇到的各种错误记录
    MySQL认知
    Python爬虫之post请求
    Python爬取ithome的一所有新闻标题评论数及其他一些信息并存入Excel中。
  • 原文地址:https://www.cnblogs.com/gattaca/p/4109259.html
Copyright © 2011-2022 走看看