Graphviz安装Ubuntu 14.04 [英] Graphviz installation Ubuntu 14.04
问题描述
我正在尝试使用 JDD项目创建一个点文件。它需要安装Graphviz。我尝试使用控制台进行安装:
I am trying to create a dot file using JDD project. It requires installation of Graphviz. I tried to install it using console:
sudo apt-get install graphviz
在那种情况下,尽管安装似乎成功,但是程序没有产生任何输出。因此,我尝试了另一种方法,方法是下载最顶部的 .deb文件,但出现错误:
In that case, although the installation seemed successful, the program did not produce me any output. Therefore I tried another approach by downloading the top most .deb file but I got the error:
依赖关系无法令人满意:libgraphviz4(> = 2.18)
"Dependency is not satisfiable: libgraphviz4 (>=2.18)"
有人知道我如何使它工作吗?
Does anyone know how I can make it work?
推荐答案
这对我在64位系统上有效
This worked for me on a 64-bit machine.
尝试将这些行添加到/etc/apt/sources.list文件中:
Try adding these lines to your /etc/apt/sources.list file:
deb http://security.ubuntu.com/ubuntu lucid-security main
deb http://cz.archive.ubuntu.com/ubuntu lucid main
然后更新:
sudo apt-get update
现在,您应该可以通过双击.deb文件或使用以下命令进行安装
Now you should be able to install by double clicking the .deb file, or using dpkg, etc, which ever way you prefer.
注意:不过,我认为您的第一次尝试实际上可能已经奏效。问题是该命令安装了一组工具,没有一个名为 graphviz。我在这里找到此信息:
NOTE: I think your first attempt might've actually worked, though. The issue is that the command installs a group of tools, none named 'graphviz'. I found this information here:
https://www.kubuntuforums.net/showthread.php?61037-package-graphviz-installation-appears-not-to-work
您将需要安装GUI /可视化工具来打开.gv文件。 xdot( sudo apt install xdot
)是这样的工具,也可以位于Ubuntu软件中心。
You will need to install a gui/visualization tool to open .gv files. xdot (sudo apt install xdot
) is such a tool and can also be located on the Ubuntu software center.
希望这会有所帮助。
这篇关于Graphviz安装Ubuntu 14.04的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!