• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1264
  • Last Modified:

Problem Installing Perl Modules

I am trying to use module SNMP, but it needs Net-SNMP which in turn needs Sockets6.

Sockets6 load fails, see the code window.

This is perl, v5.10.0 built for MSWin32-x86-multi-thread   Camelback

How can I make sure I have all modules I need?
How do I get Socket6 to load?
 It seems like the load order is important. Is that true?


Thanks
cpan[1]> install Socket6
CPAN: Storable loaded ok (v2.18)
Going to read C:\camelbox\.cpan\Metadata
  Database was generated on Thu, 08 Apr 2010 19:32:54 GMT
CPAN: YAML loaded ok (v0.68)
Going to read C:\camelbox\.cpan\build/
............................................................................DONE

Found 1 old build, restored the state of 1
Running install for module 'Socket6'
Running make for U/UM/UMEMOTO/Socket6-0.23.tar.gz
CPAN: LWP::UserAgent loaded ok (v5.826)
CPAN: Time::HiRes loaded ok (v1.9711)

I would like to connect to one of the following sites to get 'authors/id/U/UM/UM
EMOTO/Socket6-0.23.tar.gz':

 http://www.perl.org/CPAN/
 ftp://ftp.perl.org/pub/CPAN/

Is it OK to try to connect to the Internet? [yes] yes
Fetching with LWP:
  http://www.perl.org/CPAN/authors/id/U/UM/UMEMOTO/Socket6-0.23.tar.gz
CPAN: Digest::SHA loaded ok (v5.45)
Fetching with LWP:
  http://www.perl.org/CPAN/authors/id/U/UM/UMEMOTO/CHECKSUMS
Checksum for C:\camelbox\.cpan\sources\authors\id\U\UM\UMEMOTO\Socket6-0.23.tar.
gz ok
Scanning cache C:\camelbox\.cpan\build for sizes
............................................................................DONE

Socket6-0.23/
Socket6-0.23/t/
Socket6-0.23/gai.h
Socket6-0.23/getnameinfo.c
Socket6-0.23/MANIFEST
Socket6-0.23/config.h.in
Socket6-0.23/configure.in
Socket6-0.23/Socket6.xs
Socket6-0.23/im-140.diff
Socket6-0.23/inet_pton.c
Socket6-0.23/aclocal.m4
Socket6-0.23/ChangeLog
Socket6-0.23/inet_ntop.c
Socket6-0.23/configure
Socket6-0.23/gailookup.pl.in
Socket6-0.23/ftpmirror-1.96.diff
Socket6-0.23/config.pl.in
Socket6-0.23/Socket6.pm
Socket6-0.23/README
Socket6-0.23/Makefile.PL
Socket6-0.23/getaddrinfo.c
Socket6-0.23/META.yml
Socket6-0.23/t/use.t
CPAN: File::Temp loaded ok (v0.18)

  CPAN.pm: Going to build U/UM/UMEMOTO/Socket6-0.23.tar.gz

Checking if your kit is complete...
Looks good
Note (probably harmless): No library found for ws2_32.lib
Note (probably harmless): No library found for ws2_32.lib
Note (probably harmless): No library found for ws2_32.lib
Note (probably harmless): No library found for ws2_32.lib
Note (probably harmless): No library found for -lmsvcrt
Note (probably harmless): No library found for -lmoldname
Note (probably harmless): No library found for -lkernel32
Note (probably harmless): No library found for -luser32
Note (probably harmless): No library found for -lgdi32
Note (probably harmless): No library found for -lwinspool
Note (probably harmless): No library found for -lcomdlg32
Note (probably harmless): No library found for -ladvapi32
Note (probably harmless): No library found for -lshell32
Note (probably harmless): No library found for -lole32
Note (probably harmless): No library found for -loleaut32
Note (probably harmless): No library found for -lnetapi32
Note (probably harmless): No library found for -luuid
Note (probably harmless): No library found for -lws2_32
Note (probably harmless): No library found for -lmpr
Note (probably harmless): No library found for -lwinmm
Note (probably harmless): No library found for -lversion
Note (probably harmless): No library found for -lodbc32
Note (probably harmless): No library found for -lodbccp32
Writing Makefile for Socket6
cp Socket6.pm blib\lib/Socket6.pm
C:\camelbox\bin\perl.exe C:\camelbox\lib\ExtUtils\xsubpp -noprototypes -typemap
C:\camelbox\lib\ExtUtils\typemap  Socket6.xs > Socket6.xsc && C:\camelbox\bin\pe
rl.exe -MExtUtils::Command -e mv Socket6.xsc Socket6.c
gcc -c          -s -O2 -DWIN32 -DHAVE_DES_FCRYPT -DPERL_IMPLICIT_CONTEXT -DPERL_
IMPLICIT_SYS -fno-strict-aliasing -DPERL_MSVCRT_READFIX -s -O2    -DVERSION=\"0.
23\"    -DXS_VERSION=\"0.23\"  "-IC:\camelbox\lib\CORE"   Socket6.c
Running Mkbootstrap for Socket6 ()
C:\camelbox\bin\perl.exe -MExtUtils::Command -e chmod 644 Socket6.bs
C:\camelbox\bin\perl.exe -MExtUtils::Mksymlists \
     -e "Mksymlists('NAME'=>\"Socket6\", 'DLBASE' => 'Socket6', 'DL_FUNCS' => {
 }, 'FUNCLIST' => [], 'IMPORTS' => {  }, 'DL_VARS' => []);"
