在Mavericks上安装gnuplot

3

我正在尝试在将系统升级到Mavericks后重新安装gnuplot(因为在尝试启动它时,它一直抛出错误)。

我使用homebrew来完成这个过程,因为系统告诉我要卸载Macports/fink。

brew install gnuplot

在进行“make”过程中出现了卡顿。

我尝试按照网上找到的一些指南,在安装前执行以下操作:

sudo chmod 777 /usr/local/include/
sudo chmod 777 /usr/local/lib

但结果总是这样:
==> Installing dependencies for gnuplot: pkg-config, readline, libpng, jpeg, gd, lua
==> Installing gnuplot dependency: pkg-config
==> Downloading http://pkgconfig.freedesktop.org/releases/pkg-config-0.28.tar.gz
Already downloaded: /Library/Caches/Homebrew/pkg-config-0.28.tar.gz
==> ./configure --prefix=/usr/local/Cellar/pkg-config/0.28 --disable-host-tool --with-internal-glib --with-pc-path=/usr/local/lib/pkgconfig:/usr/local/share/pkgconfig:/usr/lib/pkgconfig
==> make

有什么建议吗?


运行 brew doctor 并按照医生的指示去做! - Mark Setchell
3个回答

2
我今天遇到了同样的问题,因为LaTeX终端需要(已过时的)subfigure包而导致挂起。最简单的解决方法是在texmf目录中安装这个LaTeX包。对于MacTeX来说,它位于~/Library/texmf。之后,您可以使用brew安装gnuplot。
具体步骤如下:

2
尝试运行brew install -v以获取构建输出。

0

我发现在Mac OS X上安装gnuplot并使其与latex通信非常繁琐。如果你不介意使用较旧版本的gnuplot,可以在sourceforgegnu-octave程序的extra子目录中找到安装程序。但是这个方便的安装程序已不再与gnu-octave一起打包了。如果你想要最新版本的gnuplot,我在这里详细说明了我遵循的步骤(我的回答是扩展了Alan Munn的优秀答案):

https://tex.stackexchange.com/questions/71160/how-to-use-gnu-plot-to-plot-diagrams-in-texshop?lq=1


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