LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Newbie
User Name
Password
Linux - Newbie This forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Thread Tools
Old 08-20-2003, 08:06 AM   #1
spako
LQ Newbie
 
Registered: Aug 2003
Location: Cape Town, South Africa
Distribution: Redhat7.3 via SSH
Posts: 11
Thanked: 0
perl mail


[Log in to get rid of this advertisement]
i am quite new with linux/perl etc....

this is part of a perl mail script:
---------------------------------------------
#!/usr/bin/perl -T

use strict;
use CGI;
use Config::General;<----------this gives me an error
use Net::SMTP;

-----------------------------------------
the error in apache log:
-------------------------------------------
Can't locate Config/General.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/perl5/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/lib/perl5/vendor_perl) at /var/www/cgi-bin/mail.pl line 5.
BEGIN failed--compilation aborted at /var/www/cgi-bin/mail.pl line 5.
[Tue Aug 19 14:31:36 2003] [error] [client 196.25.133.226] Premature end of script headers: /var/www/cgi-bin/mail.pl
-----------------------------------------------------

do i have to install an rpm or is there something i have to configure for Config/General.pm?
spako is offline     Reply With Quote
Old 08-20-2003, 08:30 AM   #2
Hangdog42
Guru
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 6,293
Blog Entries: 1
Thanked: 45
Did you install the General Config module? You can find it at CPAN by searching on Config::General. Just download the .tar.gz file, extract it and follow the instructions in the INSTALL file. By the way, if you are just starting out with perl, CPAN is an invaluable resource. You also might want to check out PerlMonks and the LQO Programming forum here for advice. There are several good perl programmers that follow the LQO board.

Perl modules are usually drop dead easy to install, but post back if you have trouble.
Hangdog42 is offline     Reply With Quote
Old 08-20-2003, 09:17 AM   #3
spako
LQ Newbie
 
Registered: Aug 2003
Location: Cape Town, South Africa
Distribution: Redhat7.3 via SSH
Posts: 11
Thanked: 0

Original Poster
yeah cool
got that module installed

just 1 more question....
I also tried to install Net::SMTP
but it told me it is already installed and asked if i want to update
is there a way to find out which version is installed?
spako is offline     Reply With Quote
Old 08-20-2003, 09:56 AM   #4
spako
LQ Newbie
 
Registered: Aug 2003
Location: Cape Town, South Africa
Distribution: Redhat7.3 via SSH
Posts: 11
Thanked: 0

Original Poster
it is cool now i got round that problem thanx for the help!!
spako is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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
perl script to report new mail nibbler Programming 1 07-02-2005 10:13 AM
Send Mail with Perl Cool_Hand_Luke Programming 2 03-14-2005 10:59 AM
perl-Mail-SpamAssassin ziggie216 Linux - Software 0 01-05-2004 03:10 PM
parsing mail.log with perl and calculate mail traffic on domain base markus1982 Programming 1 03-18-2003 07:22 AM
Perl - MIME/HTML mail Shak Programming 3 03-09-2003 08:43 PM


All times are GMT -5. The time now is 08:42 PM.

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration