Re: [exim] exim "top" utility

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Matthew Newton
Datum:  
To: Peter Kirk
CC: exim-users
Betreff: Re: [exim] exim "top" utility
Hi,

On Tue, Nov 04, 2008 at 02:06:17PM +0200, Peter Kirk wrote:
> I put the script in a file and then ran
>
>
> tail -n1000 -f /var/log/exim/mainlog | /home/peterki/exitop
>
> but I get the following output
>
> Can't locate Curses.pm in @INC (@INC contains:
> /usr/local/lib/perl5/5.8.8/BSDPAN
> /usr/local/lib/perl5/site_perl/5.8.8/mach
> /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl
> /usr/local/lib/perl5/5.8.8/mach /usr/local/lib/perl5/5.8.8 .) at
> /home/peterki/exitop line 12.
> BEGIN failed--compilation aborted at /home/peterki/exitop line 12.


Ah - you need the Perl Curses library. I don't think this comes
with the standard Perl install.

If you're on a debian-based system, the command "apt-get install
libcurses-perl" should get you sorted. Otherwise you'll need to
find the package that contains Perl's Curses library and install
that. Failing all that, you can download and install from CPAN[1].
You might get away with something like "perl -MCPAN -e 'install Curses'".

Matthew



[1] see http://theoryx5.uwinnipeg.ca/CPAN/perl/lib/CPAN.html

--
Matthew Newton, Ph.D. <mcn4@???>

Systems Architect (UNIX and Networks), Network Services,
I.T. Services, University of Leicester, Leicester LE1 7RH, United Kingdom

For IT help contact helpdesk extn. 2253, <ithelp@???>