dlltool --def Socket6.def --output-exp dll.exp
g++ -o blib\arch\auto\Socket6\Socket6.dll -Wl,--base-file -Wl,dll.base -mdll -s
-L"C:\camelbox\lib\CORE" -L"C:\camelbox\lib" Socket6.o -Wl,--image-base,0x361b00
00  C:\camelbox\lib\CORE\libperl510.a C:\camelbox\lib\libmsvcrt.a C:\camelbox\li
b\libmoldname.a C:\camelbox\lib\libkernel32.a C:\camelbox\lib\libuser32.a C:\cam
elbox\lib\libgdi32.a C:\camelbox\lib\libwinspool.a C:\camelbox\lib\libcomdlg32.a
 C:\camelbox\lib\libadvapi32.a C:\camelbox\lib\libshell32.a C:\camelbox\lib\libo
le32.a C:\camelbox\lib\liboleaut32.a C:\camelbox\lib\libnetapi32.a C:\camelbox\l
ib\libuuid.a C:\camelbox\lib\libws2_32.a C:\camelbox\lib\libmpr.a C:\camelbox\li
b\libwinmm.a C:\camelbox\lib\libversion.a C:\camelbox\lib\libodbc32.a C:\camelbo
x\lib\libodbccp32.a dll.exp
Socket6.o:Socket6.c:(.text+0xa57): undefined reference to `inet_pton'
Socket6.o:Socket6.c:(.text+0xd31): undefined reference to `inet_ntop'
collect2: ld returned 1 exit status
dmake.EXE:  Error code 129, while making 'blib\arch\auto\Socket6\Socket6.dll'
  UMEMOTO/Socket6-0.23.tar.gz
  C:\camelbox\bin\dmake.EXE -- NOT OK
Running make test
  Can't test without successful make
Running make install
  Make had returned bad status, install seems impossible
Failed during this command:
 UMEMOTO/Socket6-0.23.tar.gz                  : make NO

cpan[2]>

Open in new window

0
alukes
Asked:
alukes
  • 3
  • 2
1 Solution
 
alukesAuthor Commented:
I tried Net::SNMP as an alternative, but it gets permission denied errors even after I manually gave all rights  to c:\camelbox  and rebooted.

Is Net::SNMP better than SNMP?
perl_version
C:\camelbox\bin\tar.EXE: Error exit delayed from previous errors
Uncompressed C:\camelbox\.cpan\sources\authors\id\A\AN\ANDYA\Test-Harness-3.21.t
ar.gz successfully
Using Tar:C:\camelbox\bin\tar.EXE xvf "Test-Harness-3.21.tar":
Test-Harness-3.21
Build.PL
C:\camelbox\bin\tar.EXE: Build.PL: Could not create file: Permission denied
C:\camelbox\bin\tar.EXE: Skipping to next file header
Test
Builder.pm
C:\camelbox\bin\tar.EXE: Builder.pm: Could not create file: Permission denied
C:\camelbox\bin\tar.EXE: Skipping to next file header
C:\camelbox\bin\tar.EXE: Only read 6060 bytes from archive Test-Harness-3.21.tar

C:\camelbox\bin\tar.EXE: Error is not recoverable: exiting now
Couldn't untar Test-Harness-3.21.tar

Open in new window

0
 
wilcoxonCommented:
You probably can't unless you can find a library to install that contains inet_pton and inet_ntop.  In my experience, a fair number of modules on CPAN simply won't work on Windows (rather using ActiveState Perl, CygWin, or whatever else).
0
 
alukesAuthor Commented:
Would you recommend getting my hands on a Linux box? If so what is the best Linux version to use? The most stable and complete?
0
 
wilcoxonCommented:
A *nix box would be good if that is an option.

I honestly don't know which Linux version is best.  I've heard Ubuntu is good but haven't used it.

Before my server died, I was using FreeBSD which I liked.
0
 
alukesAuthor Commented:
Thanks

I am glad I didn't put more effort into doing something that is most likely extremely difficult, if not impossible.

I have access to a Linux box so I will give that a shot.
0

Featured Post

Take Control of Web Hosting For Your Clients

As a web developer or IT admin, successfully managing multiple client accounts can be challenging. In this webinar we will look at the tools provided by Media Temple and Plesk to make managing your clients’ hosting easier.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now