How to install Graphviz
Moderators: Developer, Contributor
How to install Graphviz
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
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
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
Choose the installation package you need from https://graphviz.org/download
-
- Posts: 120
- Joined: 05 Jun 2019, 00:17
Re: How to install Graphviz
$g_relationship_graph_enable = ON;
c:\xampp\htdocs\mantis\
and following the instruction here
but still not work (broken image)
c:\xampp\htdocs\mantis\
and following the instruction here
but still not work (broken image)
-
- Posts: 120
- Joined: 05 Jun 2019, 00:17
Re: How to install Graphviz
@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!
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
You have to set
https://mantisbt.org/docs/master/en-US/ ... lationship
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'.
Re: How to install Graphviz
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
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.
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;
but all I get is a broken image where the graph should be. I restarted Windows already.
Re: How to install Graphviz
2.26.1 on Windows Server with IIS and MySQL
Re: How to install Graphviz
Does it work if you install (or copy) the Graphviz installation to a path without blanks in it?
E.g. something like
E.g. something like
Code: Select all
$g_dot_tool = 'C:\MyPrograms\Graphviz\bin\dot.exe';
Re: How to install Graphviz
This works! Oh I feel so stupid for not thinking about it myself.
but nonetheless, thank you very much!
but nonetheless, thank you very much!
-
- Posts: 120
- Joined: 05 Jun 2019, 00:17
Re: How to install Graphviz
For the record, after updating version 2.27, the configuration has been changed to
https://mantisbt.org/bugs/view.php?id=34609
Code: Select all
$g_graphviz_path
andNew $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.
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
@amphetamine concerning https://mantisbt.org/bugs/view.php?id=34609#c69165
The issue is fixed in final 2.27.0, no manual change is needed, see https://github.com/mantisbt/mantisbt/co ... 39d1bc1cdc
I found this issue during tests before 2.27.0 was released.To get it run, I had to add ".exe"
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
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
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
EDIT2:
Just found https://mantisbt.org/bugs/view.php?id=34917 so nevermind

- 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
What am I forgetting this time?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.
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
Do I still need to do something?Graphviz tools (dot, neato, circo) are required to display relationship graphs
dot, neato, circo not found in C:\Graphviz\bin\ or not executable.
EDIT2:
Just found https://mantisbt.org/bugs/view.php?id=34917 so nevermind
