在OSX上安装gnuplot 5.0.1 [英] Install gnuplot 5.0.1 on OSX
问题描述
I downloaded the source files for gnuplot 5.0.1 (gnuplot-5.0.1.tar.gz) from the source forge page. I also installed the Command Line Tools on my OS X 10.7.5 so that I have gcc
and make
in the /usr/bin
folder.
我遵循了压缩包的INSTALL.gnu
文件中的安装说明:我运行了configure
文件并键入了make
,make check
,make install
和make clean
.使用这些命令,gnuplot
位于/usr/local/bin/
中.
I followed the installation instructions found in INSTALL.gnu
file of the tarball: I ran the configure
file and typed make
, make check
, make install
, and make clean
. With these commands, gnuplot
is located in /usr/local/bin/
.
make check
命令在测试许多gnuplot脚本之前会在shell中输出很多行.我实际上可以可视化这些图,并且认为很好,它可以工作".因此,我打开了一个新的终端外壳,并键入gnuplot
开始使用它(终端自动设置为qt).一个简单的plot sin(x)
失败. Gnuplot返回以下消息:
The make check
command outputs a lot of lines in the shell before testing many gnuplot scripts. I could actually visualize the plots and I thought "great, it works". So I opened a new terminal shell and typed gnuplot
to begin using it (the terminal is automatically set to qt). A simple plot sin(x)
fails. Gnuplot returns these messages :
Could not start gnuplot_qt with path "/usr/local/libexec/gnuplot/5.0/gnuplot_qt"
Could not start gnuplot_qt with path "/usr/local/libexec/gnuplot/5.0/gnuplot_qt"
Could not connect to gnuplot_qt "" . Starting a new one
Could not start gnuplot_qt with path "/usr/local/libexec/gnuplot/5.0/gnuplot_qt"
Warning: slow font initialization . . . . . . . . .
Warning: slow font initialization . . . . . . . . .
Warning: slow font initialization . . . . . . . . .
Warning: slow font initialization . . . . . . . . .
…
如果我不关闭终端,警告消息将无限显示.
The warning message keeps appearing infinitely if I don't close the terminal.
推荐答案
为了最大程度地减少工作量,我倾向于使用程序包管理器来尽可能多地安装命令行工具.
To minimise my effort, I tend to use package managers to install command line tools as much as possible.
对于OS X,我建议使用 homebrew .使用自制程序安装gnuplot就像键入一样简单:
brew install gnuplot
For OS X I recommend using homebrew. Installing gnuplot with homebrew is as easy as typing:
brew install gnuplot
这篇关于在OSX上安装gnuplot 5.0.1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!