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

Hi All

I am trying to install modules from my local repository.

I downloaded AdminMisc_5005_AS.tar.gz, AdminMisc_5005.tar.gz and AdminMisc_5006.tar.gz. I extracted them into 3 seperate seperate folders, then I got one of the ppd files and edited the lines;
<SOFTPKG NAME="Win32-AdminMisc" VERSION="0,2000,07,08"> <TITLE>Win32::AdminMisc</TITLE> <ABSTRACT>The Win32::AdminMisc extension for Win32 X86</ABSTRACT> <AUTHOR>Roth Consulting (http://www.roth.net/)</AUTHOR> <IMPLEMENTATION> <OS NAME="MSWin32" /> <ARCHITECTURE NAME="MSWin32-x86-object" /> <CODEBASE HREF="c:/unzipped/AdminMisc_5005_AS/AdminMisc_5005_A +S.tar.gz" /> </IMPLEMENTATION> <IMPLEMENTATION> <OS NAME="MSWin32" /> <ARCHITECTURE NAME="MSWin32-x86" /> <CODEBASE HREF="c:/unzipped/AdminMisc_5005/AdminMisc_5005.tar. +gz" /> </IMPLEMENTATION> <IMPLEMENTATION> <OS NAME="MSWin32" /> <ARCHITECTURE NAME="MSWin32-x86-multi-thread" /> <CODEBASE HREF="c:/unzipped/AdminMisc_5006/AdminMisc_5006.tar. +gz" /> </IMPLEMENTATION> </SOFTPKG>
Then I copies the ppd file (in read-only) into each folder created for each zipped file. However when I tried to install the package I got the following.
C:\Perl>ppm PPM interactive shell (2.1.6) - type 'help' for available commands. PPM> set repository LOCAL c:/unzipped PPM> search Packages available from c:/unzipped: Win32-AdminMisc [0.2000.07.08] The Win32::AdminMisc extension for Win3 +2 X86 PPM> install Win32-AdminMisc Install package 'Win32-AdminMisc?' (y/N): y Installing package 'Win32-AdminMisc'... Error installing package 'Win32-AdminMisc': Error reading c:/unzipped/ +c:/unzipped/AdminMisc_500 6/AdminMisc_5006.tar.gz
Can someone please point me to what am I doing wrong?

Thanks very much in advance.

Replies are listed 'Best First'.
Re: Installing Modules from local repository
by rdfield (Priest) on Oct 09, 2002 at 14:46 UTC
    Something about your description doesn't sound quite right. You say you've downloaded various .tar.gz files and you've edited the ppd files to read ...MSWin32.... I can only assume that you are using an Activestate distro on a Win32 machine and are trying to install a standard CPAN tarball. You can't do that. Go to Activestate download the appropriate .zip files, unzip them, and then use ppm. If you look closely the unzip process will create a tarball in a subdirectory and ppm will process it directly.

    rdfield

Re: Installing Modules from local repository
by PodMaster (Abbot) on Oct 09, 2002 at 12:29 UTC
    And why did you do that? ( why didn't you just install it from the roth repository)

    try `ppm install --location=. Win32-AdminMisc', where Win32-AdminMisc.pdd is in the current directory, and all else is kosher.

    If you can't work it out, try the script at the end of http://crazyinsomniac.perlmonk.org/perl/ppm, to which I've had to resort sometimes (it's what ppm does internally when installing modules ~ the ppm shell is crap)

    Also, I suggest using ppm3 if you got it, because it allows you to maintain a database of repositories.

    ____________________________________________________
    ** The Third rule of perl club is a statement of fact: pod is sexy.

      I don't have unrestricted FTP access...
Re: Installing Modules from local repository
by AcidHawk (Vicar) on Oct 09, 2002 at 12:39 UTC

    I do the same thing.

    Try changing this line

    <CODEBASE HREF="c:/unzipped/AdminMisc_5005_AS/AdminMisc_5005_AS.tar.gz" />

    to

    <CODEBASE HREF="AdminMisc_5005_AS/AdminMisc_5005_AS.tar.gz" />

    You are already telling ppm where to load the package from when you say set repository LOCAL c:/unzipped

    -----
    Of all the things I've lost in my life, its my mind I miss the most.
      No Joy,...I have tried this as!!!!!

        You may have to do it manually then.

        I got the 5.006 zip file. You can extract it to your c:/unzipped/AdminMisc_5006 dir...then

        copy from the bin dir the AdminMisc.dll to the <perldir>\site\lib\auto\Win32\AdminMisc\AdminMisc.DLL
        copy the ADMINMSC.PM file to <perldir>\site\lib\Win32\AdminMisc.PM
        copy for the test dir all the .pl files to <perldir>\site\lib\auto\Win32\AdminMisc\
        copy the readme, Readme.pod, Win32-AdminMisc.ppd all to <perldir>\site\lib\auto\Win32\AdminMisc\
        my ppm install then writes a .packlist in the <perldir>\site\lib\auto\Win32\AdminMisc\ dir which looks as follows

        C:\Perl\site\lib\Win32\AdminMisc.PM C:\Perl\site\lib\Win32\AdminMisc\DESKTOP.PL C:\Perl\site\lib\Win32\AdminMisc\MEMGROUP.PL C:\Perl\site\lib\Win32\AdminMisc\NewDesktop.pl C:\Perl\site\lib\Win32\AdminMisc\README C:\Perl\site\lib\Win32\AdminMisc\RUNAS.PL C:\Perl\site\lib\Win32\AdminMisc\Readme.pod C:\Perl\site\lib\Win32\AdminMisc\RenameUser.pl C:\Perl\site\lib\Win32\AdminMisc\SCHED.PL C:\Perl\site\lib\Win32\AdminMisc\SCHED2.PL C:\Perl\site\lib\Win32\AdminMisc\SWITCH.PL C:\Perl\site\lib\Win32\AdminMisc\Test.pl C:\Perl\site\lib\Win32\AdminMisc\VALIDATE.PL C:\Perl\site\lib\Win32\AdminMisc\Win32-AdminMisc.ppd C:\Perl\site\lib\Win32\AdminMisc\listdesktop.pl C:\Perl\site\lib\auto\Win32\AdminMisc\AdminMisc.DLL

        I don't think this updates the ppm database of installed modules but maybe some-one more experienced can finish this off for me... or it may just work.

        Hope this helps...

        -----
        Of all the things I've lost in my life, its my mind I miss the most.
        Hey Guys, Please Help

        I have been trying all day to sort this out, surely it should be easyier that this...

        Sorry I meant 'as well' in the previous reply