GNU/Linux >> Tutoriels Linux >  >> Ubuntu

Comment installer Graphviz 2.29 en 12.04 ?

Dans mon Ubuntu 12.04, le graphviz n'est pas la dernière version (2.29). J'ai besoin de certaines fonctionnalités disponibles dans la dernière version de graphviz.
J'ai essayé d'installer la version 2.29 de graphviz, qui nécessite libgraphviz4(>=2.18).
J'ai quand même installé libgraphviz4 et installé graphviz 2.29. Pour cela, je dois supprimer les packages libcdt4 et libpathplan4.

Maintenant, chaque fois que j'essaie de générer un graphique, j'obtiens des problèmes :
Par exemple :

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

Il dit :

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

Il dit :

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

Donc, je cherche des moyens pour pouvoir exécuter graphviz 2.29 dans mon ubuntu 12.04.

Réponse acceptée :

D'abord un avertissement pour l'utilisation de PPA (principalement instable)

  • Les PPA peuvent-ils être ajoutés en toute sécurité à mon système et quels sont les "drapeaux rouges" à surveiller ?

Le PPA ci-dessous :ppa:dperry/ppa-graphviz-test est un instable APP. Donc, vous êtes averti.

Utilisez ces commandes dans un terminal pour installer la version 2.29 instable de graphviz.

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

Si vous obtenez cette erreur "graphviz :dépend :libgraphviz4 (>=2.18) mais il ne sera pas installé", exécutez ce qui suit

sudo apt-get remove libcdt4
sudo apt-get remove libpathplan4
sudo apt-get install graphviz

Ubuntu
  1. Comment installer Tomcat 9 sur CentOS 7

  2. Comment installer Apache sur CentOS 8

  3. Comment installer Minikube sur CentOS

  4. Comment installer Docker sur Ubuntu 18.04

  5. Comment installer Apache sur Ubuntu 18.04

Comment installer Gitea sur Ubuntu 20.04

Comment installer Asterisk sur Ubuntu 20.04

Comment installer Nginx sur Ubuntu 16.04

Comment installer Tomcat 8.5 sur Ubuntu 18.04

Comment installer Asterisk sur Ubuntu 18.04

Comment installer Go sur Debian 11