localhost:~ setsufumimoto$ brew install octave --without-docs
==> Installing octave dependency: epstool
==> Downloading http://mirror.cs.wisc.edu/pub/mirrors/ghost/ghostgum/epstool-3.0
Already downloaded: /Library/Caches/Homebrew/epstool-3.08.tar.gz
Error: SHA1 mismatch
Expected: dc495934f06d3ea8b3209e8b02ea96c66c34f614
Actual: 83cfacecf75ae85aa4b4cba34cfeac6284b0e4d7
Archive: /Library/Caches/Homebrew/epstool-3.08.tar.gz
To retry an incomplete download, remove the file above.
按照这个错误,epstool的hash对不上,这是自动下载的,还是你之前人工下载的?
如果是你人工下载的,可能你下载的和默认的版本不一致,所以就有这个结果?
可能是下载冲突,尝试sudo rm /Library/Caches/Homebrew/epstool-3.08.tar.gz
,然后可以参考我写的安装指南http://sumnous.github.io/blog/2014/07/13/install_octave/,我也是折腾了一、两天才装好。。。
7楼 @xuewenyuan brew update
,然后brew doctor
,这两步有warning或者error吗?应该是homebrew的formula没有更新,如果更新好了应该没有问题,慢慢来,我也安了两天。。。
10楼 @xuewenyuan 可以试一下,一个类似的问题参考一下http://apple.stackexchange.com/questions/57172/homebrew-sha1-mismatch-even-after-update
11楼 @sumnous 姐姐,能再问你个问题吗?下边这个Warning提到的编译器怎么配置啊?
==> Building with an alternative Fortran compiler
This is unsupported.
Warning: No Fortran optimization information was provided. You may want to consider
setting FCFLAGS and FFLAGS or pass the --default-fortran-flags
option to
brew install
if your compiler is compatible with GCC.
If you like the default optimization level of your compiler, ignore this warning.
13楼 @xuewenyuan 建议删除然后重装一遍homebrew试试,ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
13楼 @xuewenyuan https://github.com/Homebrew/homebrew/wiki/FAQ这里有如何uninstall homebrew的方法,我觉得大部分你的问题应该可以通过重新安装homebrew解决,装完homebrew然后再按照我博客里写得一步一步来装octave,有问题可以再贴命令和完整的错误log上来
15楼 @sumnous 姐姐,我删除后重新安装Homebrew,然后brew doctor
,出现这样一个警告,该怎么改啊?
Warning: Some directories in /usr/local/share/man aren't writable.
This can happen if you "sudo make install" software that isn't managed by Homebrew. If a brew tries to add locale information to one of these directories, then the install will fail during the link step.
You should probably chown
them:
/usr/local/share/man/de
/usr/local/share/man/de/man1
17楼 @xuewenyuan 搜了一下sudo chown -R $USER /usr/local/share/man/de
(Take ownership of it and everything in it),然后再brew doctor
试试
18楼 @sumnous 姐姐,按octave时遇到个这问题,您再帮我看一下吧……
==> Installing octave dependency: pstoedit
==> Downloading https://downloads.sourceforge.net/project/pstoedit/pstoedit/3.62
Already downloaded: /Library/Caches/Homebrew/pstoedit-3.62.tar.gz
==> ./configure --prefix=/usr/local/Cellar/pstoedit/3.62_1
checking dynamic linker characteristics... darwin13.3.0 dyld
checking how to hardcode library paths into programs... immediate
checking whether make sets $(MAKE)... (cached) yes
checking for gs... no
configure: error: ** Cannot find ghostscript. If it is already installed, Check PATH.
20楼 @xuewenyuan brew install ghostscript
,看是否安装,如果已经装好了但还出现这个问题,那就卸载brew uninstall ghostscript
,再安装brew install ghostscript
,一切都靠brew,一般brew doctor
,brew update && brew upgrade
都没问题了那就应该没什么问题,如果还遇到中断或者不成功,可以手动brew install '依赖',然后再继续brew install octave