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 *
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
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/
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
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
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?
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
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.
Cheers,
Dave...