GD and GraphViz - Need both? Can't build source

I recently attended Best Practical’s’ training in Boston and found it
informative. Since my return, I’ve been trying to get RT 4.0.x
(currently 4.0.5) built from source with no luck. I know that one of the
things my users will desire is the ability to display graphs. Do I need
both GD and GraphViz installed, or just GraphViz? Second; I’ve tried
both Ubuntu and CENT-OS to build RT from source with no luck at all. The
tripping point appears to be the GD/GraphViz libraries. No matter what I
try, I can’t seem to get either the libraries installed or the build
script to recognize it. Installing them via CPAN told me that I needed
to get them directly from GraphViz.org. I’ve done that and am able to
get them installed on CENT but not Ubuntu. Is there some trick I’m
missing to make this happen?

Stephen Cena
MIS/IT Dept - Quality Vision International
850 Hudson Ave
Rochester,NY. 14621
Ph: 585-544-0450 x300
“Thank you for helping us help you help us all.”

It looks like they have debs on GraphViz.org have you tried doing that
or just trying to compile?

I have always compiled them. I believe you need expat (and probably
expat-devel) to compile graphviz and you will need the libpng-devel to
get it to work properly with Request Tracker. For libgd I always just
installed the RPM and moved the library (libgd.so.2) to systems I could
not install RPMs on. Make sure to properly set up your LD_LIBRARY_PATH
environmental variables to go to any lib folders you have, so that when
you try to install it will find all your compiled/moved libraries.
ChrisOn Thu, 2012-03-22 at 12:50 -0400, Cena, Stephen (ext. 300) wrote:

I recently attended Best Practical’s’ training in Boston and found it
informative. Since my return, I’ve been trying to get RT 4.0.x
(currently 4.0.5) built from source with no luck. I know that one of
the things my users will desire is the ability to display graphs. Do I
need both GD and GraphViz installed, or just GraphViz? Second; I’ve
tried both Ubuntu and CENT-OS to build RT from source with no luck at
all. The tripping point appears to be the GD/GraphViz libraries. No
matter what I try, I can’t seem to get either the libraries installed
or the build script to recognize it. Installing them via CPAN told me
that I needed to get them directly from GraphViz.org. I’ve done that
and am able to get them installed on CENT but not Ubuntu. Is there
some trick I’m missing to make this happen?

Stephen Cena
MIS/IT Dept - Quality Vision International
850 Hudson Ave
Rochester,NY. 14621
Ph: 585-544-0450 x300
“Thank you for helping us help you help us all.”

I followed the instructions on graphviz.org for adding the repository
for CENT and installed GraphViz that way. On Ubuntu, no matter what
.debs I try to install I just keep coming up with more dependencies.

From the work I have done I can say I’ve had a lot more trouble getting
RT installed from source on Ubuntu than CENT. I’m also working on
documenting the process to do an install in either case, as the wiki
information is out of date/inaccurate and the book does nothing to help.
I’ve read the README for the install but it doesn’t help when the
libraries it depends on don’t work. I’m trying to not have to compile
any more than I have to. We’re potentially looking at bringing 6 RT
systems online here. The only reason we’re running one now is Ubuntu had
the .deb available and “it just worked”.

One side note; while at the training in Boston I asked (half jokingly)
if RT would run on IIS. I was told flat out “no, it will not”. Yet on
the RT website: http://requesttracker.wikia.com/wiki/InstallationGuides

  • The best/easiest distribution for RT
    There is no the best or the easiest. People run RT on Arch Linux,
    Debian, FreeBSD, NetBSD, RH7/8/9, RHEL, CentOS, Fedora, Solaris, SuSE,
    Gentoo, OpenBSD, and even Windows.

Got a little bit of a laugh from that.

Stephen Cena
MIS/IT Dept - Quality Vision International
850 Hudson Ave
Rochester,NY. 14621
Ph: 585-544-0450 x300
"Thank you for helping us help you help us all."From: Christopher Lasater [mailto:CLasater@taleo.com]
Sent: Thursday, March 22, 2012 1:04 PM
To: Cena, Stephen (ext. 300)
Cc: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] GD and GraphViz - Need both? Can’t build source.

It looks like they have debs on GraphViz.org have you tried doing that
or just trying to compile?

I have always compiled them. I believe you need expat (and probably
expat-devel) to compile graphviz and you will need the libpng-devel to
get it to work properly with Request Tracker. For libgd I always just
installed the RPM and moved the library (libgd.so.2) to systems I could
not install RPMs on. Make sure to properly set up your LD_LIBRARY_PATH
environmental variables to go to any lib folders you have, so that when
you try to install it will find all your compiled/moved libraries.
Chris

I followed the instructions on graphviz.org for adding the repository
for CENT and installed GraphViz that way. On Ubuntu, no matter what
.debs I try to install I just keep coming up with more dependencies.
From the work I have done I can say I’ve had a lot more trouble getting
RT installed from source on Ubuntu than CENT. I’m also working on
documenting the process to do an install in either case, as the wiki
information is out of date/inaccurate and the book does nothing to help.
I’ve read the README for the install but it doesn’t help when the
libraries it depends on don’t work. I’m trying to not have to compile
any more than I have to. We’re potentially looking at bringing 6 RT
systems online here. The only reason we’re running one now is Ubuntu had
the .deb available and “it just worked”.

I don’t think you’ve included the actual failure in either of your
posts

I’ve always been able to find the gd-devel, graphviz and expat-devel
packages on Ubuntu (and in fact, gd-devel is right in the docs). With
CentOS6 you can now get all of those easily also (on CentOS 5 you
needed to use the graphviz yum repos).

To answer the original question from this thread:

GD provides Charts for search results.
GraphViz provides dependency graphs for linked tickets.
Your managers will absolutely want GD, GraphViz isn’t as necessary
unless you have intricate ticket structures and want a visualization.

One side note; while at the training in Boston I asked (half jokingly)
if RT would run on IIS. I was told flat out “no, it will not”. Yet on
the RT website: http://requesttracker.wikia.com/wiki/InstallationGuides

That is not the RT website. The RT website is Request Tracker... So much more than a help desk — Best Practical Solutions
You’re reading the Wiki, which contains many end-user contributions. The
page you link to clearly states at the top that these install guides are
out of date and unofficial and that we recommend the README.

-kevin

Ok; I think I got it worked out! At least on Cent OS 6.x. I’m going to
try to reproduce this on a fresh install but I’ve been documenting as I
go and this is what I’ve got:

-Install Cent OS 6 - Minimal Desktop
-Perform updates
-Install GCC - yum install gcc.i686
-Install Make - yum install make.i686 — already installed (gcc brought
in?)
-Install YAML for PERL - yum install perl-YAML.noarch
-Install RSS for PERL - yum install perl-XML-RSS.noarch
-Install GraphViz - yum install graphviz-perl.i686
-Install GraphViz GD - yum install graphviz-gd.i686
-Install GD Text - yum install perl-GDTextUtil.noarch — pulls in
perl-GD
-Install Apache2 - yum install httpd.i686
-Install MySQL - yum install mysql-server.i686
-Install CPAN/CPANPlus - yum install perl-CPANPLUS.i686 perl-CPAN.i686
-Update CPAN - install CPAN; reload CPAN
-Download RT latest release - currently, rt-4.0.5.tar.gz
-Uncompress - tar xzvf rt-4.0.5.tar.gz
-Switch to RT folder and run configure: ./configure --enable-graphviz
–enable-gd --with-db-type=mysql --with-db-dba=root
-Fix dependancies - make fixdeps

When I run ‘make fixdeps’ this time, I get “All dependancies have been
found”.

The only other change I know I’ll need to make (at least for myself) is
to swap out Sendmail for Postfix but that I know how to do.

I’m also going to take a similar stab at doing this under Ubuntu 11.10
and see how I fare there.

Hope this helps some others out, and when I get a completely solid
“guide” I’ll be sure to upload it/post it/whatever to the Wiki.

Thanks!!!

Stephen Cena
MIS/IT Dept - Quality Vision International
850 Hudson Ave
Rochester,NY. 14621
Ph: 585-544-0450 x300
"Thank you for helping us help you help us all."From: Christopher Lasater [mailto:CLasater@taleo.com]
Sent: Thursday, March 22, 2012 1:04 PM
To: Cena, Stephen (ext. 300)
Cc: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] GD and GraphViz - Need both? Can’t build source.

It looks like they have debs on GraphViz.org have you tried doing that
or just trying to compile?

I have always compiled them. I believe you need expat (and probably
expat-devel) to compile graphviz and you will need the libpng-devel to
get it to work properly with Request Tracker. For libgd I always just
installed the RPM and moved the library (libgd.so.2) to systems I could
not install RPMs on. Make sure to properly set up your LD_LIBRARY_PATH
environmental variables to go to any lib folders you have, so that when
you try to install it will find all your compiled/moved libraries.
Chris