Page 1 of 1
How to install Graphviz
Posted: 26 Jun 2019, 14:57
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
Re: How to install Graphviz
Posted: 26 Jun 2019, 20:25
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
Re: How to install Graphviz
Posted: 14 Aug 2019, 13:07
by amphetamine
$g_relationship_graph_enable = ON;
c:\xampp\htdocs\mantis\
and following the instruction
here
but still not work (broken image)
Re: How to install Graphviz
Posted: 31 Aug 2019, 02:50
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!

Re: How to install Graphviz
Posted: 01 Sep 2019, 10:17
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
Re: How to install Graphviz
Posted: 01 Sep 2019, 11:34
by amphetamine
Thank you!
Re: How to install Graphviz
Posted: 24 May 2024, 13:50
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.
Re: How to install Graphviz
Posted: 24 May 2024, 14:18
by atrol
Which MantisBT version do you use?
Re: How to install Graphviz
Posted: 27 May 2024, 08:21
by diedie2
2.26.1 on Windows Server with IIS and MySQL
Re: How to install Graphviz
Posted: 27 May 2024, 11:12
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';
Re: How to install Graphviz
Posted: 27 May 2024, 12:09
by diedie2
This works! Oh I feel so stupid for not thinking about it myself.
but nonetheless, thank you very much!
Re: How to install Graphviz
Posted: 08 Oct 2024, 03:14
by amphetamine
For the record, after updating version 2.27, the configuration has been changed to
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';
Re: How to install Graphviz
Posted: 08 Oct 2024, 06:24
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
Re: How to install Graphviz
Posted: 09 Oct 2024, 00:37
by amphetamine
Thanks!

Re: How to install Graphviz
Posted: 17 Feb 2025, 10:49
by diedie2
so I guess I'm gonna need some help again
- 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
