狮子上的Doxygen和Graphviz

时间:2012-01-08 11:58:32

标签: path doxygen graphviz

我已经在我的mac上成功安装了Doxygen和GraphViz(运行Lion OS),但是当我使用graphViz运行doxygen时,我收到以下错误消息:

1) sh: dot: command not found
2) Problems running dot: exit code=127, command='dot', arguments='"/Users/../xxx.dot" -Tpdf -o
3) error: problems opening map file /Users/.../xxx_graph.map for inclusion in the docs!
If you installed Graphviz/dot after a previous failing run, 
try deleting the output directory and rerun doxygen.

我的Graphviz / dot路径一定是个问题,但我不知道如何解决它。

我已经使用MacPorts安装了Graphviz,但我仍然收到相同的错误消息。

我该怎么做才能解决这个问题?提前谢谢!

3 个答案:

答案 0 :(得分:8)

感谢@cyfdecyf和@fkerber的回答。根据你的回答,我可以从控制台运行dot programm,但我无法使用它来运行doxygen。我不知道,但是必须在doxygen用户界面中手动给出点程序的路径。要做到这一点,必须单击Expert -> dot (under topics menu) ->并在DOT_PATH下给出路径,在我的例子中它是/usr/local/bin

谢谢你们。

答案 1 :(得分:4)

尝试以下方法:

export PATH=/opt/local/bin:/opt/local/sbin:$PATH

在命令行上发出此命令,看看它是否解决了问题。您可能还需要在~/.profile

中添加它

如果您需要更多信息,请参阅MacPorts' doc

答案 2 :(得分:3)

我认为你已经在你的PATH变量中放置了你的点可执行文件的路径,以便在有人只是在控制台中输入点时可以找到它。

也许此页面可以帮助您: http://www.sweeting.org/mark/blog/2008/05/26/mac-os-x-tip-setting-path-environment-variables

相关问题