|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
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
|
|||
|
|||
|
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. |
|
#2
|
||||
|
||||
|
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 |
|
#3
|
|||
|
|||
|
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 ![]() |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > BSD Help > setting Perl @INC freeBSD 5.3 |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|