How to install Graphviz for Confluence on SUSE Linux platform
This article explains the details of installing the Graphviz for Confluence app on the SUSE Linux platform.
Prerequisite: Confluence server must have the Graph Visualization Software (Graphviz) package installed for the Graphviz Diagrams for Confluence macros to work.
Instructions
- As mentioned in the prerequisite: Before installing the Graphviz Diagrams for Confluence app on the confluence instance, download and install the Graph Visualization Software (Graphviz) on the server where you are running Confluence.
The Graphviz software requires these packages to be installed : graphviz.rpm, graphviz-graphs.rpm, and the graphviz-gd.rpm. These packages can be installed directly or manually.
These packages are automatically installed under this location: /usr/local/Cellar/graphviz/2.40.1/lib/graphviz.
- Install binary packages directly:
Install Graphviz with the dependencies from the below link.
https://software.opensuse.org/download.html?project=graphics&package=graphviz - Install Graphviz manually:
- Add the repo that fetches the latest available Graphviz version and then install all the packages from the repo.
- Run the below-given commands as the root user.
zypper addrepo https://download.opensuse.org/repositories/graphics/SLE_12_SP3_Backports/graphics.repo
zypper refresh
zypper install graphviz
- Install binary packages directly:
- Test Graphviz installation:
- After installing Graphviz, make sure the dot executable is run from the command line, using the same environment (especially the path) used to start the Confluence.
Run the below command to make sure Graphviz is installed successfully.
dot -version
If the result shows as mentioned in the below sample output, it implies that Graphviz has been configured correctly:
dot - graphviz version 2.40.1 (20161225.0304) libdir = "/usr/local/Cellar/graphviz/2.40.1/lib/graphviz"
Install the app Graphviz diagrams for Confluence in the confluence instance.
Test the app functionality by adding a simple flowchart as given below:
- Add a new confluence page.
- Add a flowchart macro by typing { and then select the flowchart macro.
- Inside the macro, add the code A→B as shown below:
- Save the page. The diagram is shown as below: