Lion 上的 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,但仍然收到相同的错误消息。
我可以做什么来解决这个问题?提前致谢!
I have succesfully installed Doxygen and GraphViz on my mac (running Lion OS), but when I run doxygen with graphViz I get following error messages:
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.
It must be a problem with my Graphviz/dot paths, but I dont know how to solve it.
I have already installed Graphviz using MacPorts but I still get the same error messages.
What could I do to solve this problem? Thanks in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
感谢@cyfdecyf 和@fkerber 的回答。根据您的回答,我可以从控制台运行点程序,但我无法用它运行 doxygen。我不知道,但必须在 doxygen 用户界面中手动给出点程序的路径。要执行此操作,必须单击
Expert ->点(在主题菜单下)->
并给出 DOT_PATH 下的路径,在我的例子中是/usr/local/bin
。谢谢你们。
Thanks @cyfdecyf and @fkerber for your answers. WIth your answer I could be able to run the dot programm from the console, but I was not able to run doxygen with it. I did not know, but one has to manually give in the path of the dot program in the doxygen user interface. To do this one have to click on
Expert -> dot (under topics menu) ->
and give the path under DOT_PATH, in my case it was/usr/local/bin
.Thanks guys.
尝试以下操作:
在命令行上发出此命令,看看是否可以解决问题。您可能还需要将其添加到
~/.profile
中,请参阅如果您需要更多信息,请参阅 MacPorts 的文档。
Try the following:
Issue this on the command line and see if it solve the problem. You may also need to add it in
~/.profile
Refer to MacPorts' doc if you need more information.
我认为您已将 dot 可执行文件的路径放入 PATH 变量中,以便如果有人在控制台中输入 dot 就可以找到它。
也许此页面可以帮助您:
http:// /www.sweeting.org/mark/blog/2008/05/26/mac-os-x-tip-setting-path-environment-variables
I think you have put the path to your dot executable in your PATH variable so that it can be found if someone is just typing dot in the console.
Perhaps this page can help you:
http://www.sweeting.org/mark/blog/2008/05/26/mac-os-x-tip-setting-path-environment-variables