| |
| |
| |
|
Comments:
<0> hey guys <1> Hey <2> 'lo <1> How are ya? <2> fine as monofilament <2> you ? <1> Not bad, tired though. Late night, early morning <2> oh...
<1> But my good buddy caffeine is here for the ride <2> I had a late morning. <1> Yeah, I was messing with my aquarium and the new critters I put in :) <2> I decided to climb back in bed and wait for the headache to go away. <1> Oh, ouch. <1> My new shrimp is pretty neat ;) <1> http://conference.ifas.ufl.edu/mo/shrimp.jpg <-- thats what it looks like :) <1> Anyway, enough banter. I actually do have a question. I was given a perl script by a friend, and I understand how it works and all, but I get an error when I run it on my box. It appears that I am missing some sort of module. I don't really know the inner workings of perl, I only know how to write basic perl scripts, at this point. <1> This is the error: <1> Can't locate Net/Telnet/Cisco.pm in @INC (@INC contains: /usr/local/lib/perl5/site_perl/5.8.7/mach /usr/local/lib/perl5/site_perl/5.8.7 /usr/local/lib/perl5/site_perl/5.6.2 /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.8.7/BSDPAN /usr/local/lib/perl5/5.8.7/mach /usr/local/lib/perl5/5.8.7 .) at ./switches.pl line 3. <2> ah <2> can you find the module by hand ? <1> I'm not really sure how. <2> with a find or locate or whatever find-functionality there is on your system. <2> if not you may have to install it. <1> I have find, but I've never had the opportunity where I've needed to use it. I know this isnt on topic for the channel, so I'll see if I can find how to use it on google or in another channel <2> maybe you can find it here: http://www.cpan.org/ <2> hmmm <2> find / | grep Cisco.pm | less <1> Oh, that simple huh <2> oh there probably are combinations of several options so you can leave the grep out... <1> Ah well, I'll check the manpages on it once im done working out this problem... since it's obviously something useful to know. <2> it can come in handy =) I lose everything. <1> Lots of permission denied errors. I guess I should be root when running this <2> ehm... <2> could be. I don't even know what you're on =) <1> freebsd 6 <1> it didnt find anything perl related anyway <2> then you may want to look at CPAN see if you can get the module. <1> yes sir, I found it http://search.cpan.org/~joshua/Net-Telnet-Cisco-1.10/Cisco.pm
<2> ( or whatever place you get your modules from ) <2> if you can install that one, you probably won't have to do anything. <1> hehe I don't get them from anywhere... perl was only installed because it was a dependancy for something else :P <2> but for future reference, if you look at your environment variables there is one which has perl in it. <2> perl will look for modules in that path, <2> ( check the perl -I option ) <2> oooh, dependencies... <2> joy joy. <1> $ perl -I <1> No directory specified for -I. <2> *nod nod* after the I you specify the path in which you have the modules that shuld be used. <1> Ah thats okay, I'll stop buggin ya about this stuff <2> it's okay =) <2> I'll help where I can. <2> but my knowledge stops at the borders of the OS. <1> what OS do you normally run perl on, yourself? <2> My choice at home is windows. <2> I work at a place where they even installed Debian on the toilet seat... <1> Well, you're certainly well versed in nix it seems, for a windows user <2> ( which is why I cannot stand the stuff ) <2> Sun Tzu =) <1> :) <2> sigh <2> Beware the Ides of March <3> Beware it? Heck, I'm looking forward to it. That's almost spring. <1> Hey Mariandroid, you busy? <2> myes, but what's the question ? <1> I have a script that uses net::snmp and works very well. I want to add a small code snippet to it, which also works well. but I don't know perl well enough to be able to edit it. Would you mind having a look? Or are you too busy? <4> BSDaemon, at the prompt do... cpan -i Net::Telnet::Cisco <4> that shold install the module <4> read perldoc cpan for further details <4> and, of course you have to be root. <1> thanks TopMach <1> I got it all installed though ;)
Return to
#perl or Go to some related
logs:
#worldchat who sang yeh mera dil #allnitecafe #chat-world #allnitecafe warcraft oilslick angeleyes72 babay name india #chat-world #kl
|
|