FAQ
Hi,

I've just installed perl version 5.13.11,
and am mostly happy with it.

The minor problem is with getting cpan from our work network behind a proxy.

With a usual setting of http_proxy I have:


D:\>cpan

CPAN.pm requires configuration, but most of it can be done automatically.
If you answer 'no' below, you will enter an interactive dialog for each
configuration option instead.

Would you like to configure as much as possible automatically? [yes]


ALERT: 'make' is an essential tool for building perl Modules.
Please make sure you have 'make' (or some equivalent) working.

Windows users may want to follow this procedure when back in the CPAN shell:

look YVES/scripts/alien_nmake.pl
perl alien_nmake.pl

This will install nmake on your system which can be used as a 'make'
substitute. You can then revisit this dialog with

o conf init make

Autoconfigured everything but 'urllist'.

Now you need to choose your CPAN mirror sites. You can let me
pick mirrors for you, you can select them from a list or you
can enter them by hand.

Would you like me to automatically choose some CPAN mirror
sites for you? (This means connecting to the Internet) [yes]
Trying to fetch a mirror list from the Internet
Fetching with HTTP::Tiny:
http://www.perl.org/CPAN/MIRRORED.BY
HTTP::Tiny failed with an internal error: Cannot parse URL: 'proxy-spb.netsec.alcatel.fr:8080' at D:\perl-tests\perl-v5.13.11-deb\lib/CPAN/HTTP/Client.pm line 41

Fetching with HTTP::Tiny:
http://www.perl.org/CPAN/MIRRORED.BY.gz
HTTP::Tiny failed with an internal error: Cannot parse URL: 'proxy-spb.netsec.alcatel.fr:8080' at D:\perl-tests\perl-v5.13.11-deb\lib/CPAN/HTTP/Client.pm line 41

Fetching with Net::FTP:
ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY



Here 2 things bother me:
ALERT: 'make' is an essential tool for building perl Modules.

This message is bogus, because I use well-supported 'nmake'.

D:\>perl -V:make
make='nmake';


Then, 'internal error' of HTTP::Tiny also bothers me, which is probably due to content of my http_proxy variable.
To say, this proxy variable works perfectly well in 'wget'.

Then, following message is displayed:

Proxy authentication needed!
(Note: to permanently configure username and password run
o conf proxy_user your_username
o conf proxy_pass your_password
)
Username:

this is also bogus, because my proxy does not actually require authentication, and entering empty user name and password just works.

Best regards,
Vadim.

