如何安装 GraphViz 并在 Kodingen 上使用它?
我想使用 GraphViz 生成图形图片并在网络上查看它们。 GraphViz 在我的计算机上运行良好,但如何在 Linux 服务器上使用它?
目前,我使用 Kodingen.com 来运行我的网站。是否可以在网络上使用 GraphViz 并从 .dot 文件生成图片?安装它的程序是怎样的?显然要使用它?
例如在我的计算机(Windows)上我使用:
dot.exe -Tpng "input.dot" -o "output.png"
I would like to use GraphViz to generate graph pictures and view them on web. GraphViz work fine on my computer but how can I use it on a linux server?
At the moment, I use Kodingen.com to run my site. Is it possible to use GraphViz on the web and generate pictures from .dot files? What is the procedure to install it? And obviously to use it?
For exemple on my computer (windows) I use:
dot.exe -Tpng "input.dot" -o "output.png"
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
看起来您会像 Kodingen 上的任何其他软件包一样执行此操作。使用左侧的工具栏:
但是,当我尝试安装它时,它失败了。这似乎是因为 Ohloh 没有下载页面。
根据您的 Linux 风格(Ubuntu、RedHat),您应该能够通过 包管理器。例如,在 Ubuntu/Debian 上,您应该能够从 shell 输入 sudo apt-get install graphviz 并安装它。
It seems like you would do this like any other package on Kodingen. Using the toolbar on the left:
However when I tried to install it, it failed. This seems to be because the Ohloh doesn't have a download page for it.
Depending on your flavour of Linux (Ubuntu, RedHat), you should be able to install it via the package manager. So for instance, on Ubuntu/Debian, you should be able to enter
sudo apt-get install graphviz
from the shell and have it be installed.为了回答这个问题,我链接 这个从我问的另一个问题中回答。
Just to make this question answered, I link this answer from another question I ask.