【发布时间】:2011-11-21 18:16:34
【问题描述】:
如何在 Mac Os X(10.6.8) 上的 gnuplot 中启用 tikz 终端?
我有工作 tikz 的乳胶。现在我从http://www.lua.org/ 安装了lua 并下载了gnuplot4.4.4,解压并运行
$ ./configure
$ sudo make
$ sudo make install
现在可以设置tikz终端了,但是还是有问题
gnuplot> set terminal tikz
Terminal type set to 'tikz'
Options are 'color dashed'
gnuplot> plot sin(x)
\begin{tikzpicture}[gnuplot]
/usr/local/share/gnuplot/4.4/lua/gnuplot-tikz.lua:252: bad argument #7 to 'format' (string expected, got no value)
stack
gnuplot>
我也尝试从https://github.com/mxcl/homebrew/wiki/installation 安装自制软件,尽管我没有进行 Java 开发人员更新 - 有必要吗? 现在 'brew install gnuplot' 给出了 glib 依赖的问题
hpek@melda:~$ brew install glib
/usr/local/Library/Homebrew/global.rb:43: warning: Insecure world writable dir /usr/local/bin in PATH, mode 040777
/usr/local/bin/brew:74: warning: Insecure world writable dir /usr/local/bin in PATH, mode 040777
/usr/local/Library/Homebrew/build.rb:7: warning: Insecure world writable dir /usr/local/bin in PATH, mode 040777
==> Downloading ftp://ftp.gnome.org/pub/gnome/sources/glib/2.28/glib-2.28.8.tar.bz2
File already downloaded in /Users/hpek/Library/Caches/Homebrew
==> Downloading patches
curl: (22) The requested URL returned error: 404
######################################################################## 100.0%
######################################################################## 100.0%
######################################################################## 100.0%
######################################################################## 100.0%
######################################################################## 100.0%
==> Patching
/usr/bin/patch: **** Can't open patch file 001-homebrew.diff : No such file or directory
Error: Failure while executing: /usr/bin/patch -f -p0 -i 001-homebrew.diff
hpek@melda:~$
当我手动安装 gnuplot 时,我想自己知道并安装所有这些依赖项吗?
【问题讨论】:
-
你的系统上安装了latex和tikz吗?你检查了
./configure的输出,看看它是否解释了为什么它不能启用 tikz 终端? -
是的,我有 MacTeX 和工作 TikZ。我可以看到 config.log 中关于 TikZ 的这一行。
-
你试过greping日志中的lua吗?我认为您需要安装 lua 及其开发头文件。
-
我认为你是对的 - 有 16 行带有 lua 一词,例如
ld: library not found for -llua。什么是 lua,我从哪里得到它? -
我现在已经完全重写了我的问题以反映我的进步。