在Mac上装Octave时遇到一个问题,哪位大神能帮忙解决一下?感激不尽!

xuewenyuan 发布于 2014年08月24日 | 更新于 2014年08月25日
无人欣赏。
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.
共21条回复
tinyfool 回复于 2014年08月24日

按照这个错误,epstool的hash对不上,这是自动下载的,还是你之前人工下载的?

如果是你人工下载的,可能你下载的和默认的版本不一致,所以就有这个结果?

xuewenyuan 回复于 2014年08月24日

1楼 @tinyfool 谢谢回复:),这是之前敲“ brew install octave --without-docs”这条命令时下载的,是自动下载的,手动下载一个epstool-3.0试试?

tinyfool 回复于 2014年08月24日

2楼 @xuewenyuan 可以考虑,不过你需要解决hash问题,我也不太会来着

xuewenyuan 回复于 2014年08月24日

3楼 @tinyfool 哦,谢谢!:)

sumnous 回复于 2014年08月24日

可能是下载冲突,尝试sudo rm /Library/Caches/Homebrew/epstool-3.08.tar.gz,然后可以参考我写的安装指南http://sumnous.github.io/blog/2014/07/13/install_octave/,我也是折腾了一、两天才装好。。。

xuewenyuan 回复于 2014年08月24日

5楼 @sumnous :)thank you!

xuewenyuan 回复于 2014年08月24日

5楼 @sumnous 姐姐,重装了一遍octave还是这个问题啊,是不是esptool.rb的问题?有其他下载的地址可以替换吗?愁啊,这一按就是一下午……

sumnous 回复于 2014年08月24日

7楼 @xuewenyuan brew update,然后brew doctor,这两步有warning或者error吗?应该是homebrew的formula没有更新,如果更新好了应该没有问题,慢慢来,我也安了两天。。。

xuewenyuan 回复于 2014年08月24日

8楼 @sumnous 嗯,brew update之后显示了“Already up-to-date.”brew doctor之后显示了“Your system is ready to brew.”

xuewenyuan 回复于 2014年08月24日

8楼 @sumnous 姐姐,你说我把esptool.rb文件里的SH1的值改了呢?

sumnous 回复于 2014年08月24日

10楼 @xuewenyuan 可以试一下,一个类似的问题参考一下http://apple.stackexchange.com/questions/57172/homebrew-sha1-mismatch-even-after-update

xuewenyuan 回复于 2014年08月24日

11楼 @sumnous 我在网上自己下载了一个放进esptool放了进去,问题解决了!继续解决其他安装问题。谢谢姐姐!

xuewenyuan 回复于 2014年08月24日

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.

sumnous 回复于 2014年08月24日

13楼 @xuewenyuan 建议删除然后重装一遍homebrew试试,ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"

sumnous 回复于 2014年08月24日

13楼 @xuewenyuan https://github.com/Homebrew/homebrew/wiki/FAQ这里有如何uninstall homebrew的方法,我觉得大部分你的问题应该可以通过重新安装homebrew解决,装完homebrew然后再按照我博客里写得一步一步来装octave,有问题可以再贴命令和完整的错误log上来

xuewenyuan 回复于 2014年08月24日

15楼 @sumnous 好的,我再试试,谢谢姐姐!:)

xuewenyuan 回复于 2014年08月25日

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
sumnous 回复于 2014年08月25日

17楼 @xuewenyuan 搜了一下sudo chown -R $USER /usr/local/share/man/de(Take ownership of it and everything in it),然后再brew doctor试试

xuewenyuan 回复于 2014年08月25日

18楼 @sumnous 哇,姐姐你回复的真快,谢谢,谢谢

xuewenyuan 回复于 2014年08月25日

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.

sumnous 回复于 2014年08月25日

20楼 @xuewenyuan brew install ghostscript,看是否安装,如果已经装好了但还出现这个问题,那就卸载brew uninstall ghostscript,再安装brew install ghostscript,一切都靠brew,一般brew doctorbrew update && brew upgrade都没问题了那就应该没什么问题,如果还遇到中断或者不成功,可以手动brew install '依赖',然后再继续brew install octave

本帖有21个回复,因为您没有注册或者登录本站,所以,只能看到本帖的10条回复。如果想看到全部回复,请注册或者登录本站。

登录 或者 注册
相关帖子

[顶 楼]
|
|
[底 楼]
|
|
[首 页]