码迷,mamicode.com
首页 > 其他好文 > 详细

file download hash mismatch

时间:2014-11-19 23:39:32      阅读:595      评论:0      收藏:0      [点我收藏+]

标签:style   blog   http   ar   color   使用   sp   on   div   

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

file download hash mismatch

标签:style   blog   http   ar   color   使用   sp   on   div   

原文地址:http://www.cnblogs.com/gattaca/p/4109259.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!