FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora Packaging

 
 
LinkBack Thread Tools
 
Old 01-29-2010, 06:28 PM
Jerry Geis
 
Default perl question

I am trying to run a perl script that said it needs Net::SMPP

I ran this:
your_host]# *perl -MCPAN -e shell*
cpan shell -- CPAN exploration and modules installation (v1.76)
ReadLine support enabled
cpan> *install Net::SNMP

seemed to work. no errors reported.
however when I run perl I still get the same error saying needs

./sendmessage.pl
Can't locate Net/SMPP.pm in @INC (@INC contains:
/usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl
/usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl
/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8 .)
at ./sendmessage.pl line 18.
BEGIN failed--compilation aborted at ./sendmessage.pl line 18.

What else do I need?

Jerry
*
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 01-29-2010, 06:37 PM
linux-crazy
 
Default perl question

Hi,

Check line 18. of your code or paste your code so it will be more
usefull and which version of OS you are running.



On Sat, Jan 30, 2010 at 12:58 AM, Jerry Geis <geisj@pagestation.com> wrote:
> I am trying to run a perl script that said it needs Net::SMPP
>
> I ran this:
> your_host]# *perl -MCPAN -e shell*
> cpan shell -- CPAN exploration and modules installation (v1.76)
> ReadLine support enabled
> cpan> *install Net::SNMP
>
> seemed to work. no errors reported.
> however when I run perl I still get the same error saying needs
>
> *./sendmessage.pl
> Can't locate Net/SMPP.pm in @INC (@INC contains:
> /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi
> /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl
> /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi
> /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl
> /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8 .)
> at ./sendmessage.pl line 18.
> BEGIN failed--compilation aborted at ./sendmessage.pl line 18.
>
> What else do I need?
>
> Jerry
> *
> _______________________________________________
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 01-29-2010, 06:37 PM
"Joseph L. Casale"
 
Default perl question

>I am trying to run a perl script that said it needs Net::SMPP
>
>I ran this:
>your_host]# *perl -MCPAN -e shell*

Ouch dude, you just broke your server. Try to yum update anything perl
related in the future

>What else do I need?

First, install SMPP, not SNMP?

Second, use a repo, use span2rpm... Then force the rpm in I guess to bring the rpm db
into a blissfully ignorant, but happy state

http://dag.wieers.com/rpm/packages/perl-Net-SNPP/
http://www.mediaburst.co.uk/blog/creating-perl-module-rpms/

_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 01-29-2010, 06:40 PM
 
Default perl question

> I am trying to run a perl script that said it needs Net::SMPP
>
> I ran this:
> your_host]# *perl -MCPAN -e shell*
> cpan shell -- CPAN exploration and modules installation (v1.76)
> ReadLine support enabled
> cpan> *install Net::SNMP
>
> seemed to work. no errors reported.
> however when I run perl I still get the same error saying needs
>
> ./sendmessage.pl
> Can't locate Net/SMPP.pm in @INC (@INC contains:
> /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi
> /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl
> /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi
> /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl
> /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8 .)
> at ./sendmessage.pl line 18.
> BEGIN failed--compilation aborted at ./sendmessage.pl line 18.
>
> What else do I need?

Two possibilities - but first, did you type the asterisk before install?
Anyway, did cpan *say* that it had successfully installed? I've had things
fail, and have to go into .cpan/Build/<path>, and make;make install. The
other possibility is that for some reason, it's not where it needed to be,
and you might try yum install Net-SNMP

mark

_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 01-29-2010, 06:42 PM
"Joseph L. Casale"
 
Default perl question

>Second, use a repo, use span2rpm... Then force the rpm in I guess to bring the rpm db
>into a blissfully ignorant, but happy state

s/span2rpm/cpan2rpm/
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 01-29-2010, 06:44 PM
Greg Patton
 
Default perl question

On 1/29/2010 11:40 AM, m.roth@5-cent.us wrote:
>> I am trying to run a perl script that said it needs Net::SMPP
>>
>> I ran this:
>> your_host]# *perl -MCPAN -e shell*
>> cpan shell -- CPAN exploration and modules installation (v1.76)
>> ReadLine support enabled
>> cpan> *install Net::SNMP
>>
>> seemed to work. no errors reported.
>> however when I run perl I still get the same error saying needs
>>
>> ./sendmessage.pl
>> Can't locate Net/SMPP.pm in @INC (@INC contains:
>> /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi
>> /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl
>> /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi
>> /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl
>> /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8 .)
>> at ./sendmessage.pl line 18.
>> BEGIN failed--compilation aborted at ./sendmessage.pl line 18.
>>
>> What else do I need?
>>
>
You need to learn how to actually read the output of error messages. :-)
It states very clearly what it failed on and that loading the module
Net::SMPP (Can't locate Net/SMPP.pm)! Change the use line in your script
to read use Net::SNMP and I will be you it works like a hot darn.

Don't ya hate when you miss the obvious? :-)

...Greg

_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 01-29-2010, 06:45 PM
Les Mikesell
 
Default perl question

On 1/29/2010 1:28 PM, Jerry Geis wrote:
> I am trying to run a perl script that said it needs Net::SMPP
>
> I ran this:
> your_host]# *perl -MCPAN -e shell*
> cpan shell -- CPAN exploration and modules installation (v1.76)
> ReadLine support enabled
> cpan> *install Net::SNMP
>
> seemed to work. no errors reported.
> however when I run perl I still get the same error saying needs
>
> ./sendmessage.pl
> Can't locate Net/SMPP.pm in @INC (@INC contains:
> /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi
> /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl
> /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi
> /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl
> /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8 .)
> at ./sendmessage.pl line 18.
> BEGIN failed--compilation aborted at ./sendmessage.pl line 18.
>
> What else do I need?

Is that a typo or did you actually install Net::SNMP when the script
wants Net:SMPP?

--
Les Mikesell
lesmikesell@gmail.com
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 01-29-2010, 06:50 PM
Jerry Geis
 
Default perl question

>
> Ouch dude, you just broke your server. Try to yum update anything perl
> related in the future
>
> >/What else do I need?
> /
> First, install SMPP, not SNMP?
>
> Second, use a repo, use span2rpm... Then force the rpm in I guess to bring the rpm db
> into a blissfully ignorant, but happy state
>
sorry for the typo - I was wanting SMPP.
Line 18 reads:
use Net::SMPP;

Jerry
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 02-01-2010, 11:15 AM
Dave Cross
 
Default perl question

On 29 January 2010 19:28, Jerry Geis <geisj@pagestation.com> wrote:
> I am trying to run a perl script that said it needs Net::SMPP
>
> I ran this:
> your_host]# *perl -MCPAN -e shell*
> cpan shell -- CPAN exploration and modules installation (v1.76)
> ReadLine support enabled
> cpan> *install Net::SNMP
>
> seemed to work. no errors reported.
> however when I run perl I still get the same error saying needs
>
> *./sendmessage.pl
> Can't locate Net/SMPP.pm in @INC (@INC contains:
> /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi
> /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl
> /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi
> /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl
> /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8 .)
> at ./sendmessage.pl line 18.
> BEGIN failed--compilation aborted at ./sendmessage.pl line 18.
>
> What else do I need?

It may be too late for you, but I've added Net::SMPP to the list of
CPA modules that I have packaged into RPMs in my repository.

See http://rpm.mag-sol.com/

Cheers,

Dave...
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 

Thread Tools




All times are GMT. The time now is 08:03 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org