LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 12-04-2002, 09:06 PM   #1
paradoxlight
LQ Newbie
 
Registered: Jan 2002
Posts: 25

Rep: Reputation: 15
Can't find a module for perl for bar graphs


Anybody know what this is all about? I have installed the latest template module (2.0.8 I think)
I am trying to create a bar graph but it says that a module is missing.

Can't locate GD/Graph/bars.pm in @INC (@INC contains: /usr/lib/perl5/5.6.1/i386- linux /usr/lib/perl5/5.6.1 /usr/lib/perl5/site_perl/5.6.1/i386-linux /usr/lib/pe rl5/site_perl/5.6.1 /usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl /usr /lib/perl5/vendor_perl/5.6.1/i386-linux /usr/lib/perl5/vendor_perl/5.6.1 /usr/li b/perl5/vendor_perl .) at perlgraph.pl line 5.
BEGIN failed--compilation aborted at perlgraph.pl line 5.
 
Old 12-04-2002, 09:28 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Hi...

You might want to look at CPAN ...

CPAN - search for DG Graph bars.pm

My wild guess is that you'll have to install
GDGraph

HIH


Cheers,
Tink

Last edited by Tinkster; 12-04-2002 at 09:30 PM.
 
Old 12-05-2002, 08:53 AM   #3
paradoxlight
LQ Newbie
 
Registered: Jan 2002
Posts: 25

Original Poster
Rep: Reputation: 15
Not sure what the deal is but I had the path ../perl5/5.6.1/site_perl/template/plugin/5.6.1....blah blah blah

Point is that the message I got stated all the paths and that isn't one of them so I copied the folder structure from GD/Graph down and put it in /perl5/5.6.1 and it works except now I have an error in my code somwhere. Here is the new error. I don't think it is realated.

Can't locate object method "new" via package "GD::Graph::bars" (perhaps you forg
ot to load "GD::Graph::bars"?) at perlgraph.pl line 15.

Any ideas what this is?
 
Old 12-05-2002, 11:01 PM   #4
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
the best way to get CPAN perl modules is to use perl from command line
run it as root
perl -MCPAN -e shell
it will go for setting the things up with your interaction, and then when it's done help command comes handy to get around
 
Old 12-15-2002, 11:20 AM   #5
bferrell
LQ Newbie
 
Registered: Nov 2002
Posts: 4

Rep: Reputation: 0
To fix the problem where a module or it's components are found due to installation someplace other that where perl expects it to be, use the following line in your perl code:

use lib "path to your perl stoff";

That'll fix your problem and you won't have to (unsuccessfully) copy stuff all over your filesystem
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with perl module for w3c validator to work on my local Apache+PHP+perl instal tbamt Linux - Software 0 12-16-2004 05:37 PM
perl module installation init-5 Linux - Software 26 10-25-2004 04:14 AM
Install perl module mosh Programming 2 06-21-2004 12:12 PM
perl-cgi & graphs berry Programming 1 06-27-2002 11:26 AM
Perl cgi and graphs berry Programming 2 05-22-2002 02:22 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration