Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

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.

Replies are listed 'Best First'.
Re: Error When Installing a Package
by MidLifeXis (Monsignor) 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.


Re: Error When Installing a Package
by redgreen (Priest) 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.

Re: Error When Installing a Package
by Marshall (Canon) 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?

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2023-09-30 16:14 GMT
Find Nodes?
    Voting Booth?

    No recent polls found