Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Unable to enable - trying to add repositories to PPM (ActivePerl 5.12)

by elef (Friar)
on Nov 16, 2010 at 13:16 UTC ( #871718=perlquestion: print w/ replies, xml ) Need Help??
elef has asked for the wisdom of the Perl Monks concerning the following question:

Dear monks,
This should be a simple one, but I haven't been able to figure it out.
I have a new computer with Windows 7. I installed ActivePerl 5.12.2, and launched PPM to get the modules I need. One of them is HTML::Strip, which isn't in the default repository. I wanted to enable the trouchelle and bribes repositories under Edit/Preferences, but no luck. The previous PPM had these repos set up and disabled by default, it was just a matter of enabling them. This version doesn't, and whatever URL I tried in the Location box for adding them, the Repositories tab shows that the repo has 0 packages and the packages don't show up in the main table.
URLs I tried:
http://trouchelle.com/ppm12/package.xml
http://trouchelle.com/ppm12/
http://bribes.org/perl/ppm/package.xml
http://bribes.org/perl/ppm/

What am I doing wrong, or is ppm - perhaps my install - broken somehow?

On another note, I need to start ppm by running ppm.bat as administrator, because if I just start ppm up from the console, I get an error message that "All activated install areas are read-only" i.e. I have no permissions to install or delete packages. Is this normal?

Comment on Unable to enable - trying to add repositories to PPM (ActivePerl 5.12)
Re: Unable to enable - trying to add repositories to PPM (ActivePerl 5.12)
by marto (Chancellor) on Nov 16, 2010 at 13:23 UTC

    Did you try following the instructions for adding the repository?

      Actually, yes. It failed the same way.

        Which "same way"? It doesn't show up or you get the "All activated install areas are read-only" error?

Re: Unable to enable - trying to add repositories to PPM (ActivePerl 5.12)
by syphilis (Canon) on Nov 16, 2010 at 23:49 UTC
    Here's how I just added the bribes repo to my list on ActivePerl build 1202 (5.12.2):
    C:\_32>ppm repo add http://www.bribes.org/perl/ppm Downloading ActiveState Package Repository packlist...done Downloading www.bribes.org packlist...done Updating www.bribes.org database...done Repo 2 added. C:\_32>
    Maybe you need to include the 'www.' in the url.

    Cheers,
    Rob
      Thanks for the detailed advice. I copy-pasted your command into the console. Got no error message, "Repo 2 added" - everything seems fine.
      But in PPM, I see this:
      http://www.flickr.com/photos/lofarkas/5183303392/
      0 packages as you can see, and HTML::Strip is still not in the module list.
        and HTML::Strip is still not in the module list

        Odd - I get:
        C:\_32>ppm search HTML-Strip 1: HTML-Strip Perl extension for stripping HTML markup from text. Version: 1.06 Author: Alex Bowley (kilinrax@cpan.org) Repo: www.bribes.org CPAN: http://search.cpan.org/dist/HTML-Strip-1.06/ C:\_32>
        What does the same command return for you ?

        As I write this, however, the bribes repo appears to be unreachable.
        Even ppm install http://www.bribes.org/perl/ppm/HTML-Strip.ppd (which doesn't even need bribes on the repo list) hangs.
        I'm not sure how long it has been like this ... or for how long these conditions will last. I'll send the owner of the repo a message, just in case he's unaware of this.

        Cheers,
        Rob
Re: Unable to enable - trying to add repositories to PPM (ActivePerl 5.12)
by elef (Friar) on Nov 18, 2010 at 14:52 UTC
    This limits what I can do with perl quite severely... I don't want to install modules manually if I can avoid it. Should I uninstall activeperl 5.12 and install an earlier version?
    Any tips on how to get this to work? It's a bone stock Win7 install on a brand new computer and the newest ActivePerl - there is no reason for it not to work, but it just doesn't.
      Have you contacted ActiveState for help?
        No... I was hoping this would be a matter of some simple setting. Now I've tried disabling my antivirus and setting up a connection without a firewall... no change.
        If there's no answer here, I'll post in the activestate forum, perhaps they will have a solution.
Re: Unable to enable - trying to add repositories to PPM (ActivePerl 5.12)
by elef (Friar) on Nov 19, 2010 at 14:21 UTC
    I decided I had had enough. I uninstalled AP 5.12 and installed 5.10... Same problem.
    So I decided to just nuke that as well and installed the exact same 32-bit 5.10 that I have on my XP machine. This one works, at long last.
      I know this is old but I stumbled upon it so I figured some one else might. I fixed the "Read only" Error by running a CMD as Administrator and running PPM. It opened the GUI and I was able to mark all packages for upgrade. I assume it will work the same for adding repos as well.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (7)
As of 2014-07-25 23:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (175 votes), past polls