in reply to problem installing Net-RawIP-0.25 in strawberry perl

I have done some more lookup and found the great feature of installing over the net + dependancies.

"perl -MCPAN -e "install Net::Pcap""

This seems to work great for most modules but i'm still getting the error with the Pcap one

checking for pcap_lib_version() in -lwpcap... no

Any ideas on what the default location should be for pcap_lib and how i can get this module to install?

Thanks, Tom

  • Comment on Re: problem installing Net-RawIP-0.25 in strawberry perl

Replies are listed 'Best First'.
Re^2: problem installing Net-RawIP-0.25 in strawberry perl
by syphilis (Archbishop) on Aug 08, 2009 at 08:12 UTC
    Hi,
    Does Net::RawIP need Net::Pcap ? If so, there is a Net::Pcap ppm package you should be able to use. Just run (while connected to the internet):
    ppm install http://www.bribes.org/perl/ppm/Net-Pcap.ppd
    You might also want to read these notes, though I think you've got that part of it covered.

    However, while the libpcap library is needed for Net::RawIP, I don't think Net::Pcap is needed - it's not listed as a pre-requisite in the Net::RawIP Makefile.PL. The bad news is that no-one seems to have yet built Net::RawIP for Windows, which would suggest that it might not be such a trivial task.

    What happens if, having installed WinPcap, you forget about trying to build Net::Pcap, and try to build Net::RawIP ?

    Also, which version of Strawberry Perl do you have ? Running perl -v will tell you.

    Cheers,
    Rob
      Hi Rob,

      Thanks for the reply, but up untill now no joy :-(

      I ran the ppm install http://www.bribes.org/perl/ppm/Net-Pcap.ppd => this command seems to have run just fine.

      However wehn i now try ot run the RapIP setup i still get:

      C:\Users\tomd\Desktop\perl\Net-RawIP-0.25\Net-RawIP-0.25>perl -MCPAN -e "in stall Net::RawIP" Database was generated on Tue, 11 Aug 2009 13:34:20 GMT Running install for module 'Net::RawIP' Running make for S/SA/SAPER/Net-RawIP-0.25.tar.gz Checksum for C:\strawberry\cpan\sources\authors\id\S\SA\SAPER\Net-RawIP-0.25.tar .gz ok CPAN.pm: Going to build S/SA/SAPER/Net-RawIP-0.25.tar.gz Use of uninitialized value in concatenation (.) or string at Makefile.PL line 52 . Use of uninitialized value in print at Makefile.PL line 54. Use of uninitialized value in eval "string" at Makefile.PL line 55. Compiler: gcc gcc (GCC) 3.4.5 (mingw-vista special r3) Copyright (C) 2004 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Could not load the pcap library. Please see the README file on how to install it. Be sure to also install the C headers (pcap.h). Warning: No success on commandC:\strawberry\perl\bin\perl.exe Makefile.PL SAPER/Net-RawIP-0.25.tar.gz C:\strawberry\perl\bin\perl.exe Makefile.PL -- NOT OK Running make test Make had some problems, won't test Running make install Make had some problems, won't install

      My version of perl is:

      C:\Users\tomd\Desktop\perl\Net-RawIP-0.25\Net-RawIP-0.25>perl -v This is perl, v5.10.0 built for MSWin32-x86-multi-thread Copyright 1987-2007, Larry Wall Perl may be copied only under the terms of either the Artistic License or the GNU General Public License, which may be found in the Perl 5 source kit. Complete documentation for Perl, including FAQ lists, should be found on this system using "man perl" or "perldoc perl". If you have access to the Internet, point your browser at http://www.perl.org/, the Perl Home Page.

      Any advice is much appreciated.

      Tom

        Hi again Rob,

        I did some more research and saw this line in one of the readme file.

        NOTE: Ethernet related methods currently implemented only on Linux and *BSD! Help with port eth.c to other platforms is very appreciated.

        i'm starting to guess the module just does not work on windows whatever we do? What are your thoughts on this?

        Thanks,

        Tom