Perl module Installs on Debain; best method

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Jim
Date:  
Subject: Perl module Installs on Debain; best method
Thanks everyone.

I installed pmtools with apt-get install pmtools and then did a pminst
like below:

pminst |grep Time::HiRes

and that seemed to work that with apt-cache


there were are few modules that were not installed and I could not find
in apt-cache, so for those I can possibly use db-make-perl or perl
-MCPAN -eshell

=20



Jim



On Wed, 2003-08-20 at 15:07, Jim wrote:
> I just tried searching apt-cache for some of these although the problem
> is that there are quite a debian packages that contain the perl modules
> I am interested in, so if I needed to install one of them I am not sure
> where to start
>=20
> I went to http://www.cpan.org/misc/cpan-faq.html#How_installed_modules
>=20
> and found this below
>=20
> #!/usr/local/bin/perl
>=20
> use ExtUtils::Installed;
> my $instmod =3D ExtUtils::Installed->new();
> foreach my $module ($instmod->modules()) {
> my $version =3D $instmod->version($module) || "???";
>        print "$module -- $version\n";
>               }
>=20
> =20
> Which should tell me what perl modules are installed instead I only get
> the version of perl installed. =20
>=20
> _____________________________
> The real dilemma is that I am trying to configure squidalyser and it
> depends on the previuos perl modules mentioned below.=20
>=20
> Can I safely just run the perl script without knowing that the required
> perl modules are installed or do I have to confirm that first? =20
>=20
> Here are the instructions below:
>=20
>=20
> "The squidparse.pl script takes data from the squid logfile and inserts
> it into the MySQL database. It probably needs to be run as `root', since
> it needs to read the logfile and ordinary users can't, under normal
> circumstances, do this. Copy the script and its configuration file to
> the appropriate location on your computer:
>=20
>=20
> mkdir /usr/local/squidparse
>=20
> cd squidalyser-0.2.53
>=20
> cp squidparse/* /usr/local/squidparse
> Next create a crontab entry to run the squidparse.pl script each
> morning:
>=20
> crontab -e
> This will invoke your editor. Type this line at the end of that file:
>=20
> 00 03 * * * /usr/local/squidparse/squidparse.pl"
>=20
>=20
>=20
>=20
> Jim
>=20
> On Wed, 2003-08-20 at 14:18, der.hans wrote:
> > Am 20. Aug, 2003 schw=E4tzte Jim so:
> >=20
> > > I need to install the below modules.  What is the best way to install
> > > these on Debian considering I could already have some of them install=

ed
> > > and do not want to create system havok.
> >=20
> > Generally, I suggest using debian packages.
> >=20
> > Most of the ones you list have packages, I believe.
> >=20
> > If you find one that doesn't use dh-make-perl. You can also use db-make=

-perl
> > if you need a newer version than what is packaged. I did that to get th=

e
> > most recent SpamAssassin on my box running woody.
> >=20
> > dh-make-perl - Create debian packages from perl modules
> >=20
> > I use something like the following to locate packages perl modules.
> >=20
> > apt-cache search dbi | grep ^lib | grep perl
> >=20
> > ciao,
> >=20
> > der.hans
>=20
> ---------------------------------------------------
> PLUG-discuss mailing list -
> To subscribe, unsubscribe, or to change you mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss