Package Manager CPAN Downloads returns '401 Authorization Required'

Posted by ado on 2013-10-30 22:27
Forums: PPM | OS: Windows 2000 Pro / Server

The Perl Package manager (PPM version 4.10 ActivePerl version 5.10.1.1007) returns "401 Authorization Required".

Granted it's on an ancient W2K Pro OS (a sacrificial machine) but the error appears not to be platform related.

Any words of wisdom so i can get a few CPAN packages downloaded to the library?

Regards,

Aza D. Oberman

ado | Sat, 2013-11-02 11:56

When using PPM the dependencies are found and added but in the end PPM fails to install the following CPAN libraries:

JSON
JSON::XS
WWW::Mechanize

Done individually or as a group PPM eventually halts with "401 Authorization Required".

It doesn't seem like a temporary problem because I've made numerous attempts over two days.

Is there a way to determine the dependencies (additional packages that must be installed) and then install the necessary CPAN packages by hand on Windows?

grahams
ActiveState Staff
Thu, 2013-11-07 13:07

The 401 is an intercept. It happens if you request resources which need a Business Edition license, and a license can't be found. There's an FAQ:

http://community.activestate.com/node/9565

It's finding some of the dependencies in your local install. It only fails when the next component needed isn't already available, and has to be sourced from PPM.

ado | Thu, 2013-11-07 14:29

It's disappointing but I suppose all good things have to end.

Fortunately, Visual Studio came to the rescue and I could move the project.

Regards,

Aza

mkriek | Wed, 2013-11-06 08:35

Yes, you can search CPAN online and download anything you would need http://search.cpan.org/
Once you find the page of the module you want you can download the source and compile it yourself, the information page also lists dependencies so you can download those too.

A quick google search turned up this tutorial on doing this http://www.thegeekstuff.com/2008/09/how-to-install-perl-modules-manually...

With regards to your inital error, you 'may' find this information useful, depending on your situation. http://community.activestate.com/node/9617

ado | Wed, 2013-11-06 10:01

Thanks for the pointers mkriek.

It wasn't clear that the issue is loading the CPAN library used by ActiveState Community edition under Windows.

There was no problem loading the CPAN modules on the CentOS server, but setting up a corresponding environment on a Windows development machine turned into a headache when PPM, the ActiveState library manager, terminated each installation attempt with a "401 Authorization Required."

A quick check in the Windows Perl library directory shows the expected new sub-directories, appropriately named files and plausible file sizes. I've not had a chance to dig into it yet; however, I suspect that as ominous as the "401 Authorization Required" error sounds, it does not signal a failed library installation.

I'll add to this thread once I've had a chance to test my hypothesis.

Regards,

Aza