Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to install SNMP_Session.pm

817 views
Skip to first unread message

Raheel Hassan

unread,
Dec 23, 2009, 7:53:08 AM12/23/09
to begi...@perl.org
Hi,

I need to install SNMP_Session.pm in Fedora core 12, can any one guide me
how i can install this package and from where i get this. It is working in
my ubuntu machine but in fedora i am unable to find.


Regards,
Raheel.

Erez Schatz

unread,
Dec 23, 2009, 9:11:40 AM12/23/09
to Raheel Hassan, begi...@perl.org
2009/12/23 Raheel Hassan <raheel...@gmail.com>:

(Warning: I have zero experience in Fedora/Red Hat, so this is all guessing)

While it is always recommended to install modules through the distro,
if you don't have that ability, there's always CPAN.
You need to open a console/terminal window (no clue what's it called
in Fedora), then try entering "cpan". If this doesn't work, you then
need to install it, I'm guessing "yum install perl-CPAN" or an
equivalent (if you have a GUI for installing packages, look for
cpan). You can then type "cpan SNMP::Session" into your terminal and
it will run the installation through.

Try this link for more assistance: http://fedoraproject.org/wiki/Perl

--
Erez

"The government forgets that George Orwell's 1984 was a warning, and
not a blueprint"
http://www.nonviolent-conflict.org/ -- http://www.whyweprotest.org/

Raheel Hassan

unread,
Dec 23, 2009, 9:53:57 AM12/23/09
to begi...@perl.org, erez....@gmail.com
Thanks for your reply Schatz. Yes i installed many modules using the same
method but the problem that i am facing this time is due to this package
SNMP_session.pm. In CPAN also i am unable to find this package. Where as in
Ubuntu it is present in /usr/share/perl5/SNMP_Session.pm, i do not know from
where to get this package. That is the problem that i am facing at the
moment.......................

Erez Schatz

unread,
Dec 23, 2009, 10:24:12 AM12/23/09
to Raheel Hassan, begi...@perl.org
2009/12/23 Raheel Hassan <raheel...@gmail.com>:

> Thanks for your reply Schatz. Yes i installed many modules using the same
> method but the problem that i am facing this time is due to this package
> SNMP_session.pm. In CPAN also i am unable to find this package. Where as in
> Ubuntu it is present in /usr/share/perl5/SNMP_Session.pm, i do not know from
> where to get this package. That is the problem that i am facing at the
> moment.......................


All Ubuntu packages have meta-data that tells you more-or-less what
exactly is used there.

So I'm guessing you mean this one:
http://packages.ubuntu.com/karmic/libsnmp-session-perl
Which points here:
http://www.switch.ch/misc/leinen/snmp/perl/
Which, in turn, points here:
http://code.google.com/p/snmp-session/

Which is where you can find the actual code for the package you seek.

Shlomi Fish

unread,
Dec 23, 2009, 11:12:44 AM12/23/09
to begi...@perl.org, Raheel Hassan

I did a CPAN search and got to:

http://search.cpan.org/perldoc?Module::ThirdParty

There I found that the up-to-date URL is:

http://code.google.com/p/snmp-session/

It seems to have a Makefile.PL so you can use it to install it under a prefix.
See:

http://search.cpan.org/perldoc?local::lib

Regards,

Shlomi Fish

>
> Regards,
> Raheel.
>

--
-----------------------------------------------------------------
Shlomi Fish http://www.shlomifish.org/
"Star Trek: We, the Living Dead" - http://shlom.in/st-wtld

Bzr is slower than Subversion in combination with Sourceforge.
( By: http://dazjorz.com/ )

0 new messages