Search Discussions

  • David Golden at Apr 1, 2011 at 1:58 pm
    2011/4/1 Konovalov, Vadim (Vadim)** CTR ** <vadim.konovalov@alcatel-lucent.com>:

    Thank you for the bug report. What Win32 perl are you running? From
    Here 2 things bother me:
    ALERT: 'make' is an essential tool for building perl Modules.

    This message is bogus, because I use well-supported 'nmake'.

    D:\>perl -V:make
    make='nmake';
    Where is nmake in your path? If you compile with this as "nmake.exe"
    does it give the same error?
    Then, 'internal error' of HTTP::Tiny also bothers me, which is probably due to content of my http_proxy variable.
    To say, this proxy variable works perfectly well in 'wget'.
    If you make it a proper URL with a full scheme, does it work? E.g.
    http://proxy-spb.netsec.alcatel.fr:8080/
    Then, following message is displayed:

    Proxy authentication needed!
    (Note: to permanently configure username and password run
    o conf proxy_user your_username
    o conf proxy_pass your_password
    )
    Username:

    this is also bogus, because my proxy does not actually require authentication, and entering empty user name and password just works.
    That's probably spurious based on the failure of the proxy -- possibly
    CPAN is guessing the failure is due to lack of authentication. Again,
    if you use the full URL for the proxy, do you get this or not?
    (Either way it sounds like a CPAN bug)

    Regards,
    David
  • Konovalov, Vadim (Vadim)** CTR ** at Apr 2, 2011 at 3:41 pm

    From: david@autopragmatic.com On Behalf Of David Golden

    Thank you for the bug report. What Win32 perl are you running?
    I was running perl version 5.13.11 freshly built with MSVC 6.0
    Here 2 things bother me:
    ALERT: 'make' is an essential tool for building perl Modules.

    This message is bogus, because I use well-supported 'nmake'.

    D:\>perl -V:make
    make='nmake';
    Where is nmake in your path? If you compile with this as "nmake.exe"
    does it give the same error?
    d:\MSVStudio\VC98\BIN\nmake
    Then, 'internal error' of HTTP::Tiny also bothers me, which
    is probably due to content of my http_proxy variable.
    To say, this proxy variable works perfectly well in 'wget'.
    If you make it a proper URL with a full scheme, does it work? E.g.
    http://proxy-spb.netsec.alcatel.fr:8080/
    unfortunately - no,
    and there is segmentation fault even :(

    gentoo-Linux (running under colinux) is fine with this perl version and these network settings

    On Win32 before segmentation fault I have following conversation:


    CPAN.pm requires configuration, but most of it can be done automatically.
    If you answer 'no' below, you will enter an interactive dialog for each
    configuration option instead.

    Would you like to configure as much as possible automatically? [yes]

    Autoconfigured everything but 'urllist'.

    Now you need to choose your CPAN mirror sites. You can let me
    pick mirrors for you, you can select them from a list or you
    can enter them by hand.

    Would you like me to automatically choose some CPAN mirror
    sites for you? (This means connecting to the Internet) [yes]
    Trying to fetch a mirror list from the Internet
    Fetching with HTTP::Tiny:
    http://www.perl.org/CPAN/MIRRORED.BY

    Then segmentation fault happens,
    here is the stack:

    NTDLL! 7c90eb74()
    NTDLL! 7c90eb94()
    MSVCRT! 77c2d08e()
    MSVCRT! 77c2d128()
    my_close(int 6) line 476 + 10 bytes
    win32_close(int 6) line 3176 + 9 bytes
    PerlIOUnix_close(_PerlIO * * 0x00eeb888) line 2896 + 9 bytes
    PerlIOBase_close(_PerlIO * * 0x00901088) line 2244 + 10 bytes
    PerlIOBuf_close(_PerlIO * * 0x00901088) line 4262 + 9 bytes
    PerlIO__close(_PerlIO * * 0x00901088) line 1503 + 10 bytes
    Perl_PerlIO_close(_PerlIO * * 0x00901088) line 1516 + 9 bytes
    Perl_io_close(io * 0x00f2dd08, char 1) line 972 + 12 bytes
    Perl_do_close(gv * 0x00f2dcb8, char 1) line 937 + 13 bytes
    Perl_pp_close() line 632 + 11 bytes
    Perl_runops_debug() line 2267 + 9 bytes
    S_run_body(long 1) line 2347
    perl_run(interpreter * 0x003366c0) line 2268 + 9 bytes
    RunPerl(int 2, char * * 0x00332e50, char * * 0x00332f18) line 270 + 12 bytes
    main(int 2, char * * 0x00332e50, char * * 0x003333e8) line 23 + 18 bytes
    PERL! mainCRTStartup + 227 bytes

    in my home directory, the "cpan" directory is created with a file MIRRORED.BY.tmp536449904640 in ".cpan/sources" and
    also I have a file ".cpan\CPAN\MyConfig.pm" that contains 4 bytes: "1;\r\n"

    the "cpan" command that comes with ActiveState perl 5.12.1 serves good on this computer.

    Best regards,
    Vadim.
  • David Golden at Apr 3, 2011 at 3:46 am

    On Sat, Apr 2, 2011 at 11:40 AM, Konovalov, Vadim (Vadim)** CTR ** wrote:
    If you make it a proper URL with a full scheme, does it work? E.g.
    http://proxy-spb.netsec.alcatel.fr:8080/
    unfortunately - no,
    But you don't get the same error messages about the proxy?
    and there is segmentation fault even :(
    That's bizarre.
    in my home directory, the "cpan" directory is created with a file MIRRORED.BY.tmp536449904640 in ".cpan/sources" and
    also I have a file ".cpan\CPAN\MyConfig.pm" that contains 4 bytes: "1;\r\n"
    Does the MIRRORED.BY.tmp536449904640 file look "complete"? If you
    diff it against http://www.cpan.org/MIRRORED.BY is it identical? (Or
    at least close, if MIRRORED.BY was updated since the temp file was
    created?)

    Win32 experts -- I'll need your help digging into the segfault.

    -- David
  • Konovalov, Vadim (Vadim)** CTR ** at Apr 3, 2011 at 9:29 am

    From: david@autopragmatic.com On Behalf Of David Golden
    Does the MIRRORED.BY.tmp536449904640 file look "complete"? If you
    diff it against http://www.cpan.org/MIRRORED.BY is it identical? (Or
    at least close, if MIRRORED.BY was updated since the temp file was
    created?)
    it is 0 bytes, and running debugging perl with -Dtls -Dx gives me a segfault and following console output:

    my_close(int 6) line 476 + 10 bytes
    win32_close(int 6) line 3176 + 9 bytes
    PerlIOUnix_close(_PerlIO * * 0x011e6c08) line 2896 + 9 bytes
    PerlIOBase_close(_PerlIO * * 0x00901088) line 2244 + 10 bytes
    PerlIOBuf_close(_PerlIO * * 0x00901088) line 4262 + 9 bytes
    PerlIO__close(_PerlIO * * 0x00901088) line 1503 + 10 bytes
    Perl_PerlIO_close(_PerlIO * * 0x00901088) line 1516 + 9 bytes
    Perl_io_close(io * 0x00f320c8, char 1) line 972 + 12 bytes
    Perl_do_close(gv * 0x00f31868, char 1) line 937 + 13 bytes
    Perl_pp_close() line 632 + 11 bytes
    Perl_runops_debug() line 2267 + 9 bytes
    S_run_body(long 1) line 2347
    perl_run(interpreter * 0x003366c8) line 2268 + 9 bytes
    RunPerl(int 4, char * * 0x00332e50, char * * 0x00332f28) line 270 + 12 bytes
    main(int 4, char * * 0x00332e50, char * * 0x003333e8) line 23 + 18 bytes


    .........
    (D:\perl-tests\perl-v5.13.11-deb\lib/HTTP/Tiny.pm:152) CX 30 PUSH SUB (scope 37,37) at ..\pp_hot.c:2955
    => * SV_YES PV("http://www.perl.org/CPAN/MIRRORED.BY"\0) PV("http://www.perl.org/CPAN/MIRRORED.BY.gz"\0) \HV()

    (D:\perl-tests\perl-v5.13.11-deb\lib/HTTP/Tiny.pm:152) nextstate
    => * SV_YES PV("http://www.perl.org/CPAN/MIRRORED.BY"\0) PV("http://www.perl.org/CPAN/MIRRORED.BY.gz"\0)
    (D:\perl-tests\perl-v5.13.11-deb\lib/HTTP/Tiny.pm:374) gv(main::_)
    => * SV_YES PV("http://www.perl.org/CPAN/MIRRORED.BY"\0) PV("http://www.perl.org/CPAN/MIRRORED.BY.gz"\0) GV()

    (D:\perl-tests\perl-v5.13.11-deb\lib/HTTP/Tiny.pm:374) rv2av
    => * SV_YES PV("http://www.perl.org/CPAN/MIRRORED.BY"\0) PV("http://www.perl.org/CPAN/MIRRORED.BY.gz"\0) IV(1)

    (D:\perl-tests\perl-v5.13.11-deb\lib/HTTP/Tiny.pm:374) const(IV(1))
    => * SV_YES PV("http://www.perl.org/CPAN/MIRRORED.BY"\0) PV("http://www.perl.org/CPAN/MIRRORED.BY.gz"\0) IV(1)
    IV(1)
    (D:\perl-tests\perl-v5.13.11-deb\lib/HTTP/Tiny.pm:374) eq
    => * SV_YES PV("http://www.perl.org/CPAN/MIRRORED.BY"\0) PV("http://www.perl.org/CPAN/MIRRORED.BY.gz"\0) SV_YES

    (D:\perl-tests\perl-v5.13.11-deb\lib/HTTP/Tiny.pm:374) or
    => * SV_YES PV("http://www.perl.org/CPAN/MIRRORED.BY"\0) PV("http://www.perl.org/CPAN/MIRRORED.BY.gz"\0) SV_YES

    (D:\perl-tests\perl-v5.13.11-deb\lib/HTTP/Tiny.pm:374) nextstate
    => * SV_YES PV("http://www.perl.org/CPAN/MIRRORED.BY"\0) PV("http://www.perl.org/CPAN/MIRRORED.BY.gz"\0)
    (D:\perl-tests\perl-v5.13.11-deb\lib/HTTP/Tiny.pm:375) pushmark
    => * SV_YES PV("http://www.perl.org/CPAN/MIRRORED.BY"\0) PV("http://www.perl.org/CPAN/MIRRORED.BY.gz"\0) *
    (D:\perl-tests\perl-v5.13.11-deb\lib/HTTP/Tiny.pm:375) gv(main::_)
    => * SV_YES PV("http://www.perl.org/CPAN/MIRRORED.BY"\0) PV("http://www.perl.org/CPAN/MIRRORED.BY.gz"\0) * GV(
    )
    (D:\perl-tests\perl-v5.13.11-deb\lib/HTTP/Tiny.pm:375) rv2av
    => * SV_YES PV("http://www.perl.org/CPAN/MIRRORED.BY"\0) PV("http://www.perl.org/CPAN/MIRRORED.BY.gz"\0) * \HV
    ()
    (D:\perl-tests\perl-v5.13.11-deb\lib/HTTP/Tiny.pm:375) pushmark
    => * SV_YES PV("http://www.perl.org/CPAN/MIRRORED.BY"\0) PV("http://www.perl.org/CPAN/MIRRORED.BY.gz"\0) * \HV
    () *
    (D:\perl-tests\perl-v5.13.11-deb\lib/HTTP/Tiny.pm:375) padsv($self)
    => * SV_YES PV("http://www.perl.org/CPAN/MIRRORED.BY"\0) PV("http://www.perl.org/CPAN/MIRRORED.BY.gz"\0) * \HV
    () * UNDEF
    (D:\perl-tests\perl-v5.13.11-deb\lib/HTTP/Tiny.pm:375) aassign
    => * SV_YES PV("http://www.perl.org/CPAN/MIRRORED.BY"\0) PV("http://www.perl.org/CPAN/MIRRORED.BY.gz"\0)
    (D:\perl-tests\perl-v5.13.11-deb\lib/HTTP/Tiny.pm:375) nextstate
    => * SV_YES PV("http://www.perl.org/CPAN/MIRRORED.BY"\0) PV("http://www.perl.org/CPAN/MIRRORED.BY.gz"\0)
    (D:\perl-tests\perl-v5.13.11-deb\lib/HTTP/Tiny.pm:376) padsv($self)
    => * SV_YES PV("http://www.perl.org/CPAN/MIRRORED.BY"\0) PV("http://www.perl.org/CPAN/MIRRORED.BY.gz"\0) \HV()

    (D:\perl-tests\perl-v5.13.11-deb\lib/HTTP/Tiny.pm:376) rv2hv
    => * SV_YES PV("http://www.perl.org/CPAN/MIRRORED.BY"\0) PV("http://www.perl.org/CPAN/MIRRORED.BY.gz"\0) HV()

    (D:\perl-tests\perl-v5.13.11-deb\lib/HTTP/Tiny.pm:376) const(PV("fh"))
    => * SV_YES PV("http://www.perl.org/CPAN/MIRRORED.BY"\0) PV("http://www.perl.org/CPAN/MIRRORED.BY.gz"\0) HV()
    PV("fh")
    (D:\perl-tests\perl-v5.13.11-deb\lib/HTTP/Tiny.pm:376) helem
    => * SV_YES PV("http://www.perl.org/CPAN/MIRRORED.BY"\0) PV("http://www.perl.org/CPAN/MIRRORED.BY.gz"\0) \GV()

    (D:\perl-tests\perl-v5.13.11-deb\lib/HTTP/Tiny.pm:376) rv2gv
    => * SV_YES PV("http://www.perl.org/CPAN/MIRRORED.BY"\0) PV("http://www.perl.org/CPAN/MIRRORED.BY.gz"\0) GV()

    (D:\perl-tests\perl-v5.13.11-deb\lib/HTTP/Tiny.pm:376) close

    ok, I will create perlbug report later today,
    but I want to try to narrow down problem to smaller failing script first.

    Best regards,
    Vadim.
  • Konovalov, Vadim (Vadim)** CTR ** at Apr 5, 2011 at 2:50 pm

    From: Konovalov, Vadim (Vadim)** CTR **
    From: david@autopragmatic.com On Behalf Of David Golden
    Does the MIRRORED.BY.tmp536449904640 file look "complete"? If you
    diff it against http://www.cpan.org/MIRRORED.BY is it
    identical? (Or
    at least close, if MIRRORED.BY was updated since the temp file was
    created?)
    it is 0 bytes, and running debugging perl with -Dtls -Dx
    gives me a segfault and following console output:

    my_close(int 6) line 476 + 10 bytes
    win32_close(int 6) line 3176 + 9 bytes
    PerlIOUnix_close(_PerlIO * * 0x011e6c08) line 2896 + 9 bytes
    PerlIOBase_close(_PerlIO * * 0x00901088) line 2244 + 10 bytes
    PerlIOBuf_close(_PerlIO * * 0x00901088) line 4262 + 9 bytes
    PerlIO__close(_PerlIO * * 0x00901088) line 1503 + 10 bytes
    Perl_PerlIO_close(_PerlIO * * 0x00901088) line 1516 + 9 bytes
    Perl_io_close(io * 0x00f320c8, char 1) line 972 + 12 bytes
    Perl_do_close(gv * 0x00f31868, char 1) line 937 + 13 bytes
    Perl_pp_close() line 632 + 11 bytes
    Perl_runops_debug() line 2267 + 9 bytes
    S_run_body(long 1) line 2347
    perl_run(interpreter * 0x003366c8) line 2268 + 9 bytes
    RunPerl(int 4, char * * 0x00332e50, char * * 0x00332f28) line 270 + 12 bytes
    main(int 4, char * * 0x00332e50, char * * 0x003333e8) line 23 + 18 bytes
    I've discovered that if I do not close segfaulted application, and wait for several minutes - then file
    .cpan\CPAN\MyConfig.pm
    in my home directory becomes good and "cpan" command serves me good afterwards, and no more segfaults.
    I am lost in finding segfault reasons, but - if I just ignore segfault - everything okay.

    Regards,
    Vadim.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupperl5-porters @
categoriesperl
postedApr 1, '11 at 5:20a
activeApr 5, '11 at 2:50p
posts6
users2
websiteperl.org

People

Translate

site design / logo © 2022 Grokbase