SunQuest
           BSD Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsBSD Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old December 28th, 2004, 10:02 AM
cbchev68 cbchev68 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Location: NH
Posts: 228 cbchev68 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 12 h 25 m 38 sec
Reputation Power: 6
setting Perl @INC freeBSD 5.3

Not sure if this the the correct forum, please correct me if that is the case. I am trying to find out where perl defines the @INC varible, as I am having problems running a perl script.

A forum search, and a google search yielded no useful results, probably due to my lack of perl knowledge.

Error when running the script
Code:
server4# /home/temp/aimsniff-0.9d/aimSniff.pl
Can't locate Net/Pcap.pm in @INC (@INC contains: /usr/local/lib/perl5/site_perl/5.6.1/mach /usr/local/lib/perl5/site_perl/5.6.1 /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.6.1/BSDPAN /usr/local/lib/perl5/5.6.1/mach /usr/local/lib/perl5/5.6.1 .) at /home/temp/aimsniff-0.9d/aimSniff.pl line 36.
BEGIN failed--compilation aborted at /home/temp/aimsniff-0.9d/aimSniff.pl line 36.


Because of this missing dependancy, I installed Perl 5.8.5 from ports, and ran 'use.perl port' to create the necessary links. Pcap.pm is now located here

/usr/local/lib/perl5/site_perl/5.8.5/mach/Net/Pcap.pm

However I still get the same error. Which tells me that I need to define the new location in @INC.

Thanks for any help or direction.

Reply With Quote
  #2  
Old December 28th, 2004, 12:58 PM
Scorpions4ever's Avatar
Scorpions4ever Scorpions4ever is offline
Banned ;)
Dev Shed God 5th Plane (7000 - 7499 posts)
 
Join Date: Nov 2001
Location: Glendale, Los Angeles County, California, USA
Posts: 7,430 Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level) 
Time spent in forums: 4 Weeks 1 Day 21 h 41 m 55 sec
Reputation Power: 784
Wait a minute... it is still looking at perl 5.6.1 paths. FreeBSD 5.x doesn't have perl in the base system, so you must have installed perl 5.6.1 from ports as well. Maybe use.perl port is getting confused since both perl versions are both installed from ports. If so, try looking at the use.perl script and see if you can change it to look for the 5.8 paths. Alternatively, try pkg_delete on 5.6.1 and then reinstall 5.8 if necessary and try again.
__________________
Up the Irons
What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home.
"Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest
Down with Sharon Osbourne

Puzzle of the Month solved by sizeablegrin, etienne141 and L7Sqr, superior C/C++ programmers of the month

Reply With Quote
  #3  
Old December 28th, 2004, 01:50 PM
cbchev68 cbchev68 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Location: NH
Posts: 228 cbchev68 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 12 h 25 m 38 sec
Reputation Power: 6
Bingo! 5.6.1 vs 5.8.5 path problem cured... I dont remember installing 5.6.1, but I must have...

I removed both, and reinstalled 5.8.5 from ports...

Thanks again..

Now I have other dependancies to resolve

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsBSD Help > setting Perl @INC freeBSD 5.3


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway