Xcode 当我用自制软件安装Gnuplot以使用八度音阶时,我总是遇到一个错误

Xcode 当我用自制软件安装Gnuplot以使用八度音阶时,我总是遇到一个错误,xcode,gnuplot,octave,x11,xquartz,Xcode,Gnuplot,Octave,X11,Xquartz,每当我在OS X上使用自制软件安装Gnuplot时,我都会遇到问题。现在,我能够做到: brew install gnuplot 它是有效的。但是,之后运行Octave仍然告诉我,我的终端设置为“未知”,octaverc是否: setenv("GNUTERM","X11") 或 我尝试使用-x11进行brew安装gnuplot 但它不起作用。事实上,这就是它告诉我的 Last 15 lines from /Users/MyUsername/Library/Logs/Homebrew/gnup

每当我在OS X上使用自制软件安装Gnuplot时,我都会遇到问题。现在,我能够做到:

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

setenv("GNUTERM","X11")

我尝试使用-x11进行brew安装gnuplot

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

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:根据其中一条评论,my/usr/bin/sed不存在,我猜在我们使用它时,它不是一个可执行文件。我如何让这个东西存在并成为一个可执行文件?好的,我的sed目录存在,但它在/usr/local/bin/sed中,而不是/usr/bin/sed中。我该如何解决这个问题,或者让自制软件看起来与众不同


编辑2:我运行过brew doctor,它告诉我我有一些未绑定的动态库、头文件和静态库。我不知道如何解决这个问题。

a我想你是在XQuartz终端上运行它,而不是在普通的Mac终端上运行?b如果是的话,你试过在新的终端上运行吗?我注意到有些程序某些变量在旧终端中无法更新。我尝试在两个终端中运行。两个都不起作用。您是否检查了ls-l/usr/bin/sed以确认它存在,并标记为可执行?祝你好运,它不存在。我能做些什么来修复这个问题?你可以考虑运行BREW医生。过去我已经解决了这方面的问题。
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