hangon has asked for the wisdom of the Perl Monks concerning the following question:

On my older windoz box, the @INC path for Activestate Perl is:

C:\Perl\lib
C:\Perl\site\lib
However, PPM insists on installing modules here:
C:\p4view\Apps\ActivePerl\MSI\data\ActivePerl\Perl\site\lib
So, naturally I get "Can't locate foo.pm in @INC" when I try to use them. Manually copying the modules to the correct path is getting old, and I have not been able to find any help on activestate, google or supersearch. Does anyone know how to configure the path where PPM2 installs modules?

  • Comment on PPM installs modules in the wrong place

Replies are listed 'Best First'.
Re: PPM installs modules in the wrong place
by chromatic (Archbishop) on Jun 05, 2008 at 19:26 UTC

    It sounds like you may have two versions of PPM installed, and you're using the other one.

Re: PPM installs modules in the wrong place
by syphilis (Archbishop) on Jun 05, 2008 at 22:17 UTC
    IIRC "C:\p4view\Apps\ActivePerl\MSI\data\ActivePerl\Perl\site\lib" is the actual directory in which ActiveState build their perl distros.
    When you install one of their builds, that location should be overwritten with the actual location in which you're installing perl. Apparently, wrt ppm at least, that didn't happen.

    I think you probably did something you shouldn't have done when installing this build of ActivePerl - eg, you unzipped the package directly to C:\Perl, instead of unzipping to a temporary location then installing into C:\Perl by running the Installer.bat.

    Which package did you download (msi or zip) and how did you install it ?

    Cheers,
    Rob

      It's been a while (around 2003) since installation, so I don't remember much other than it wasn't fun. The msi installer didn't work, so I had to abandon 5.8 and install 5.6 from zip and still had trouble. IIRC the installer would die before finishing.

      I looked at installer.bat (clever trick, embedding Perl in a batch file) to see what it does, which led me to config.pm where I found a couple dozen references to C:\p4view.... So I took a chance and s/ C:\p4view... / C:\Perl / seems to have fixed the problem. Thanks for pointing me in the right direction.

        So I took a chance and s/ C:\p4view... / C:\Perl / seems to have fixed the problem

        Yep - that should be about right. In the same directory as Config.pm you'll find a file called config_heavy.pl. You should check it as well, making the same alterations to it (if applicable).

        Cheers,
        Rob