Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Error When Installing a Package

by MCBleiweiss (Initiate)
on Oct 07, 2013 at 16:23 UTC ( #1057277=perlquestion: print w/ replies, xml ) Need Help??
MCBleiweiss has asked for the wisdom of the Perl Monks concerning the following question:

I am trying to install the "Package File-Util" using the graphical Module Installer and get the message "failed 401 Authorization Required".

When I check the Preferences, I see that the active target folder is C:\Perl\site. However, it should be c:\Perl, but this option is marked as locked and I am unable to select it. In addition, I can find no way to unlock it from withing the application.

Any advice would be most appreciated.
Thanks.

Comment on Error When Installing a Package
Re: Error When Installing a Package
by MidLifeXis (Prior) on Oct 07, 2013 at 17:09 UTC

    Leave c:\Perl alone. Install in c:\Perl\site, or better yet, in your own perl installation. %PERLROOT%\{bin,lib,...} is typically for the base installation of the version of perl you have installed (I am guessing activestate something or another). %PERLROOT%\site\{bin,lib,...} is used when installing modules on top of that base installation.

    Update: it is likely OP's own installation.

    Update 2: You are dealing with two issues: first, the 401 error which is dealt with below in another response, and second, wanting to do the module installation in c:\perl instead of c:\perl\site.

    --MidLifeXis

Re: Error When Installing a Package
by redgreen (Curate) on Oct 07, 2013 at 17:12 UTC

    It sounds like you are trying to use the ActiveState Perl Package Manager on an older version of perl. I get the same: "failed 401 Authorzation Required" from my AS Perl 5.10.1.

    Older ActiveState perl requires a paid subscription.

    Can you try with the latest version?

      Can you try with the latest version?

      Might be better to go for 5.16.3. They're also providing 5.18.1, but I'm not sure that they've got any ppm packages at all built for 5.18.1.

      Cheers,
      Rob
Re: Error When Installing a Package
by Marshall (Prior) on Oct 07, 2013 at 22:24 UTC
    Its been many months (>1 year++) since I tried to install a package with PPM. I do have a full business license. But I was not able to install this package.

    See: ActiveState PPM Availability and the 401 error
    Evidently things have changed in respect to repository access over the years and licensing issues matter a lot more now. However, I think you can still do it albeit with more hassle. See the link above - there is a manual download process described. This 401 error has to do with the PPM repository access, not an issue with your system or its directories.

    Update: It appears to me that Active State is still "free", but ppm will only work with the current or their edition before that of Perl. Sounds to me like kind of a "forced upgrade". I have no idea why Active State did this.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1057277]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2014-08-30 02:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (291 votes), past polls