【发布时间】:2015-12-25 02:06:33
【问题描述】:
我正在尝试使用 luagraph,它是与 graphviz 库的绑定: http://luagraph.luaforge.net/index.html
要安装,我在 Mac OS X 中使用 luarocks。以下命令在 bash 中执行:
luarocks install luagraph
输出如下:
正在安装https://luarocks.org/luagraph-1.0.4-1.src.rock... 使用 https://luarocks.org/luagraph-1.0.4-1.src.rock...切换到“构建” 模式
错误:找不到预期的文件 graphviz/graph.h,或 graphviz/graph.h 用于 GRAPHVIZ——你可能需要安装 GRAPHVIZ 您的系统和/或将 GRAPHVIZ_DIR 或 GRAPHVIZ_INCDIR 传递给 luarocks 命令。示例: luarocks 安装 luagraph GRAPHVIZ_DIR=/usr/local
我已经使用自制软件安装了 graphviz,但我不知道如何正确传递 GRAPHVIZ_DIR 或 GRAPHVIZ_INCDIR。
如何安装 luagraph?
【问题讨论】:
-
错误输出显示了如何将这些变量传递给 luarocks。你试过了吗? (或者问题是你应该传递的值是什么?)
-
我在 ubuntu 上遇到了同样的问题。
locate graph.h在系统中找不到它想要的graphviz/graph.h文件,即使你安装了graphviz-dev包。
标签: lua installation luarocks