如何在Mac上打开点 [英] How to open dot on Mac

查看:159
本文介绍了如何在Mac上打开点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首先,我是MacOS的新手,我想要的是能够看到llc -view-dag-combine1-dags sum.ll的输出.在Mac上, llc 会在/tmp目录中生成点,然后尝试打开App来显示点文件. 我已经尝试过 Graphviz ,但是它不起作用(程序崩溃).我想尝试其他方法,例如 xdot .我通过brew install xdot安装了它,但是不知道如何让MacOS使用我刚安装的xdot打开点文件.

First of all, I am new to MacOS, and what I want is to be able to see the output of llc -view-dag-combine1-dags sum.ll. On Mac, llc will generate dot in /tmp directory, and try open App to show the dot file. I have tried Graphviz, but it doesn't work (the program crash). I would like try something else, like xdot for example. I install it by brew install xdot, but don't know how to let the MacOS use the xdot I just installed to open the dot file.

或者还有其他更好的工具来查看点文件吗?我想让事情尽可能简单.

Or any other better tool to view the dot file? I would like to keep thing as simple as possible.

推荐答案

自制软件具有 MacPorts 安装

Homebrew has graphviz which is command line only. I would suggest using MacPorts to install graphviz-gui, that will save us from a lot of trouble.

这篇关于如何在Mac上打开点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