遇到问题:html
(1) Mac安装OpenCV下载ippicv_macosx_20141027.tgz失败解决方案 git
先附上当时的报错信息:github
-- ICV: Downloading ippicv_macosx_20141027.tgz... CMake Error at 3rdparty/ippicv/downloader.cmake:71 (file): file DOWNLOAD HASH mismatch for file: [/Users/zhaozhaokaliang/opencv-3.0.0/3rdparty/ippicv/downloads/macosx-9662fe0694a67e59491a0dcc82fa26e0/ippicv_macosx_20141027.tgz] expected hash: [9662fe0694a67e59491a0dcc82fa26e0] actual hash: [14cb99aa35c53adfb648ca84e9790a82] status: [56;"Failure when receiving data from the peer"] ................
简单来讲就是Cmake在下载ippicv_macosx_20141027.tgz这个文件的时候遇到了错误,致使下载的文件Hash值和预期的Hash值不一样,因此须要咱们本身下载ippicv_macosx_20141027.tgz这个文件而后覆盖过去。macos
下载地址:
http://download.csdn.net/detail/alanzjl/8961695浏览器
你们若是使用Safari下载的话要仔细看看后缀名是否是tgz,由于系统可能会自动解压成tar,这样在从新封装成tgz的话hash值会改变,仍是成功不了。因此能够换个浏览器下载,或者进入终端,使用wget指令下载ruby
wget http://www.mirrorservice.org/sites/dl.sourceforge.net/pub/sourceforge/o/op/opencvlibrary/3rdparty/ippicv/ippicv_macosx_20141027.tgz
把下载下来的文件覆盖到报错信息所提到的目录,每一个人目录可能不一样,好比个人就是 /Users/zhaozhaokaliang/opencv-3.0.0/3rdparty/ippicv/downloads/macosx-9662fe0694a67e59491a0dcc82fa26e0/ippicv_macosx_20141027.tgz
markdown
版权声明:博主原创文章转载请注明出处。 欢迎访问我的主页:alanzjl.sinaapp.comapp
(2)新mac里没有wget,那怎么办?那得安啊。怎么安?curl
因为软件可能存在依赖关系,为了不没必要要的麻烦,使用homebrew更好。网站
那homebrew也没有怎么办?那也得安啊。好吧,那来吧。
1:关于homebrew下载地址
homebrew下载地址网上版本不少:我用了几个都是显示 404 bad request
如图:均没法如今
有一个网址会给出最新的 安装地址: the URL is: http://brew.sh/index_zh-cn.html
在网站的最下面给出了经过terminal下载 homebrew的最新的下载地址:
我下载的最新的路径是:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
而后再安装wget 就简单了。
brew install wget