View Full Version : Problem installing Perl modules
May 5th, 2007, 09:11 PM
I'm trying to install the Perl module Mail::Mailer but am getting a make error. Here is what I get;
Checking for IO::Handle...ok
Checking if your kit is complete...
Writing Makefile for Mail
-- NOT OK
Running make test
Can't test without successful make
Running make install
make had returned bad status, install seems impossible
I'm new to Linux and have just installed Ubuntu on my machine. This is the first time I try to run a Perl script on this machine.
Any ideas what might be missing or incorrectly configured?
May 6th, 2007, 06:17 AM
Probably your CPAN configuration. We've all been through it. ;) As a simple test, you can try using sudo cpan, in case it's a permissions error. But, when that doesn't work, open cpan, type o conf, and post the output. If you see fixable configuration errors, don't forget the commit command to save them.
May 6th, 2007, 05:22 PM
Thanks for your reply Phossal! You are right, I had omitted "sudo", unfortunately including it didn't change anything. I will include the output of "o conf" below but first I have a couple of questions.
Perl bundles can be installed using "aptitude". I've guessed that Mail::Mailer might be in libmail-sendmail-perl so I issued the command:
sudo aptitude install libmail-sendmail-perl
That command succeeded but my script still doesn't find Mail::Mailer. Here are my questions;
- would using both installation methods, CPAN and aptitude cause conflicts?
- how can you tell which modules are in which package e.g. where is Mail::Mailer? (Is it really in libmail-sendmail-perl?)
cpan> o conf
CPAN::Config options and /home/mitch/.cpan/CPAN/MyConfig.pm:
commit Commit changes to disk
defaults Reload defaults from disk
init Interactive setting of all options
July 13th, 2007, 09:50 PM
I realize this is an old post, but for anyone else looking for Mail::Mailer through aptitude, try:
sudo apt-get install libmail-perl
May 8th, 2008, 04:25 PM
The module is called in 8.04:
Note: most modules you can find in the synaptic tool with search. However, not all modules include perfect descriptions of the classes the implement.
libmailtools-perl is one of those, it apparently implements Mail::Mailer
For example: IO::Compress::Gzip is undocumented, but implemented by
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.