em37
asked on
How do I install net::pcap on a windows server?
I'm trying to install the Perl module net::pcap on Windows Server 2003 without internet access with a Active State Perl and winpcap installed and WpdPack located in the root of the C drive. I get the following message when I use nmake to install the module. I realize I need a C compiler and have MSVC C++ express installed. Any help would be appreciated. Thx
C:\temp\Net-Pcap-0.16>perl Makefile.PL INC=-IC:WpdPack\Include "LclsIBS=-LC:\WpdPack\Lib -lwpcap"
Unable to patch socket.h
looking for -lwpcap... yes
checking for pcap_lib_version() in -lwpcap... no
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
You appear to lack the WinPcap developer pack.
If it is installed in a non-standard location, please try setting the LIBS
and INC values on the command line. For instance, if you have unziped the
developer's pack in C:\WpdPack, you should execute:
perl Makefile.PL INC=-IC:/WpdPack/Include "LIBS=-LC:/WpdPack/Lib -lwpcap"
Or get and install the WinPcap developer's pack from
http://www.winpcap.org/install/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
detecting available functions... ok
WARNING: LclsIBS is not a known parameter.
'LCLSIBS' is not a known MakeMaker parameter name.
'LclsIBS' is not a known MakeMaker parameter name.
Note (probably harmless): No library found for -lwpcap
Note (probably harmless): No library found for oldnames.lib
Note (probably harmless): No library found for kernel32.lib
Note (probably harmless): No library found for user32.lib
Note (probably harmless): No library found for gdi32.lib
Note (probably harmless): No library found for winspool.lib
Note (probably harmless): No library found for comdlg32.lib
Note (probably harmless): No library found for advapi32.lib
Note (probably harmless): No library found for shell32.lib
Note (probably harmless): No library found for ole32.lib
Note (probably harmless): No library found for oleaut32.lib
Note (probably harmless): No library found for netapi32.lib
Note (probably harmless): No library found for uuid.lib
Note (probably harmless): No library found for ws2_32.lib
Note (probably harmless): No library found for mpr.lib
Note (probably harmless): No library found for winmm.lib
Note (probably harmless): No library found for version.lib
Note (probably harmless): No library found for odbc32.lib
Note (probably harmless): No library found for odbccp32.lib
Note (probably harmless): No library found for msvcrt.lib
Writing Makefile for Net::Pcap
C:\temp\Net-Pcap-0.16>nmak e
Microsoft (R) Program Maintenance Utility Version 1.50
Copyright (c) Microsoft Corp 1988-94. All rights reserved.
cl -c -IC:WpdPack\Include -nologo -GF -W3 -MD -Zi -DNDEBUG -O1 -DWIN32 -D_CONSOLE -DNO_STRICT -DHAVE_DES_FCRYPT -DUSE_SI
TECUSTOMIZE -DPRIVLIB_LAST_IN_INC -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_READFIX -MD -Zi -DNDEBUG
-O1 -DVERSION=\"0.16\" -DXS_VERSION=\"0.16\" "-IC:\Perl\lib\CORE" -DWINSOCK2_H_REQUESTED -DWPCAP -DHAVE_REMOTE -DHAVE_BLANK
Pcap.c
'cl' is not recognized as an internal or external command,
operable program or batch file.
NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.e xe' : return code '0x1'
Stop.
C:\temp\Net-Pcap-0.16>
C:\temp\Net-Pcap-0.16>perl
Unable to patch socket.h
looking for -lwpcap... yes
checking for pcap_lib_version() in -lwpcap... no
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
You appear to lack the WinPcap developer pack.
If it is installed in a non-standard location, please try setting the LIBS
and INC values on the command line. For instance, if you have unziped the
developer's pack in C:\WpdPack, you should execute:
perl Makefile.PL INC=-IC:/WpdPack/Include "LIBS=-LC:/WpdPack/Lib -lwpcap"
Or get and install the WinPcap developer's pack from
http://www.winpcap.org/install/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
detecting available functions... ok
WARNING: LclsIBS is not a known parameter.
'LCLSIBS' is not a known MakeMaker parameter name.
'LclsIBS' is not a known MakeMaker parameter name.
Note (probably harmless): No library found for -lwpcap
Note (probably harmless): No library found for oldnames.lib
Note (probably harmless): No library found for kernel32.lib
Note (probably harmless): No library found for user32.lib
Note (probably harmless): No library found for gdi32.lib
Note (probably harmless): No library found for winspool.lib
Note (probably harmless): No library found for comdlg32.lib
Note (probably harmless): No library found for advapi32.lib
Note (probably harmless): No library found for shell32.lib
Note (probably harmless): No library found for ole32.lib
Note (probably harmless): No library found for oleaut32.lib
Note (probably harmless): No library found for netapi32.lib
Note (probably harmless): No library found for uuid.lib
Note (probably harmless): No library found for ws2_32.lib
Note (probably harmless): No library found for mpr.lib
Note (probably harmless): No library found for winmm.lib
Note (probably harmless): No library found for version.lib
Note (probably harmless): No library found for odbc32.lib
Note (probably harmless): No library found for odbccp32.lib
Note (probably harmless): No library found for msvcrt.lib
Writing Makefile for Net::Pcap
C:\temp\Net-Pcap-0.16>nmak
Microsoft (R) Program Maintenance Utility Version 1.50
Copyright (c) Microsoft Corp 1988-94. All rights reserved.
cl -c -IC:WpdPack\Include -nologo -GF -W3 -MD -Zi -DNDEBUG -O1 -DWIN32 -D_CONSOLE -DNO_STRICT -DHAVE_DES_FCRYPT -DUSE_SI
TECUSTOMIZE -DPRIVLIB_LAST_IN_INC -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_READFIX -MD -Zi -DNDEBUG
-O1 -DVERSION=\"0.16\" -DXS_VERSION=\"0.16\" "-IC:\Perl\lib\CORE" -DWINSOCK2_H_REQUESTED -DWPCAP -DHAVE_REMOTE -DHAVE_BLANK
Pcap.c
'cl' is not recognized as an internal or external command,
operable program or batch file.
NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.e
Stop.
C:\temp\Net-Pcap-0.16>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You did not have to close the question if it is not resolved. So what happens?
Is your install under C:\WpdPack ?
Try slashes in the file paths?
perl Makefile.PL INC=-IC:WpdPack\Include "LclsIBS=-LC:\\WpdPack\\Li b -lwpcap"
Is your install under C:\WpdPack ?
Try slashes in the file paths?
perl Makefile.PL INC=-IC:WpdPack\Include "LclsIBS=-LC:\\WpdPack\\Li
ASKER
Thanks, did not mean to close the question.
I get the same output when I use double back slashes:
C:\temp\Net-Pcap-0.16>perl Makefile.PL INC=-IC:WpdPack\\Include "LclsIBS=-LC:\\WpdPack\\Li b -lwpcap
Unable to patch socket.h
looking for -lwpcap... yes
checking for pcap_lib_version() in -lwpcap... no
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
You appear to lack the WinPcap developer pack.
If it is installed in a non-standard location, please try setting the LIBS
and INC values on the command line. For instance, if you have unziped the
developer's pack in C:\WpdPack, you should execute:
perl Makefile.PL INC=-IC:/WpdPack/Include "LIBS=-LC:/WpdPack/Lib -lwpcap"
Or get and install the WinPcap developer's pack from
http://www.winpcap.org/install/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
detecting available functions... ok
WARNING: LclsIBS is not a known parameter.
'LCLSIBS' is not a known MakeMaker parameter name.
'LclsIBS' is not a known MakeMaker parameter name.
Note (probably harmless): No library found for -lwpcap
Note (probably harmless): No library found for oldnames.lib
Note (probably harmless): No library found for kernel32.lib
Note (probably harmless): No library found for user32.lib
Note (probably harmless): No library found for gdi32.lib
Note (probably harmless): No library found for winspool.lib
Note (probably harmless): No library found for comdlg32.lib
Note (probably harmless): No library found for advapi32.lib
Note (probably harmless): No library found for shell32.lib
Note (probably harmless): No library found for ole32.lib
Note (probably harmless): No library found for oleaut32.lib
Note (probably harmless): No library found for netapi32.lib
Note (probably harmless): No library found for uuid.lib
Note (probably harmless): No library found for ws2_32.lib
Note (probably harmless): No library found for mpr.lib
Note (probably harmless): No library found for winmm.lib
Note (probably harmless): No library found for version.lib
Note (probably harmless): No library found for odbc32.lib
Note (probably harmless): No library found for odbccp32.lib
Note (probably harmless): No library found for msvcrt.lib
Writing Makefile for Net::Pcap
I get the same output when I use double back slashes:
C:\temp\Net-Pcap-0.16>perl
Unable to patch socket.h
looking for -lwpcap... yes
checking for pcap_lib_version() in -lwpcap... no
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
You appear to lack the WinPcap developer pack.
If it is installed in a non-standard location, please try setting the LIBS
and INC values on the command line. For instance, if you have unziped the
developer's pack in C:\WpdPack, you should execute:
perl Makefile.PL INC=-IC:/WpdPack/Include "LIBS=-LC:/WpdPack/Lib -lwpcap"
Or get and install the WinPcap developer's pack from
http://www.winpcap.org/install/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
detecting available functions... ok
WARNING: LclsIBS is not a known parameter.
'LCLSIBS' is not a known MakeMaker parameter name.
'LclsIBS' is not a known MakeMaker parameter name.
Note (probably harmless): No library found for -lwpcap
Note (probably harmless): No library found for oldnames.lib
Note (probably harmless): No library found for kernel32.lib
Note (probably harmless): No library found for user32.lib
Note (probably harmless): No library found for gdi32.lib
Note (probably harmless): No library found for winspool.lib
Note (probably harmless): No library found for comdlg32.lib
Note (probably harmless): No library found for advapi32.lib
Note (probably harmless): No library found for shell32.lib
Note (probably harmless): No library found for ole32.lib
Note (probably harmless): No library found for oleaut32.lib
Note (probably harmless): No library found for netapi32.lib
Note (probably harmless): No library found for uuid.lib
Note (probably harmless): No library found for ws2_32.lib
Note (probably harmless): No library found for mpr.lib
Note (probably harmless): No library found for winmm.lib
Note (probably harmless): No library found for version.lib
Note (probably harmless): No library found for odbc32.lib
Note (probably harmless): No library found for odbccp32.lib
Note (probably harmless): No library found for msvcrt.lib
Writing Makefile for Net::Pcap
I just notice what appears to be a typo. "cls" is in the LIBS string, and C:WpdPack is missing a \
perl Makefile.PL INC=-IC:WpdPack\Include "LclsIBS=-LC:\WpdPack\Lib -lwpcap"
Change to:
perl Makefile.PL INC=-IC:\WpdPack\Include "LIBS=-LC:\WpdPack\Lib -lwpcap"
Secondly, can you confirm that C:\Wpdpack exists?
perl Makefile.PL INC=-IC:WpdPack\Include "LclsIBS=-LC:\WpdPack\Lib -lwpcap"
Change to:
perl Makefile.PL INC=-IC:\WpdPack\Include "LIBS=-LC:\WpdPack\Lib -lwpcap"
Secondly, can you confirm that C:\Wpdpack exists?
ASKER
I checked 3 or 4 times that C:\WpdPack exsists.
Tried the cmd line you posted still did not work.
Tried the cmd line you posted still did not work.
1) Please post the log of the "perl Makefile.PL" again, since removing the "cls" string.
2) Also, try running nmake again?
I would like to see both logs or all in one.
2) Also, try running nmake again?
I would like to see both logs or all in one.
ASKER
It still cannot find the winpcap dev libs and I'm specifying the dir when I run the command:
perl Makefile.PL INC=-IC:WpdPack\Include "LclsIBS=-LC:\WpdPack\Lib -lwpcap"