How to install Graphviz

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
andresrom
Posts: 14
Joined: 11 Jun 2019, 01:48

How to install Graphviz

Post by andresrom »

Hi guys, I do not understand how to install Grapviz. Is it possible to install it on the server?
If yes, can you tell me how to do it?
In case this is not possible, how do I install it in Windows?
Thank you all
atrol
Site Admin
Posts: 8502
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: How to install Graphviz

Post by atrol »

If you want use Graphviz for Mantis purposes, you have to install it on your server.
Choose the installation package you need from https://graphviz.org/download
Please use Search before posting and read the Manual
amphetamine
Posts: 120
Joined: 05 Jun 2019, 00:17

Re: How to install Graphviz

Post by amphetamine »

$g_relationship_graph_enable = ON;
c:\xampp\htdocs\mantis\

and following the instruction here
but still not work (broken image)
amphetamine
Posts: 120
Joined: 05 Jun 2019, 00:17

Re: How to install Graphviz

Post by amphetamine »

@atrol

Graphviz 2.38 under release folder, folder structure like this,
bin\
etc\
fonts\
gtk-2.0\
include\
lib\
pango\
share\

put above folder into graphviz in the following directory and set
graphviz path = c:/xampp/htdocs/mantis/library/graphviz/

the windows PATH variable c:/Program Files (x86)/Graphviz2.38/bin/
no luck! :(
atrol
Site Admin
Posts: 8502
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: How to install Graphviz

Post by atrol »

You have to set

Code: Select all

$g_dot_tool
    The full path for the dot tool. The webserver must have execute permission to this program in order to generate relationship graphs. This configuration option is not relevant for Windows. The default value is '/usr/bin/dot'. 
$g_neato_tool
    The full path for the neato tool. The webserver must have execute permission to this program in order to generate relationship graphs. This configuration option is not relevant for Windows. The default value is '/usr/bin/neato'. 
https://mantisbt.org/docs/master/en-US/ ... lationship
Please use Search before posting and read the Manual
amphetamine
Posts: 120
Joined: 05 Jun 2019, 00:17

Re: How to install Graphviz

Post by amphetamine »

Thank you!
diedie2
Posts: 6
Joined: 23 Feb 2023, 07:56

Re: How to install Graphviz

Post by diedie2 »

sry for reopening an old topic, but I can't get this to work.

I downloaded and installed the latest version of Graphviz (11.0 64bit for Windows).
I entered this confgiguration

Code: Select all

$g_relationship_graph_enable = ON;
$g_dot_tool = 'C:\Program Files\Graphviz\bin\dot.exe';
$g_neato_tool = 'C:\Program Files\Graphviz\bin\dot.exe -Kneato';
$g_relationship_graph_max_depth = 4;
$g_relationship_graph_view_on_click = ON;
I gave C:\Program Files\Graphviz ALL RIGHTS.

but all I get is a broken image where the graph should be. I restarted Windows already.
atrol
Site Admin
Posts: 8502
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: How to install Graphviz

Post by atrol »

Which MantisBT version do you use?
Please use Search before posting and read the Manual
diedie2
Posts: 6
Joined: 23 Feb 2023, 07:56

Re: How to install Graphviz

Post by diedie2 »

2.26.1 on Windows Server with IIS and MySQL
atrol
Site Admin
Posts: 8502
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: How to install Graphviz

Post by atrol »

Does it work if you install (or copy) the Graphviz installation to a path without blanks in it?
E.g. something like

Code: Select all

$g_dot_tool = 'C:\MyPrograms\Graphviz\bin\dot.exe';
Please use Search before posting and read the Manual
diedie2
Posts: 6
Joined: 23 Feb 2023, 07:56

Re: How to install Graphviz

Post by diedie2 »

This works! Oh I feel so stupid for not thinking about it myself.
but nonetheless, thank you very much!
amphetamine
Posts: 120
Joined: 05 Jun 2019, 00:17

Re: How to install Graphviz

Post by amphetamine »

For the record, after updating version 2.27, the configuration has been changed to 

Code: Select all

$g_graphviz_path
https://mantisbt.org/bugs/view.php?id=34609

New $g_graphviz_path config

Replaces $g_dot_tool and $g_neato_tool which are now obsolete.

Define new constants in Graph class to specify the individual tool to
use when instantiating the class; the graphviz tool path is built
by the constructor.

Adapted usage in relationship graph API and workflow graph.
and
This breakes relationship graphs on Windows.
To get it run, I had to add ".exe"

const TOOL_DOT = 'dot.exe';
const TOOL_NEATO = 'neato.exe';
const TOOL_CIRCO = 'circo.exe';
atrol
Site Admin
Posts: 8502
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: How to install Graphviz

Post by atrol »

@amphetamine concerning https://mantisbt.org/bugs/view.php?id=34609#c69165
To get it run, I had to add ".exe"
I found this issue during tests before 2.27.0 was released.
The issue is fixed in final 2.27.0, no manual change is needed, see https://github.com/mantisbt/mantisbt/co ... 39d1bc1cdc
Please use Search before posting and read the Manual
amphetamine
Posts: 120
Joined: 05 Jun 2019, 00:17

Re: How to install Graphviz

Post by amphetamine »

Thanks!
:D
diedie2
Posts: 6
Joined: 23 Feb 2023, 07:56

Re: How to install Graphviz

Post by diedie2 »

so I guess I'm gonna need some help again :lol:

- I've upgraded to Mantis 2.27
- I've upgraded to Graphviz 12.2.1 (but still in C:\Graphviz)
- I've put $g_dot_tool and $g_neato_tool in comment and added $g_graphviz_path = 'C:\Graphviz\bin'; to config_inc.php
- Fully reboot the server

When I try this I get the error
APPLICATION ERROR #3100

Graphviz tool "neato.exe" not found or execution failed. Make sure the library is installed and $g_graphviz_path is correctly set.
What am I forgetting this time?

EDIT: I noticed it asking for an extra trailing \ in, but if I do that, it messes up my config_inc.php and mantisbt isnt't working anymore. I solved it by using $g_graphviz_path = 'C:\Graphviz\bin\\';

Alltought it seems to be working for me now, I still have a fail on the admincheck
Graphviz tools (dot, neato, circo) are required to display relationship graphs
dot, neato, circo not found in C:\Graphviz\bin\ or not executable.
Do I still need to do something?

EDIT2:
Just found https://mantisbt.org/bugs/view.php?id=34917 so nevermind :-)
Post Reply