LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 12-15-2008, 06:46 AM   #1
netpumber
Member
 
Registered: Sep 2007
Location: In My Box
Distribution: Arch Linux
Posts: 333

Rep: Reputation: 31
Perl Error LWP/Simple.pm


I run a perl script and it returns me back this error :
Code:
Can't locate LWP/Simple.pm in @INC (@INC contains: /usr/lib/perl5/5.8.8/i486-linux-thread-multi /usr/lib/perl5/5.8.8 /usr/lib/perl5/site_perl/5.8.8/i486-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.8/i486-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl .) at mysql.pl line 57.
BEGIN failed--compilation aborted at mysql.pl line 57.
How i install this LWP/Simple.pm ?

Thanx in advanced!!
 
Old 12-15-2008, 06:50 AM   #2
netpumber
Member
 
Registered: Sep 2007
Location: In My Box
Distribution: Arch Linux
Posts: 333

Original Poster
Rep: Reputation: 31
I have to do this

perl -MCPAN -e 'install LWP::Simple'

to install this module or not .. ?
 
Old 12-15-2008, 07:00 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,927

Rep: Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587
Please do 'su' before the command, if you want
Simple.pm in /usr/lib/perl....

" perl -MCPAN -e 'install LWP::Simple' " is OK.
 
Old 12-15-2008, 01:52 PM   #4
netpumber
Member
 
Registered: Sep 2007
Location: In My Box
Distribution: Arch Linux
Posts: 333

Original Poster
Rep: Reputation: 31
Omg I got this error Now.. :S

Quote:
Can't locate Net/Pcap.pm in @INC (@INC contains: /usr/lib/perl5/5.8.8/i486-linux-thread-multi /usr/lib/perl5/5.8.8 /usr/lib/perl5/site_perl/5.8.8/i486-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.8/i486-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl .) at (eval 5) line 2.
BEGIN failed--compilation aborted at (eval 5) line 2.
I try :

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

But it returns :

Quote:
/usr/bin/make -- NOT OK
Running make test
Can't test without successful make
Running make install
make had returned bad status, install seems impossible
 
Old 12-15-2008, 02:33 PM   #5
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,473

Rep: Reputation: Disabled
Per the post http://www.linuxquestions.org/questi...03#post3032503 you will need to install version 0.14.

Brian
 
Old 12-16-2008, 02:10 PM   #6
netpumber
Member
 
Registered: Sep 2007
Location: In My Box
Distribution: Arch Linux
Posts: 333

Original Poster
Rep: Reputation: 31
OK !! i run this as root :

cpan[1]> install Net::Pcap


and it returns me this :

Quote:
CPAN: Storable loaded ok
Going to read /root/.cpan/Metadata
Database was generated on Sun, 14 Dec 2008 23:26:56 GMT
CPAN: LWP::UserAgent loaded ok
Fetching with LWP:
ftp://ftp.ntua.gr/pub/lang/perl/authors/01mailrc.txt.gz
Going to read /root/.cpan/sources/authors/01mailrc.txt.gz
CPAN: Compress::Zlib loaded ok
Fetching with LWP:
ftp://ftp.ntua.gr/pub/lang/perl/modu...details.txt.gz
Going to read /root/.cpan/sources/modules/02packages.details.txt.gz
Database was generated on Mon, 15 Dec 2008 21:27:44 GMT

There's a new CPAN.pm version (v1.9301) available!
[Current version is v1.7602]
You might want to try
install Bundle::CPAN
reload cpan
without quitting the current session. It should be a seamless upgrade
while we are running...

