0

Okay . . . I've been trying to install WWW::Mechanize through CPAN and it always chokes at this line:

t/local/back.t ........... 1/47 Error GETing http://localhost:60603/: Can't connect to localhost:60603 (Connection refused) at t/local/back.t line 53.

I doublechecked to make sure Apache 2.4.10 (installed by default through OS X Yosemite), ran the configtest and then went into the browser to make sure localhost and 127.0.0.1 were indeed being loaded.

I'm stumped . . . how can I get beyond this roadblock?

Adding more details. This is the make test and stops at t/local/back:

Running make test PERL_DL_NONLAZY=1 "/usr/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/00-load.t t/add_header.t t/aliases.t t/area_link.t t/autocheck.t t/clone.t t/content.t t/cookies.t t/credentials-api.t t/credentials.t t/die.t t/dump.t t/field.t t/find_frame.t t/find_image.t t/find_inputs.t t/find_link-warnings.t t/find_link.t t/find_link_id.t t/form-parsing.t t/form_with_fields.t t/frames.t t/image-new.t t/image-parse.t t/link-base.t t/link-relative.t t/link.t t/new.t t/pod-coverage.t t/pod.t t/regex-error.t t/save_content.t t/select.t t/taint.t t/tick.t t/untaint.t t/upload.t t/warn.t t/warnings.t t/local/back.t t/local/click.t t/local/click_button.t t/local/content.t t/local/encoding.t t/local/failure.t t/local/follow.t t/local/form.t t/local/get.t t/local/nonascii.t t/local/overload.t t/local/page_stack.t t/local/referer.t t/local/reload.t t/local/submit.t t/mech-dump/mech-dump.t

3
  • Can you telnet to that port? What is the command you are running ? Also ehe : after 60603/ looks wrong
    – mmmmmm
    Jun 29, 2015 at 22:33
  • Telnetting to that port gets me: http://localhost:54620/: nodename nor servname provided, or not known
    – lolajl
    Jun 30, 2015 at 9:55
  • And . . . this is a Perl module I'm trying to install using sudo cpan. This is the only command I'm running - it runs the install script and then stops at that line. And I have to kill the process and then remove the .cpan lock before I can go back into CPAN.
    – lolajl
    Jun 30, 2015 at 9:59

1 Answer 1

2

I commented out ipv6 localhost in /etc/hosts to fix this.

2
  • What does this line look like, @Isaac? I have: 127.0.0.1 localhost 255.255.255.255 broadcasthost ::1 localhost
    – lolajl
    Aug 13, 2015 at 13:25
  • This worked for me too. The line to comment for me was ::1. Aug 20, 2019 at 8:14

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .