red888 has asked for the wisdom of the Perl Monks concerning the following question:

I am trying to install a program called FlowViewer(http://sourceforge.net/p/flowviewer/wiki/Home/) on CentOS 7. The program uses perl cgi scripts and requires GD::Graph. So I installed GD with yum and have the following packages installed:

- gd-devel-2.0.35-26.el7.x86_64
- gd-2.0.35-26.el7.x86_64
- perl-GD-2.49-3.el7.x86_64

But when I try to run the program (open the webpage that runs the program) it throws an error and I see this in apache error log:
[Tue Oct 06 12:39:24.937697 2015] [cgi:error] [pid 26710] [client 10.1.1.1:14025] AH01215: Undefined subroutine &GD::Graph::colour::read_rgb called at /var/www/cgi-bin/FlowViewer_4.6/FlowViewer_Main.cgi line 121., referer: http://10.2.2.2/cgi-bin/FlowViewer_4.6/FlowViewer.cgi?Performance^filter_hash=FV_^DDDMyRouter
So does this mean it isn't installed correctly? It looks like apache either can't find GD or some specific function in GD. Is this correct or am I misinterpreting this?
This is the actual line in the cgi script causing this error:
GD::Graph::colour::read_rgb("FlowGrapher_Colors") or die "cannot read colors";

Replies are listed 'Best First'.
Re: Did GD::Graph not install correctly?
by hippo (Archbishop) on Oct 06, 2015 at 17:29 UTC

    You have installed GD but you have not installed GD::Graph. It sounds like you need the latter.

      Arg that's confusing. Should I build it from source or use CPAN because yum search isn't turning anything up (apart from the packages I already installed).
        I installed it with CPAN and that seems to have worked. Thanks.
Re: Did GD::Graph not install correctly?
by Anonymous Monk on Sep 03, 2017 at 22:16 UTC
    With CentOS 7.3.1611, CPAN would not allow the GD::Graphic install (to build) due to MakeMaker version being to old. Ultimately just "cheated" and used EPEL yum install epel-release yum install perl-GDGraph