Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents
maxlevel3
minlevel2
typeflat
separatorpipe

Description

The Confluence server must have the Graph Visualization Software (Graphviz) package installed in order for the the Graphviz Plugin Diagrams for Confluence macros to work. The Graphviz package is free and supports a variety of operating systems including those supported by Confluence. 

Tip
titleTest your Graphviz installation

After you have installed Graphviz, make sure the dot executable is able to be 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 Graphviz Diagrams for Confluence, you must download and 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, follow the instructions given below for your operating system. 

Graphviz on Windows

  1. Download the installer from this link.
  2. The default installation path is: C:\Program Files (x86)\GraphvizX.XX\bin (Example: GraphvizX.XX → Graphviz 2.38)
  3. Open command line window as administrator and go the location C:\Program Files (x86)\GraphvizX.XX\bin and run

    the Windows installerDefaults to install in

    the following command:

    No Format
    dot.exe


  4. Exit the command line window.

  5. Go to Control Panel >  System and Security > System, and on the right side navigation panel, click the Advanced systems settings link.

  6. In Advance settings, a dialogue box opens that shows the Environment Variables button. Click the button.

  7. Anchor
    gviz_install_step7
    gviz_install_step7
    Select the entry Path in the system variables section and add C:\Program Files (x86)\

    Graphviz2.16 or similar
  8. Automatically adds this to your Windows path
  9. Confirm that you can run dot.exe from a newly opened command line
  10. Restart Confluence
  11. Verify it GraphvizX.XX\bin to the existing path. Please see the below screenshot for reference.
    Image AddedImage Added

    Note

    Please make sure you add ";" at the PATH which already exists under User variables and mention the path C:\Program Files (x86)\GraphvizX.XX\bin. Also please add a new path on the System variables section and add the C:\Program Files (x86)\GraphvizX.XX\bin path.


  12. Click OK. 

  13.  Restart Confluence from a new command line window.
  14. Go to the System information page in your Confluence instance.
  15. Verify if you can see C:\Program Files (x86)\GraphvizX.XX\bin in the Path attribute on the page. If the path is available, that means that the configuration changes are successful. 
  16. Go the page where you have used the macro and verify if the apps work.
  17. Restart Confluence.
  18. Verify 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.

  1. As per Graphviz team's suggestion, use the latest executable and missing config, that is, graphviz-2.43 file available on their page.
  2. 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.
  3. After the installation is complete, follow the steps 7-15 mentioned in the previous section with the latest 2.43.x version of Graphviz.
  4. 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

  1. Download and run the installerFollow the instructions mentioned here.
  2. The installer should set usually sets up everything so that dot is found on the path the dot appears under the Path variable.

Graphviz on Linux and Unix

  1. Install the graphviz.rpm, the graphviz-graphs.rpm, and the graphviz-gd.rpm packages.
  2. Open the directory GraphViz where Graphviz is installed under and confirm the path.
  3. Login Log in as the user who runs Confluence or starts the Confluence service.
  4. Append the path to the bin directory of GraphViz Graphviz to the 'Path' variable.

Graphviz on Ubuntu

  1. Install the Graphviz packages with the following set of commands: 

    Code Block
    apt-get update
    apt-get install graphviz*


Last resort

This is not recommended, but, if you just can't get your path set correctly The method mentioned in this section is not required and not recommended in most cases. 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
titleIf you get errors about not finding dot.exe
  1. Download the plugin app jar file.
  2. Unzip the jar to a temporary directory.
  3. Edit the graphviz.properties file.
    • Replace dot.candidate.paths setting with something like as (yes, use forward slashes (smile)):

      No Format
      dot.candidate.paths=c:/PROGRA~1/Graphviz2.16/bin/dot.exe
      


  4. Zip all files in the temporary directory to create a new jar file.
  5. Uninstall the graphviz plugin Graphviz app and re-install your customized version.
  6. GVIZ-1 will make makes this easier.