Results 1 to 8 of 8

Thread: Active Perl nmake problem

  1. #1
    Good friend of the forums williamc's Avatar
    Join Date
    Feb 2010
    Location
    Chico CA
    Posts
    285

    Default Active Perl nmake problem

    I'm trying to get perl modules from Backtrack to work in a windows environment. So far, I've installed ActivePerl and attempted to install the prerequisite CPAN modules. I keep getting an error:
    Code:
      CPAN.pm: Going to build M/MA/MANU/Net-IP-1.25.tar.gz
    
    Checking if your kit is complete...
    Looks good
    Writing Makefile for Net::IP
    
    Microsoft (R) Program Maintenance Utility   Version 1.50
    Copyright (c) Microsoft Corp 1988-94. All rights reserved.
    
    cp IP.pm blib\lib\Net\IP.pm
            C:\Perl\bin\perl.exe -MExtUtils::Command -e cp ipcount blib\script\ipcount
            pl2bat.bat blib\script\ipcount
            C:\Perl\bin\perl.exe -MExtUtils::Command -e cp iptab blib\script\iptab
            pl2bat.bat blib\script\iptab
    After 20 minutes or so, I'll kill the process:
    Code:
     NMAKE :  U1058:
    Stop.
    Caught SIGINT, trying to continue
      MANU/Net-IP-1.25.tar.gz
      nmake -- NOT OK
    Running make for O/OL/OLAF/Net-DNS-0.63.tar.gz
      Has already been unwrapped into directory C:\Perl\cpan\build\Net-DNS-0.63-l8UGao
    Terminating on signal SIGINT(2)
    Failed during this command:
     MANU/Net-IP-1.25.tar.gz                      : make NO
    I tried manually installing the module.
    perl makefile.PL
    nmake test ------> test says "ok"
    nmake install ------> freezes at same point mentioned above.

    Any ideas?

    William

  2. #2

    Default

    eh.. what modules are you trying to install? if you can't do it from source, have you tried using the cpan shell? or just

    Code:
    cpan -i Perl::Module
    ?? I'd try that first.

  3. #3
    Good friend of the forums williamc's Avatar
    Join Date
    Feb 2010
    Location
    Chico CA
    Posts
    285

    Default

    Yeah, I tried the CPAN shell. That is the first screenshot. I tried building them from source using ppm and just make--make install. There seems to be a problem with the build process itself.

    William

  4. #4

    Default

    hrmm :/ maybe try rebuilding Perl itself from source. that's odd.

  5. #5
    Good friend of the forums williamc's Avatar
    Join Date
    Feb 2010
    Location
    Chico CA
    Posts
    285

    Default

    Chatted on IRC with some Perl Guru's. Recommended I use Strawberry Perl instead of ActiveState. This worked like a charm, with the exception of one library. I'm trying to get Net::SSH2 to work so I can test a distributed nmap on a win32 environment.

    Code:
    C:\strawberry\perl\bin\tools\dnmap>perl DNMAP.PL
    Can't locate Net/SSH2.pm in @INC (@INC contains: C:/strawberry/perl/lib C:/strawberry/perl/site/lib
    .) at DNMAP.PL line 3.
    BEGIN failed--compilation aborted at DNMAP.PL line 3.
    So I do this:
    Code:
     cpan> install Net::SSH2
    Running install for module 'Net::SSH2'
    Running make for D/DB/DBROBINS/Net-SSH2-0.18.tar.gz
    Checksum for C:\strawberry\cpan\sources\authors\id\D\DB\DBROBINS\Net-SSH2-0.18.tar.gz ok
    Scanning cache C:\strawberry\cpan\build for sizes
    ............................................................................DONE
    
      CPAN.pm: Going to build D/DB/DBROBINS/Net-SSH2-0.18.tar.gz
    
    I can't find libssh2 or libssh2.h.
    
    Either libSSH2 is not installed, or it is installed incorrectly.  LibSSH2 is
    required by Net::SSH2.  You can download it from http://www.libssh2.org; you
    may also need OpenSSL, which can be obtained from http://www.openssl.org.
    
    Quitting since I can't find libssh2 or libssh2.h at Makefile.PL line 42.
    Warning: No success on command[C:\strawberry\perl\bin\perl.exe Makefile.PL]
      DBROBINS/Net-SSH2-0.18.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
    Failed during this command:
     DBROBINS/Net-SSH2-0.18.tar.gz                : writemakefile NO 'C:\strawberry\perl\bin\perl.exe Ma
    kefile.PL' returned status 512
    
    cpan>
    Can't seem to get the libssh to install. Anyone have time to test this on a win32 system? Thanks.

    William

  6. #6

    Default

    Quote Originally Posted by williamc View Post
    Anyone have time to test this on a win32 system? Thanks.
    that wood wreck wire win doze? maybe try the "remote-exploited" forumz? lulz?

    j/k

    I would recommend going to the Perlmonks for that issue. I did a quick search and found this thread:

    http://www.perlmonks.org/?node_id=581715

    but that may not help. Join up and ask your question there, i bet it gets resolved fast!

  7. #7
    JMC31337
    Guest

    Default

    Quote Originally Posted by williamc View Post
    Chatted on IRC with some Perl Guru's. Recommended I use Strawberry Perl instead of ActiveState. This worked like a charm, with the exception of one library. I'm trying to get Net::SSH2 to work so I can test a distributed nmap on a win32 environment.

    Code:
    C:\strawberry\perl\bin\tools\dnmap>perl DNMAP.PL
    Can't locate Net/SSH2.pm in @INC (@INC contains: C:/strawberry/perl/lib C:/strawberry/perl/site/lib
    .) at DNMAP.PL line 3.
    BEGIN failed--compilation aborted at DNMAP.PL line 3.
    So I do this:
    Code:
     cpan> install Net::SSH2
    Running install for module 'Net::SSH2'
    Running make for D/DB/DBROBINS/Net-SSH2-0.18.tar.gz
    Checksum for C:\strawberry\cpan\sources\authors\id\D\DB\DBROBINS\Net-SSH2-0.18.tar.gz ok
    Scanning cache C:\strawberry\cpan\build for sizes
    ............................................................................DONE
    
      CPAN.pm: Going to build D/DB/DBROBINS/Net-SSH2-0.18.tar.gz
    
    I can't find libssh2 or libssh2.h.
    
    Either libSSH2 is not installed, or it is installed incorrectly.  LibSSH2 is
    required by Net::SSH2.  You can download it from http://www.libssh2.org; you
    may also need OpenSSL, which can be obtained from http://www.openssl.org.
    
    Quitting since I can't find libssh2 or libssh2.h at Makefile.PL line 42.
    Warning: No success on command[C:\strawberry\perl\bin\perl.exe Makefile.PL]
      DBROBINS/Net-SSH2-0.18.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
    Failed during this command:
     DBROBINS/Net-SSH2-0.18.tar.gz                : writemakefile NO 'C:\strawberry\perl\bin\perl.exe Ma
    kefile.PL' returned status 512
    
    cpan>
    Can't seem to get the libssh to install. Anyone have time to test this on a win32 system? Thanks.

    William
    you could use the httpd/Apache programs included on Back|Track, then head over to the Apache site. Look into MOD:PERL, also, if you want to utilize MyPHPAdmin for PHP it will work great for Apache/HTTPD
    OR as Trevelyn says, PerlMonks

  8. #8
    Good friend of the forums williamc's Avatar
    Join Date
    Feb 2010
    Location
    Chico CA
    Posts
    285

    Default

    After sifting through multiple forums, I found this, which appears to have addressed the problem:
    ppm install http://trouchelle.com/ppm10/Net-SSH2.ppd

    William

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •