Professional Web Applications Themes

Would like to run traceroute - PERL Modules

I would like to run a trace route on a IP. I am unable to load module from website. I have ppm Active State. Here is the code that I am using. use Net::Traceroute; $tr = Net::Traceroute->new(host=> "life.ai.mit.edu"); if($tr->found) { my $hops = $tr->hops; if($hops > 1) { print "Router was " . $tr->hop_query_host($tr->hops - 1, 0) . "\n"; } } When I type perl route.plx I get error message: can't locate Net/Traceroute.pm in INC (INC CONTAINS: c:/Perl/lib C:/Perl/site/lib.) at route.plx Begin failed-compilation aborted at route.plx I don't if I have my library file set up right. Please help...

  1. #1

    Default Would like to run traceroute

    I would like to run a trace route on a IP. I am unable to load module from
    website. I have ppm Active State.
    Here is the code that I am using.


    use Net::Traceroute;
    $tr = Net::Traceroute->new(host=> "life.ai.mit.edu");
    if($tr->found) {
    my $hops = $tr->hops;
    if($hops > 1) {
    print "Router was " .
    $tr->hop_query_host($tr->hops - 1, 0) . "\n";
    }
    }



    When I type perl route.plx I get error message:
    can't locate Net/Traceroute.pm in INC (INC CONTAINS: c:/Perl/lib
    C:/Perl/site/lib.) at route.plx
    Begin failed-compilation aborted at route.plx

    I don't if I have my library file set up right. Please help

    Nupe98caffe Guest

  2. #2

    Default Re: Would like to run traceroute



    Nupe98caffe wrote:
    > I would like to run a trace route on a IP. I am unable to load module from
    > website.
    What website and what do you mean by "load module from..."

    > I get error message:
    > can't locate Net/Traceroute.pm in INC (INC CONTAINS: c:/Perl/lib
    > C:/Perl/site/lib.) at route.plx
    How did you try to install Net::Traceroute and what heppened when you
    tried? (If you have not tried to install Net::Traceroute then that
    could be the problem).

    For that matter have you looked at the doentation for
    Net::Traceroute? In particular the bit entitled "BUGS".

    Brian McCauley Guest

  3. #3

    Default Re: Would like to run traceroute

    How do you install module using ppm?

    Nupe98caffe Guest

  4. #4

    Default Re: Would like to run traceroute

    In Active State I typed

    ppm> install Devel-Trace

    and it said successfully installed Devel-Trace
    how do I link it so that perl can recognize it on my hard drive??

    Nupe98caffe Guest

  5. #5

    Default Re: Would like to run traceroute



    Apropos of nothing Nupe98caffe wrote:

    [ Please quote enough of the message to which you are responding to put
    your comments in context ]
    > In Active State I typed
    >
    > ppm> install Devel-Trace
    >
    > and it said successfully installed Devel-Trace
    > how do I link it so that perl can recognize it on my hard drive??
    What evidence do you have that Perl is having any trouble recognising
    Devel::Trace?

    What does this have to do with your orginal question?

    Brian McCauley Guest

  6. #6

    Default Re: Would like to run traceroute

    Apropos of nothing Nupe98caffe wrote:

    [ Please quote enough of the message to which you are responding to put
    your comments in context ]
    > How do you install module using ppm?
    ppm install Distribution-name

    or, if the PPM respository where the module can be found is not in your
    default search list:

    ppm install full-URL-of-PPM-file

    Of course in either case there is a prequisite that there is a PPM file
    of the module in question (for your platform) on some PPM respository
    somewhere.

    ActiveState's PPM respository (largely) only includes modules that
    install (and pass their own tests) without manual intervention.

    Once again I advise you to read the doentation on the module.

    Brian McCauley Guest

  7. #7

    Default Re: Would like to run traceroute

    Let start over...

    I'm trying to install Net-Traceroute-1 Module to perl.
    I downloaded the module to
    C:\Perl\lib\Net-Traceroute-1

    Then I typed
    perl Makefile.PL
    (printed out)Writing Makefile for Net:: Traceroute

    next typed
    pmake
    (printed out)
    Reading c:/Perl/site/lib/Make.pm
    Reading c:\Perl\lib\Net_Traceroute-1\makefile
    Cannot recurse Make - no target c:\Perl\lib^ in
    C:/Perl/lib/Net-Traceroute-1 at c:/Perl/site/lib/Make.pm line 454

    next typed
    pmake test

    same results as above

    next typed
    pmake install

    same results as above

    Question: Do I not have the module in the right library?


    Nupe98caffe Guest

  8. #8

    Default Re: Would like to run traceroute

    Let start over...

    I'm trying to install Net-Traceroute-1 Module to perl.
    I downloaded the module to
    C:\Perl\lib\Net-Traceroute-1

    Then I typed
    perl Makefile.PL
    (printed out)Writing Makefile for Net:: Traceroute

    next typed
    pmake
    (printed out)
    Reading c:/Perl/site/lib/Make.pm
    Reading c:\Perl\lib\Net_Traceroute-1\makefile
    Cannot recurse Make - no target c:\Perl\lib^ in
    C:/Perl/lib/Net-Traceroute-1 at c:/Perl/site/lib/Make.pm line 454

    next typed
    pmake test

    same results as above

    next typed
    pmake install

    same results as above

    Question: Do I not have the module in the right library?


    Nupe98caffe Guest

  9. #9

    Default Re: Would like to run traceroute

    Nupe98caffe wrote:
    > Let start over...
    >
    > I'm trying to install Net-Traceroute-1 Module to perl.
    > I downloaded the module to
    > C:\Perl\lib\Net-Traceroute-1
    >
    > Then I typed
    > perl Makefile.PL
    > (printed out)Writing Makefile for Net:: Traceroute
    >
    > next typed
    > pmake
    > (printed out)
    > Reading c:/Perl/site/lib/Make.pm
    > Reading c:\Perl\lib\Net_Traceroute-1\makefile
    > Cannot recurse Make - no target c:\Perl\lib^ in
    > C:/Perl/lib/Net-Traceroute-1 at c:/Perl/site/lib/Make.pm line 454
    >
    > next typed
    > pmake test
    >
    > same results as above
    >
    > next typed
    > pmake install
    >
    > same results as above
    >
    > Question: Do I not have the module in the right library?
    >
    >
    Go to:
    [url]http://search.cpan.org/[/url]

    "Search" for a "Distribution" named "Net::Traceroute".

    That should get you to:
    [url]http://search.cpan.org/search?query=net%3A%3Atraceroute&mode=dist[/url]

    On that page is a link to "Net-Traceroute-1.08". (There's also links to
    a couple of other Traceroute modules which may or may not be useful to
    you.) Click on that link. That should get you to:
    [url]http://search.cpan.org/~hag/Net-Traceroute-1.08/[/url]

    On that page is a link to "CPAN Testers". Click on that link. That will
    get you to:
    [url]http://testers.cpan.org/show/Net-Traceroute.html#Net-Traceroute-1.08[/url]

    And there you will see that the module fails to build on Win32.

    On the previous web page there is also a link to "Net::Traceroute" and
    if you click on that link you'll get to see the pod docs for
    Traceroute.pm that contains the "Bugs" section that Brian referred you to.

    Cheers,
    Rob

    --
    To reply by email u have to take out the u in kalinaubears.

    Sisyphus Guest

Similar Threads

  1. Net::Traceroute::PurePerl problems
    By mike@gibbs-family.org in forum PERL Modules
    Replies: 0
    Last Post: October 27th, 10:11 PM
  2. Traceroute UDP or ICMP?
    By morenuf in forum Mac Networking
    Replies: 1
    Last Post: September 10th, 01:35 AM
  3. Replies: 9
    Last Post: August 27th, 06:51 PM

Bookmarks

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139