M
Mr Hyde
Hi guys,
My apologies if this is a simple issue: I've been hacking away at it
for too long and have had no luck finding other people with the same
issue.
I have a very simple script named draw.pl:
---begin
use GD::Graph::bars;
my $graph = GD::Graph::bars->new(800, 600);
---end
cut down to isolate the issue. When I run the command
perl draw.pl
it comes up with the error
Can't locate object method "new" via package "GD::Image" at
D:/Perl/site/lib/GD/Graph.pm line 286.
I'm on a Windows XP box, running perl 5.8.6 from ActiveState. I've
installed the GD, GDTextUtil, GDGraph and GD-Convert modules via ppm.
There is no GDImage package or anything like that: I fetched them from
http://theoryx5.uwinnipeg.ca/ppms/ because ActiveState didn't have the
GD modules in their repository.
Any ideas? I'm sure it's something pretty simple, however I've only
worked with perl on Linux before.
The overall project is I want to be able to draw charts into a webpage
and include them in a C++ application, however I couldn't find a C++
API that allowed me to write chart images to file so I was going to
implement it in perl and include the perl scripts in the code. This GD
issue, irritatingly, is the first step in this plan. If anyone knows a
more straightforward way to do this, it would be greatly appreciated.
Thanks in advance
H
My apologies if this is a simple issue: I've been hacking away at it
for too long and have had no luck finding other people with the same
issue.
I have a very simple script named draw.pl:
---begin
use GD::Graph::bars;
my $graph = GD::Graph::bars->new(800, 600);
---end
cut down to isolate the issue. When I run the command
perl draw.pl
it comes up with the error
Can't locate object method "new" via package "GD::Image" at
D:/Perl/site/lib/GD/Graph.pm line 286.
I'm on a Windows XP box, running perl 5.8.6 from ActiveState. I've
installed the GD, GDTextUtil, GDGraph and GD-Convert modules via ppm.
There is no GDImage package or anything like that: I fetched them from
http://theoryx5.uwinnipeg.ca/ppms/ because ActiveState didn't have the
GD modules in their repository.
Any ideas? I'm sure it's something pretty simple, however I've only
worked with perl on Linux before.
The overall project is I want to be able to draw charts into a webpage
and include them in a C++ application, however I couldn't find a C++
API that allowed me to write chart images to file so I was going to
implement it in perl and include the perl scripts in the code. This GD
issue, irritatingly, is the first step in this plan. If anyone knows a
more straightforward way to do this, it would be greatly appreciated.
Thanks in advance
H