8

In my ubuntu 12.04, the graphviz is not the latest version(2.29). I need some features available in the latest version of graphviz. I tried to install the graphviz version 2.29, which requires libgraphviz4(>=2.18). I anyhow installed libgraphviz4 and installed graphviz 2.29. For that I have to remove packages libcdt4 and libpathplan4.

Now whenever I try to generate graph, I get some problems: For e.g.:

dot -Kfdp -n -Tpng -o samplePOS.png forcePOS.dot

It says:

dot: error while loading shared libraries: libgvc.so.6: cannot open
shared object file: No such file or directory

neato -Tps -o sample_1.ps sourcedot.gv

It says:

neato: error while loading shared libraries: libgvc.so.6: cannot open
shared object file: No such file or directory

So, I am looking for some ways so that I can run graphviz 2.29 in my ubuntu 12.04.

Tim
  • 33,500
bidur
  • 83
  • 1
  • 1
  • 3

3 Answers3

14

First a warning for using PPA (mainly unstable)

The below PPA: ppa:dperry/ppa-graphviz-test is an unstable PPA. So, you are given warning.

Use this commands in a terminal to install the unstable 2.29 version of graphviz.

sudo apt-add-repository ppa:dperry/ppa-graphviz-test
sudo apt-get update
sudo apt-get autoremove graphviz
sudo apt-get install graphviz

If you get this error "graphviz : Depends: libgraphviz4 (>= 2.18) but it is not going to be installed", run the following

sudo apt-get remove libcdt4
sudo apt-get remove libpathplan4
sudo apt-get install graphviz
Anwar
  • 77,855
3

Ubuntu 12.04 here.

What worked for me is:

  1. Remove the following packages

    sudo apt-get remove libcdt4
    
    sudo apt-get remove libpathplan4
    
  2. Install libgraphviz4

    http://www.graphviz.org/Download_linux_ubuntu.php

  3. Install graphviz

    sudo apt-get install graphviz
    
Anwar
  • 77,855
anh_ng8
  • 131
  • 4
0

Since you mess with some libraries i advice you to remove graphviz and install again

sudo apt-get remove graphviz
sudo apt-get remove graphviz-dev
sudo apt-get remove graphviz-doc
sudo apt-get install graphviz

This is a same situation for other user