Fetching with LWP:
ftp://ftp.ntua.gr/pub/lang/perl/modu...odlist.data.gz
Going to read /root/.cpan/sources/modules/03modlist.data.gz
Going to write /root/.cpan/Metadata
Running install for module Net::Pcap
Running make for S/SA/SAPER/Net-Pcap-0.16.tar.gz
CPAN: Digest::MD5 loaded ok
Checksum for /root/.cpan/sources/authors/id/S/SA/SAPER/Net-Pcap-0.16.tar.gz ok
Scanning cache /root/.cpan/build for sizes
Net-Pcap-0.16/
Net-Pcap-0.16/bin/
Net-Pcap-0.16/bin/pcapinfo
Net-Pcap-0.16/Changes
Net-Pcap-0.16/eg/
Net-Pcap-0.16/eg/pcapdump
Net-Pcap-0.16/eg/pktdump.pl
Net-Pcap-0.16/fallback/
Net-Pcap-0.16/fallback/const-c.inc
Net-Pcap-0.16/fallback/const-xs.inc
Net-Pcap-0.16/Makefile.PL
Net-Pcap-0.16/MANIFEST
Net-Pcap-0.16/META.yml
Net-Pcap-0.16/Pcap.pm
Net-Pcap-0.16/Pcap.xs
Net-Pcap-0.16/ppport.h
Net-Pcap-0.16/README
Net-Pcap-0.16/stubs.inc
Net-Pcap-0.16/t/
Net-Pcap-0.16/t/00-load.t
Net-Pcap-0.16/t/01-api.t
Net-Pcap-0.16/t/02-lookup.t
Net-Pcap-0.16/t/03-openlive.t
Net-Pcap-0.16/t/04-loop.t
Net-Pcap-0.16/t/05-dump.t
Net-Pcap-0.16/t/06-offline.t
Net-Pcap-0.16/t/07-stats.t
Net-Pcap-0.16/t/08-filter.t
Net-Pcap-0.16/t/09-error.t
Net-Pcap-0.16/t/10-fileno.t
Net-Pcap-0.16/t/11-snapshot.t
Net-Pcap-0.16/t/12-next.t
Net-Pcap-0.16/t/13-dispatch.t
Net-Pcap-0.16/t/14-datalink.t
Net-Pcap-0.16/t/15-is_swapped.t
Net-Pcap-0.16/t/16-setnonblock.t
Net-Pcap-0.16/t/17-lib_version.t
Net-Pcap-0.16/t/18-open_dead.t
Net-Pcap-0.16/t/19-breakloop.t
Net-Pcap-0.16/t/20-constants.t
Net-Pcap-0.16/t/21-next_ex.t
Net-Pcap-0.16/t/22-open.t
Net-Pcap-0.16/t/23-srcstr.t
Net-Pcap-0.16/t/50-poe-component-pcap.t
Net-Pcap-0.16/t/distchk.t
Net-Pcap-0.16/t/pod.t
Net-Pcap-0.16/t/podcover.t
Net-Pcap-0.16/t/podspell.t
Net-Pcap-0.16/t/portfs.t
Net-Pcap-0.16/t/README
Net-Pcap-0.16/t/samples/
Net-Pcap-0.16/t/samples/ping-ietf-20pk-be.dmp
Net-Pcap-0.16/t/samples/ping-ietf-20pk-le.dmp
Net-Pcap-0.16/t/Utils.pm
Net-Pcap-0.16/typemap
Removing previously used /root/.cpan/build/Net-Pcap-0.16

CPAN.pm: Going to build S/SA/SAPER/Net-Pcap-0.16.tar.gz

looking for -lpcap... yes
checking for pcap_lib_version() in -lpcap... yes
detecting available functions... ok
WARNING: LICENSE is not a known parameter.
Checking if your kit is complete...
Looks good
'LICENSE' is not a known MakeMaker parameter name.
Writing Makefile for Net::Pcap
cp Pcap.pm blib/lib/Net/Pcap.pm
/usr/bin/perl5.8.8 /usr/lib/perl5/5.8.8/ExtUtils/xsubpp -typemap /usr/lib/perl5/5.8.8/ExtUtils/typemap -typemap typemap Pcap.xs > Pcap.xsc && mv Pcap.xsc Pcap.c
cc -c -Wall -Wwrite-strings -O2 -march=i486 -mtune=i686 -DVERSION=\"0.16\" -DXS_VERSION=\"0.16\" -fPIC "-I/usr/lib/perl5/5.8.8/i486-linux-thread-multi/CORE" -DHAVE_BLANK -DHAVE_PCAP_LIB_VERSION Pcap.c
In file included from Pcap.xs:43:
stubs.inc:85:2: προειδοποίηση: #warning "the function pcap_findalldevs() is not available, but will be emulated"
In file included from Pcap.xs:43:
stubs.inc:91: σφάλμα: redefinition of ‘struct pcap_if’
stubs.inc:113:2: προειδοποίηση: #warning "the function pcap_breakloop() is not available"
stubs.inc:127:2: προειδοποίηση: #warning "the function pcap_setnonblock() is not available"
stubs.inc:142:2: προειδοποίηση: #warning "the function pcap_getnonblock() is not available"
stubs.inc:157:2: προειδοποίηση: #warning "the function pcap_dump_file() is not available"
stubs.inc:172:2: προειδοποίηση: #warning "the function pcap_dump_flush() is not available"
stubs.inc:187:2: προειδοποίηση: #warning "the function pcap_list_datalinks() is not available"
stubs.inc:202:2: προειδοποίηση: #warning "the function pcap_set_datalink() is not available"
stubs.inc:217:2: προειδοποίηση: #warning "the function pcap_datalink_name_to_val() is not available"
stubs.inc:232:2: προειδοποίηση: #warning "the function pcap_datalink_val_to_name() is not available"
stubs.inc:247:2: προειδοποίηση: #warning "the function pcap_datalink_val_to_description() is not available"
stubs.inc:262:2: προειδοποίηση: #warning "the function pcap_compile_nopcap() is not available"
stubs.inc:267: σφάλμα: conflicting types for ‘pcap_compile_nopcap’
/usr/include/pcap.h:245: σφάλμα: previous declaration of ‘pcap_compile_nopcap’ was here
stubs.inc:268: σφάλμα: conflicting types for ‘pcap_compile_nopcap’
/usr/include/pcap.h:245: σφάλμα: previous declaration of ‘pcap_compile_nopcap’ was here
stubs.inc:277:2: προειδοποίηση: #warning "the function pcap_get_selectable_fd() is not available"
stubs.inc:292:2: προειδοποίηση: #warning "the function pcap_next_ex() is not available"
stubs.inc:307:2: προειδοποίηση: #warning "the function pcap_sendpacket() is not available"
stubs.inc:322:2: προειδοποίηση: #warning "the function pcap_createsrcstr() is not available"
stubs.inc:337:2: προειδοποίηση: #warning "the function pcap_parsesrcstr() is not available"
stubs.inc:352:2: προειδοποίηση: #warning "the function pcap_open() is not available"
stubs.inc:373:2: προειδοποίηση: #warning "the function pcap_setbuff() is not available"
stubs.inc:388:2: προειδοποίηση: #warning "the function pcap_setuserbuffer() is not available"
stubs.inc:403:2: προειδοποίηση: #warning "the function pcap_setmode() is not available"
stubs.inc:418:2: προειδοποίηση: #warning "the function pcap_setmintocopy() is not available"
stubs.inc:433:2: προειδοποίηση: #warning "the function pcap_sendqueue_alloc() is not available"
stubs.inc:455:2: προειδοποίηση: #warning "the function pcap_sendqueue_destroy() is not available"
stubs.inc:469:2: προειδοποίηση: #warning "the function pcap_sendqueue_queue() is not available"
stubs.inc:484:2: προειδοποίηση: #warning "the function pcap_sendqueue_transmit() is not available"
stubs.inc:499:2: προειδοποίηση: #warning "the function pcap_event() is not available"
stubs.inc:514:2: προειδοποίηση: #warning "the function pcap_setsampling() is not available"
Pcap.xs: Στη συνάρτηση ‘callback_wrapper’:
Pcap.xs:57: προειδοποίηση: pointer targets in passing argument 2 of ‘Perl_newSVpv’ differ in signedness
Pcap.xs: Στη συνάρτηση ‘XS_Net__Pcap_next_ex’:
Pcap.xs:494: προειδοποίηση: pointer targets in passing argument 3 of ‘Perl_sv_setpvn’ differ in signedness
Pcap.xs: Στη συνάρτηση ‘XS_Net__Pcap_dump’:
Pcap.xs:553: προειδοποίηση: pointer targets in passing argument 3 of ‘pcap_dump’ differ in signedness
Pcap.c: Στη συνάρτηση ‘XS_Net__Pcap_dump_file’:
Pcap.c:1083: προειδοποίηση: passing argument 2 of ‘Perl_newGVgen’ discards qualifiers from pointer target type
Pcap.c:1085: προειδοποίηση: passing argument 3 of ‘Perl_do_open’ discards qualifiers from pointer target type
Pcap.c: Στη συνάρτηση ‘XS_Net__Pcap_strerror’:
Pcap.c:1384: προειδοποίηση: assignment discards qualifiers from pointer target type
Pcap.c: Στη συνάρτηση ‘XS_Net__Pcap_file’:
Pcap.c:1428: προειδοποίηση: passing argument 2 of ‘Perl_newGVgen’ discards qualifiers from pointer target type
Pcap.c:1430: προειδοποίηση: passing argument 3 of ‘Perl_do_open’ discards qualifiers from pointer target type
Pcap.xs: Στη συνάρτηση ‘XS_Net__Pcap_sendpacket’:
Pcap.xs:963: προειδοποίηση: pointer targets in passing argument 2 of ‘pcap_sendpacket’ differ in signedness
Pcap.c: Στη συνάρτηση ‘boot_Net__Pcap’:
Pcap.c:2050: προειδοποίηση: initialization discards qualifiers from pointer target type
Pcap.c:2054: προειδοποίηση: passing argument 2 of ‘Perl_newXS’ discards qualifiers from pointer target type
Pcap.c:2055: προειδοποίηση: passing argument 2 of ‘Perl_newXS’ discards qualifiers from pointer target type
Pcap.c:2056: προειδοποίηση: passing argument 2 of ‘Perl_newXS’ discards qualifiers from pointer target type
Pcap.c:2057: προειδοποίηση: passing argument 2 of ‘Perl_newXS’ discards qualifiers from pointer target type
Pcap.c:2058: προειδοποίηση: passing argument 2 of ‘Perl_newXS’ discards qualifiers from pointer target type
Pcap.c:2059: προειδοποίηση: passing argument 2 of ‘Perl_newXS’ discards qualifiers from pointer target type
Pcap.c:2060: προειδοποίηση: passing argument 2 of ‘Perl_newXS’ discards qualifiers from pointer target type
Pcap.c:2061: προειδοποίηση: passing argument 2 of ‘Perl_newXS’ discards qualifiers from pointer target type
Pcap.c:2062: προειδοποίηση: passing argument 2 of ‘Perl_newXS’ discards qualifiers from pointer target type
Pcap.c:2063: προειδοποίηση: passing argument 2 of ‘Perl_newXS’ discards qualifiers from pointer target type
Pcap.c:2064: προειδοποίηση: passing argument 2 of ‘Perl_newXS’ discards qualifiers from pointer target type
Pcap.c:2065: προειδοποίηση: passing argument 2 of ‘Perl_newXS’ discards qualifiers from pointer target type
Pcap.c:2066: προειδοποίηση: passing argument 2 of ‘Perl_newXS’ discards qualifiers from pointer target type
Pcap.c:2067: προειδοποίηση: passing argument 2 of ‘Perl_newXS’ discards qualifiers from pointer target type
Pcap.c:2068: προειδοποίηση: passing argument 2 of ‘Perl_newXS’ discards qualifiers from pointer target type
Pcap.c:2069: προειδοποίηση: passing argument 2 of ‘Perl_newXS’ discards qualifiers from pointer target type
Pcap.c:2070: προειδοποίηση: passing argument 2 of ‘Perl_newXS’ discards qualifiers from pointer target type
Pcap.c:2071: προειδοποίηση: passing argument 2 of ‘Perl_newXS’ discards qualifiers from pointer target type
Pcap.c:2072: προειδοποίηση: passing argument 2 of ‘Perl_newXS’ discards qualifiers from pointer target type
Pcap.c:2073: προειδοποίηση: passing argument 2 of ‘Perl_newXS’ discards qualifiers from pointer target type
Pcap.c:2074: προειδοποίηση: passing argument 2 of ‘Perl_newXS’ discards qualifiers from pointer target type
Pcap.c:2075: προειδοποίηση: passing argument 2 of ‘Perl_newXS’ discards qualifiers from pointer target type
Pcap.c:2076: προειδοποίηση: passing argument 2 of ‘Perl_newXS’ discards qualifiers from pointer target type
Pcap.c:2077: προειδοποίηση: passing argument 2 of ‘Perl_newXS’ discards qualifiers from pointer target type
Pcap.c:2078: προειδοποίηση: passing argument 2 of ‘Perl_newXS’ discards qualifiers from pointer target type
Pcap.c:2079: προειδοποίηση: passing argument 2 of ‘Perl_newXS’ discards qualifiers from pointer target type
Pcap.c:2080: προειδοποίηση: passing argument 2 of ‘Perl_newXS’ discards qualifiers from pointer target type
Pcap.c:2081: προειδοποίηση: passing argument 2 of ‘Perl_newXS’ discards qualifiers from pointer target type
Pcap.c:2082: προειδοποίηση: passing argument 2 of ‘Perl_newXS’ discards qualifiers from pointer target type
Pcap.c:2083: προειδοποίηση: passing argument 2 of ‘Perl_newXS’ discards qualifiers from pointer target type
Pcap.c:2084: προειδοποίηση: passing argument 2 of ‘Perl_newXS’ discards qualifiers from pointer target type
Pcap.c:2085: προειδοποίηση: passing argument 2 of ‘Perl_newXS’ discards qualifiers from pointer target type
Pcap.c:2086: προειδοποίηση: passing argument 2 of ‘Perl_newXS’ discards qualifiers from pointer target type
Pcap.c:2087: προειδοποίηση: passing argument 2 of ‘Perl_newXS’ discards qualifiers from pointer target type
Pcap.c:2088: προειδοποίηση: passing argument 2 of ‘Perl_newXS’ discards qualifiers from pointer target type
Pcap.c:2089: προειδοποίηση: passing argument 2 of ‘Perl_newXS’ discards qualifiers from pointer target type
Pcap.c:2090: προειδοποίηση: passing argument 2 of ‘Perl_newXS’ discards qualifiers from pointer target type
Pcap.c:2091: προειδοποίηση: passing argument 2 of ‘Perl_newXS’ discards qualifiers from pointer target type
Pcap.c:2092: προειδοποίηση: passing argument 2 of ‘Perl_newXS’ discards qualifiers from pointer target type
Pcap.c:2093: προειδοποίηση: passing argument 2 of ‘Perl_newXS’ discards qualifiers from pointer target type
Pcap.c:2094: προειδοποίηση: passing argument 2 of ‘Perl_newXS’ discards qualifiers from pointer target type
Pcap.c:2095: προειδοποίηση: passing argument 2 of ‘Perl_newXS’ discards qualifiers from pointer target type
Pcap.c:2096: προειδοποίηση: passing argument 2 of ‘Perl_newXS’ discards qualifiers from pointer target type
Pcap.c:2097: προειδοποίηση: passing argument 2 of ‘Perl_newXS’ discards qualifiers from pointer target type
Pcap.c:2098: προειδοποίηση: passing argument 2 of ‘Perl_newXS’ discards qualifiers from pointer target type
Pcap.c:2099: προειδοποίηση: passing argument 2 of ‘Perl_newXS’ discards qualifiers from pointer target type
Pcap.c:2100: προειδοποίηση: passing argument 2 of ‘Perl_newXS’ discards qualifiers from pointer target type
Pcap.c:2101: προειδοποίηση: passing argument 2 of ‘Perl_newXS’ discards qualifiers from pointer target type
Pcap.c:2102: προειδοποίηση: passing argument 2 of ‘Perl_newXS’ discards qualifiers from pointer target type
Pcap.c:2103: προειδοποίηση: passing argument 2 of ‘Perl_newXS’ discards qualifiers from pointer target type
Pcap.c:2104: προειδοποίηση: passing argument 2 of ‘Perl_newXS’ discards qualifiers from pointer target type
Pcap.c:2105: προειδοποίηση: passing argument 2 of ‘Perl_newXS’ discards qualifiers from pointer target type
Pcap.c:2106: προειδοποίηση: passing argument 2 of ‘Perl_newXS’ discards qualifiers from pointer target type
Pcap.c:2107: προειδοποίηση: passing argument 2 of ‘Perl_newXS’ discards qualifiers from pointer target type
make: *** [Pcap.o] Error 1
/usr/bin/make -- NOT OK
Running make test
Can't test without successful make
Running make install
make had returned bad status, install seems impossible
 
