Table of Contents | ||||||||
---|---|---|---|---|---|---|---|---|
|
Description
The Confluence server must have the Graph Visualization Software (Graphviz) package installed in order for the the Graphviz Diagrams for Confluence macros to work. The Graphviz package is free and supports a variety of operating systems including those supported by Confluence.
Tip | ||
---|---|---|
| ||
After you have installed Graphviz, make sure the dot executable is run from a command line using the same environment (especially the , path) used to startup Confluence. If Confluence cannot find the executable, you will get macro errors are shown in Confluence like - No useable executable name defined in graphviz.properties.... |
Downloading Graphviz
Before you can use use Graphviz Diagrams for Confluence, you will need to must download and install install Graph Visualization Software (Graphviz) on the system where you are running Confluence. Download the correct version of the software that matches your environment. You can find the available versions on the Graphviz Downloads page. Once the download is complete then following , follow the instructions given below for your operating system.
Graphviz on Windows
- Download the installer from this link.
- The default installation path will be is: C:\Program Files (x86)\GraphvizX.XX\bin (Example: GraphvizX.XX → Graphviz → Graphviz 2.38)
Open cmd command line window as administrator and go the location C:\Program Files (x86)\GraphvizX.XX\bin and run the below following command:
No Format dot.exe
Exit the command line window.
Go to the to Control Panel → System > System and Security → > System, and on the right side navigation panel, you will see the link click the Advanced systems settings link.
Once there in advance In Advance settings, a dialogue box will open which will show the button opens that shows the Environment Variables button. Click on the button Environment Variables.
Select the entry "Path" on in the system variables section and add C:\Program Files (x86)\GraphvizX.XX\bin to the existing path. Please see the below screenshot for reference.Anchor gviz_install_step7 gviz_install_step7
Note:
isNote Please make sure you add ";" at the PATH which
existingalready
Variablesexists under User
Alsovariables and mention the path C:\Program Files (x86)\GraphvizX.XX\bin.
NewAlso please add a
systemnew path on the
PathSystem variables section and add the
C:\Program Files (x86)\GraphvizX.XX\bin path.
Click
on Ok ButtonOK.
- Restart Confluence from a new cmd command line window.
- Go to the system System information page on confluence in your Confluence instance.
- Verify Verify if you can see C:\Program Files (x86)\GraphvizX.XX\bin on " in the Path" attribute on system information the page in confluence. If the path is available, that means that the configuration changes are successful.
- Go the page where you have used the macro and verify if the add-ons apps work.
- Restart Confluence.
Verify it the app works by creating a page with a simple flowchart macro likesuch as:
No Format {flowchart} A -> B {flowchart}
Graphviz on Windows for v2.38 or later
In the Graphviz download link, it shows 2.38 as the latest version, but as of today, 2.43.x is the latest version for Windows. Graphviz team intends to make it available on the web as per this reference and this other reference.
- As per Graphviz team's suggestion, use the latest executable and missing config, that is, graphviz-2.43 file available on their page.
- You must install the .exe and copy the config6 file in the bin folder after successful installation. Note that if config6 file is comes with installation, you can skip copying it manually to the bin folder.
- After the installation is complete, follow the steps 7-15 mentioned in the previous section with the latest 2.43.x version of Graphviz.
- Check with
dot -V
at the command prompt whether your changes are reflected.
Note |
---|
Due to some performance issues with 2.38 version of the Graphviz for Windows, this section has been added temporarily until the latest version installation instructions are made available on Graphviz Downloads location. |
Graphviz on Mac OSX
- Follow the instructions mentioned here.
- The installer should set usually sets up everything so that the dot appears under on the path appears under the Path variable.
Graphviz on Linux and Unix
- Install the graphviz.rpm, the graphviz-graphs.rpm, and the graphviz-gd.rpm packages.
- Open the directory GraphViz where Graphviz is installed under and confirm the path.
- Log in as the user who runs Confluence or starts the Confluence service.
- Append the path to the bin directory of GraphViz Graphviz to the 'Path' variable variable.
Graphviz on Ubuntu
Install the Graphviz packages with the following set of commands:
Code Block apt-get update apt-get install graphviz*
Last resort
The method mentioned in this section is not required and not recommended in most cases, but, if you can't get your path set correctly . Use this as an alternative if you are not able to set your path correctly to find the dot executable, then this is an alternative.
Info | ||
---|---|---|
| ||
|