0

每当我在 OS X 上使用 Homebrew 安装 Gnuplot 时都会遇到问题。现在,我可以这样做:

brew install gnuplot

它有效。但是,之后运行 Octave 仍然告诉我,我的“终端设置为‘未知’”是否 octaverc 是:

setenv("GNUTERM","X11")

或者

setenv("GNUTERM","qt")

我试着做brew install gnuplot --with-x11

它不起作用。事实上,这就是它告诉我的。

Last 15 lines from /Users/MyUsername/Library/Logs/Homebrew/gnuplot/01.configure:
/usr/local/Library/ENV/4.3/sed: line 7: exec: /usr/bin/sed: cannot execute: No such file or directory
/usr/local/Library/ENV/4.3/sed: line 7: /usr/bin/sed: No such file or directory
/usr/local/Library/ENV/4.3/sed: line 7: exec: /usr/bin/sed: cannot execute: No such file or directory
checking whether the C compiler works... /usr/local/Library/ENV/4.3/sed: line 7: /usr/bin/sed: No such file or directory
/usr/local/Library/ENV/4.3/sed: line 7: exec: /usr/bin/sed: cannot execute: No such file or directory
no
/usr/local/Library/ENV/4.3/sed: line 7: /usr/bin/sed: No such file or directory
/usr/local/Library/ENV/4.3/sed: line 7: exec: /usr/bin/sed: cannot execute: No such file or directory
configure: error: in `/private/tmp/gnuplot20151008-1604-naulq5/gnuplot-5.0.1':
configure: error: C compiler cannot create executables
See `config.log' for more details
/usr/local/Library/ENV/4.3/sed: line 7: /usr/bin/sed: No such file or directory
/usr/local/Library/ENV/4.3/sed: line 7: exec: /usr/bin/sed: cannot execute: No such file or directory
/usr/local/Library/ENV/4.3/sed: line 7: /usr/bin/sed: No such file or directory
/usr/local/Library/ENV/4.3/sed: line 7: exec: /usr/bin/sed: cannot execute: No such file or directory

我完全不知道这意味着什么或如何解决它。

如果您需要更多信息,我会给您,但我不知道我还能提供什么

编辑 1:根据其中一条评论,我的 /usr/bin/sed 不存在(我猜在我们使用它时不是可执行文件)。我该如何让这个东西存在并成为可执行文件?好的,所以我的 sed 目录存在,但它在/usr/local/bin/sed而不是/usr/bin/sed. 我该如何解决这个问题或让 Homebrew 看起来在不同的地方?

编辑 2:我跑了brew doctor,它告诉我有一些未酿造的 dylib、头文件和静态库。我不知道如何解决这个问题。

4

0 回答 0