Homebrew安装中的gnuplot参数

8

在使用 Homebrew 在我的 Mac 上安装 gnuplot 后,我注意到它向 configure 文件传递了许多参数。更确切地说,这是我在终端上看到的输出。

$ brew install gnuplot
==> Downloading http://downloads.sourceforge.net/project/gnuplot/gnuplot/4.6.3/gnuplot-4.6.3.tar.gz
Already downloaded: /Library/Caches/Homebrew/gnuplot-4.6.3.tar.gz
==> ./configure --prefix=/usr/local/Cellar/gnuplot/4.6.3 --with-readline=/usr/local/opt/readline --with-gd=/usr/local/opt/gd --disable-wxwidgets --without-cairo --without-latex --without-tutorial

然后我明白了为什么我在我的Mac上的版本比我在Ubuntu上拥有的版本要差。因此,在浏览网络时,我发现为了能够使用wxt终端,我需要在安装时添加--wx标志。此外,建议还使用--pdf和--with-x。通过可视化解析我在屏幕上看到的输出(如上所述),我想出了其他标志,例如--cairo和--tutorial,并得到了以下输出。

$ brew install gnuplot --wx --cairo --pdf --with-x --tutorial
==> Downloading http://downloads.sourceforge.net/project/gnuplot/gnuplot/4.6.3/gnuplot-4.6.3.tar.gz
Already downloaded: /Library/Caches/Homebrew/gnuplot-4.6.3.tar.gz
==> ./configure --prefix=/usr/local/Cellar/gnuplot/4.6.3 --with-readline=/usr/local/opt/readline --with-pdf=/usr/local/opt/pdflib-lite --with-gd=/usr/local/opt/gd --without-latex --without-tutorial
==> make
==> make install
�  /usr/local/Cellar/gnuplot/4.6.3: 49 files, 5.4M, built in 37 seconds

现在我的问题是:我应该在哪里找到一个可接受的参数列表,用于像gnupot这样的Homebrew安装?此外,不知何故,它没有接受我的--tutorial :(
1个回答

21
您可以运行brew options <formula>以获取给定配方的选项列表。例如,对于gnuplot:
$ brew options gnuplot

3
因此:运行命令“brew install gnuplot --with-cairo”即可。 - ckg

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接