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 at 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 at 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
>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/
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 at gmail.com
> > 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 at 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...