Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

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:

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)

Replies are listed 'Best First'.
Re: Unable to enable - trying to add repositories to PPM (ActivePerl 5.12)
by marto (Archbishop) 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 (Chancellor) 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 Downloading ActiveState Package Repository packlist...done Downloading packlist...done Updating database...done Repo 2 added. C:\_32>
    Maybe you need to include the 'www.' in the url.

      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:
      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 ( Repo: CPAN: 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 (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.

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?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://871718]
Approved by marto
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2018-05-26 18:00 GMT
Find Nodes?
    Voting Booth?