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


in reply to Re^10: LWP - 500 Internal Error
in thread LWP - 500 Internal Error

I'm trying to upgrade the library using the link from CPAN. But there seem to be some problems with nmake.

What problems? perl -V:make

Is there any other way to incorporate the new libraries?

Yes, but why ignore problem which are only going to persist? A Guide to Installing Modules

ppm upgrade LWP

Replies are listed 'Best First'.
Re^12: LWP - 500 Internal Error
by Anonymous Monk on Sep 08, 2009 at 11:55 UTC

    I tried ppm upgrade LWP But that returns "no upgrades available for LWP"

    Having the upgrade through this utility qwould eb the best option

    perl -V:make returns "nmake"

    nmake gave errors where it said it couldn't find Program Files - I replaced all "Program Files" mention in the makefile with Progra~1

    Next step nmake failed as follows

    E:\ovXtras\libwww-perl-5.831\libwww-perl-5.831>nmake Microsoft (R) Program Maintenance Utility Version 1.50 Copyright (c) Microsoft Corp 1988-94. All rights reserved. 'E:\ovXtras\libwww-perl-5.831\libwww-perl-5.831\0' is not recognized a +s an inter nal or external command, operable program or batch file. NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : return code + '0x1' Stop.

    This path occurs in the makefile only once, as follows:

    FULLPERL = 0 ABSPERL = E:\ovXtras\libwww-perl-5.831\libwww-perl-5.831\0

    And this "0" file doesn't even exist.

    Now I don't know how to troubleshoot this.

      Try forcing it
      ppm install LWP --force
      I don't use ppm often so I'm not sure if that command is correct.

      nmake gave errors where it said it couldn't find Program Files - I replaced all "Program Files" mention in the makefile with Progra~1

      You can install perl into "program files", but you have to police your path/config, see Changing Perl Config settings, example

      C:\>echo echo %~s1 >shortpath.bat C:\>call shortpath.bat "C:\Program Files\Perl\bin\perl.exe" C:\PROGRA~1\Perl\bin\perl.exe C:\>C:\PROGRA~1\Perl\bin\perl.exe Makefile.PL C:\>set path=C:\PROGRA~1\Perl\bin\perl.exe;%path C:\>perl Makefile.PL
      For future reference, its better if you copy/paste error messages .
Re^12: LWP - 500 Internal Error
by vsingh (Initiate) on Feb 18, 2013 at 11:47 UTC
    I faced the same issue on Windows , cpan was throwing the same error messages . I would recommend following things when configuring http_proxy setting . 1. Never modify the CPAN/config.pm module instead modify the local copy present in C:/Users/user_name/APPData/local. 2. Configure Environment variable http_proxy properly. Key : http_proxy value : http://proxy_address:port 3. Even after setting the proxy env if it doesnt work try deleting the local copy of config.pm , it might have been miss configured.