Old 12-16-2008, 02:28 PM   #7
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,473

Rep: Reputation: Disabled
You will need to download the sources for 0.14 and manually compile and install them.

Brian
 
Old 12-17-2008, 07:47 AM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,927

Rep: Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587
You also could try this version
http://packages.debian.org/lenny/libnet-pcap-perl

which is Net::Pcap-0.04 > > [libnet-pcap-perl_0.04.orig.tar.gz]
( used by most Debian systems )

( I found no link for '0.14' )

EDIT : here it is
http://search.cpan.org/~saper/Net-Pcap-0.14/
....

Last edited by knudfl; 12-17-2008 at 07:49 AM.
 
Old 12-17-2008, 09:41 AM   #9
netpumber
Member
 
Registered: Sep 2007
Location: In My Box
Distribution: Arch Linux
Posts: 333

Original Poster
Rep: Reputation: 31
I download the source code... i Run perl Makefile.PL and then in the make command it returns this BAD Error..:s

Quote:
bash-3.1# make
cp Pcap.pm blib/lib/Net/Pcap.pm
cp ._Pcap.pm blib/lib/Net/._Pcap.pm
/usr/bin/perl5.8.8 /usr/lib/perl5/5.8.8/ExtUtils/xsubpp -typemap /usr/lib/perl5/5.8.8/ExtUtils/typemap -typemap typemap Pcap.xs > Pcap.xsc && mv Pcap.xsc Pcap.c
cc -c -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -march=i486 -mtune=i686 -DVERSION=\"0.15\" -DXS_VERSION=\"0.15\" -fPIC "-I/usr/lib/perl5/5.8.8/i486-linux-thread-multi/CORE" -DHAVE_BLANK -DHAVE_PCAP_LIB_VERSION Pcap.c
In file included from Pcap.xs:43:
stubs.inc:85:2: προειδοποίηση: #warning "the function pcap_findalldevs() is not available, but will be emulated"
In file included from Pcap.xs:43:
stubs.inc:91: σφάλμα: redefinition of ‘struct pcap_if’
stubs.inc:113:2: προειδοποίηση: #warning "the function pcap_breakloop() is not available"
stubs.inc:127:2: προειδοποίηση: #warning "the function pcap_setnonblock() is not available"
stubs.inc:142:2: προειδοποίηση: #warning "the function pcap_getnonblock() is not available"
stubs.inc:157:2: προειδοποίηση: #warning "the function pcap_dump_file() is not available"
stubs.inc:172:2: προειδοποίηση: #warning "the function pcap_dump_flush() is not available"
stubs.inc:187:2: προειδοποίηση: #warning "the function pcap_list_datalinks() is not available"
stubs.inc:202:2: προειδοποίηση: #warning "the function pcap_set_datalink() is not available"
stubs.inc:217:2: προειδοποίηση: #warning "the function pcap_datalink_name_to_val() is not available"
stubs.inc:232:2: προειδοποίηση: #warning "the function pcap_datalink_val_to_name() is not available"
stubs.inc:247:2: προειδοποίηση: #warning "the function pcap_datalink_val_to_description() is not available"
stubs.inc:262:2: προειδοποίηση: #warning "the function pcap_compile_nopcap() is not available"
stubs.inc:267: σφάλμα: conflicting types for ‘pcap_compile_nopcap’
/usr/include/pcap.h:245: σφάλμα: previous declaration of ‘pcap_compile_nopcap’ was here
stubs.inc:268: σφάλμα: conflicting types for ‘pcap_compile_nopcap’
/usr/include/pcap.h:245: σφάλμα: previous declaration of ‘pcap_compile_nopcap’ was here
stubs.inc:277:2: προειδοποίηση: #warning "the function pcap_get_selectable_fd() is not available"
stubs.inc:292:2: προειδοποίηση: #warning "the function pcap_next_ex() is not available"
stubs.inc:307:2: προειδοποίηση: #warning "the function pcap_sendpacket() is not available"
stubs.inc:322:2: προειδοποίηση: #warning "the function pcap_createsrcstr() is not available"
stubs.inc:337:2: προειδοποίηση: #warning "the function pcap_parsesrcstr() is not available"
stubs.inc:352:2: προειδοποίηση: #warning "the function pcap_open() is not available"
stubs.inc:373:2: προειδοποίηση: #warning "the function pcap_setbuff() is not available"
stubs.inc:388:2: προειδοποίηση: #warning "the function pcap_setuserbuffer() is not available"
stubs.inc:403:2: προειδοποίηση: #warning "the function pcap_setmode() is not available"
stubs.inc:418:2: προειδοποίηση: #warning "the function pcap_setmintocopy() is not available"
stubs.inc:433:2: προειδοποίηση: #warning "the function pcap_sendqueue_alloc() is not available"
stubs.inc:455:2: προειδοποίηση: #warning "the function pcap_sendqueue_destroy() is not available"
stubs.inc:469:2: προειδοποίηση: #warning "the function pcap_sendqueue_queue() is not available"
stubs.inc:484:2: προειδοποίηση: #warning "the function pcap_sendqueue_transmit() is not available"
stubs.inc:499:2: προειδοποίηση: #warning "the function pcap_event() is not available"
stubs.inc:514:2: προειδοποίηση: #warning "the function pcap_setsampling() is not available"
Pcap.xs: Στη συνάρτηση ‘callback_wrapper’:
Pcap.xs:66: προειδοποίηση: ISO C90 forbids mixed declarations and code
Pcap.c: Στη συνάρτηση ‘XS_Net__Pcap_strerror’:
Pcap.c:1382: προειδοποίηση: assignment discards qualifiers from pointer target type
make: *** [Pcap.o] Error 1
 
Old 12-17-2008, 09:48 AM   #10
netpumber
Member
 
Registered: Sep 2007
Location: In My Box
Distribution: Arch Linux
Posts: 333

Original Poster
Rep: Reputation: 31
OK knudfl Thanx a lot ..
 
Old 12-17-2008, 09:54 AM   #11
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,473

Rep: Reputation: Disabled
When I did it, "perl Makefile.PL" mentioned an unsatisfied dependency. Did you see the same message and install the dependency mentioned? I don't remember now what that dependency was. After that, the compile went fine, although "make test" failed. This, I think, can be ignored and you can "make install" anyway.

Also, If you use code tags instead of quote tags your posts will be more readable.

Brian
 
Old 12-18-2008, 12:06 AM   #12
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,927

Rep: Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587
Why no try

# 'apt-get install libnet-pcap-perl'

should take care of dependencies ( and is tested ).
....
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Perl with LWP and NTLM wondergirl Programming 3 05-22-2010 02:32 PM
perl: simple one line replacement, simple error message! pwd_pwd_omg_pwd Programming 8 11-19-2008 12:53 PM
Perl install LWP module ; problems ... danran Programming 5 05-03-2007 01:02 PM
Can't locate LWP/Simple.pm Dr_Death_UAE Linux - General 1 03-21-2006 03:30 PM
PERL error trying to run simple HTML page.... vous Programming 1 08-25-2003 09:01 AM


All times are GMT -5. The time now is 10:42 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration