bash 如何修复错误并顺利安装xmgrace?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/28975219/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to fix error and install xmgrace smoothly?
提问by exhausend
I tried to install xmgrace via brew with the command brew install grace
, but then following error occurs:
我尝试使用命令通过 brew 安装 xmgrace brew install grace
,但随后出现以下错误:
Error: No available formula for grace
Searching formulae...
Searching taps...
homebrew/x11/grace
I operate in the bash shell on a Mac OSX Yosemite (V10.10.2).
我在 Mac OSX Yosemite (V10.10.2) 上的 bash shell 中操作。
How can I fix the error?
我该如何修复错误?
回答by Charles Butler
First: Install Xcode (search the Apple app store and install from there, then at the command prompt type: xcode-select --install) Second: install open motif (at the terminal prompt, type: sudo port install openmotif) Third: Install xmgrace (at the terminal prompt, type: sudo port install grace) Fourth: Enjoy :)
第一:安装 Xcode(搜索 Apple 应用商店并从那里安装,然后在命令提示符下键入:xcode-select --install) 第二:安装 openmotif(在终端提示符下,键入:sudo port install openmotif) 第三:安装xmgrace(在终端提示下,输入:sudo port install grace)第四:享受 :)
回答by Juan A. Navarro
At some point since early 2015 now you have to do:
自 2015 年初以来的某个时候,您现在必须执行以下操作:
$ brew tap homebrew/x11
$ brew install grace
Full set of instructions to install xmgrace on OSX.
在 OSX上安装 xmgrace 的全套说明。