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

Dear Fellow Monks,

I have the following problem with PPM. Now, when I do "search" of a particular module, it gives the result.
ppm > search List-MoreUtils Searching in Active Repositories 1. List-MoreUtils [0.21] Provide stuff missing in List::Util 2. List-MoreUtils [0.21] List-MoreUtils
But when I try to install the module, it gives:
ppm> install List-MoreUtils Error: no suitable installation target found for package List-MoreUtil +s
Why is that happenning? Is there a way to correct the problem?

Regards,
Edward

Replies are listed 'Best First'.
Re: Inconsistency in PPM "search" and "install"
by holli (Abbot) on Aug 21, 2006 at 09:26 UTC
    Yes, I know that behaviour but I don't know the reason for it, probably a broken ppd. As a workaround, try
    ppm> install 1
    or
    ppm> install 2
    One of them should normally work.


    holli, /regexed monk/
Re: Inconsistency in PPM "search" and "install"
by McDarren (Abbot) on Aug 21, 2006 at 09:27 UTC
    I think (but am not 100% sure) that because you got multiple matches for your search, you need to be specific about which one you want, ie:
    install 1

    Anyway, that works for me:

    ppm> search List-MoreUtils Searching in Active Repositories 1. List-MoreUtils [0.21] Provide the stuff missing in List::Util 2. List-MoreUtils [0.21] List-MoreUtils 3. List-MoreUtils [0.16] Provide the stuff missing in List::Util 4. List-MoreUtils [0.16] Provide the stuff missing in List::Util ppm> install 1 Package 1: ==================== Install 'List-MoreUtils' version 0.21 in ActivePerl 5.8.7.813. ==================== Downloaded 38527 bytes. Extracting 9/9: blib/arch/auto/List/MoreUtils/MoreUtils.lib Installing C:\Perl\site\lib\auto\List\MoreUtils\MoreUtils.bs Installing C:\Perl\site\lib\auto\List\MoreUtils\MoreUtils.dll Installing C:\Perl\site\lib\auto\List\MoreUtils\MoreUtils.exp Installing C:\Perl\site\lib\auto\List\MoreUtils\MoreUtils.lib Installing C:\Perl\html\site\lib\List\MoreUtils.html Files found in blib\arch: installing files in blib\lib into architectu +re depende nt library tree Installing C:\Perl\site\lib\List\MoreUtils.pm Successfully installed List-MoreUtils version 0.21 in ActivePerl 5.8.7 +.813.

    Cheers,
    Darren :)

      I got only the two copies of version 0.21 when I tried typed in the search, and in that case using an "install List-MoreUtils" command as the next entry worked fine. I agree that that's not the way to do the install command. (Too much typing for me.)
        " I got only the two copies of version 0.21 when I tried typed in the search.."

        That's probably because you have less active repositories configured than I do. I have 4, I think the default is 2. You can see which repositories are configured (and active) by issuing the rep[ository] command, ie:

        ppm> rep Repositories: [1] ActiveState PPM2 Repository [2] ActiveState Package Repository [3] UW_Winnepeg [4] Kobes [ ] Winnepeg2
        "I agree that that's not the way to do the install command."

        Well, there are several ways to install using ppm - it's just easier after a search to install by number. You can also install by a range of numbers, or a URL. "help install" from the ppm command-line gives the full low-down.

        Cheers,
        Darren :)

Re: Inconsistency in PPM "search" and "install"
by rodion (Chaplain) on Aug 21, 2006 at 09:26 UTC
    I went into ppm (version 3.1) on an XP box and typed the commands exactly as you (monkfan) have them. It worked fine.

    I noticed that the error message in your post says

    Error: no suitable installation target found for package List-MoreUtil
    (bolding added) although your command said "install List-MoreUtils". It looks like when you typed the command into ppm, you left off the "s" on the end. We all do it sometimes.

    Update: I notice holli responded just before me (same minute). I very much recommend his A guide to installing modules for Win32. Which includes his advice above.

    Update:Added strikeout. My error. My thanks to marto. In that case I don't have an explanation of why it didn't work for monkfan, assuming the Error message was pasted from the original, rather than retyped.

      Hi rodion,

      monkfan has used code tags to post the error message. Without code tags:

      ppm> install List-MoreUtils Error: no suitable installation target found for package List-MoreUtils

      Looks like this when inside code tags:
      ppm> install List-MoreUtils Error: no suitable installation target found for package List-MoreUtil +s
      Note that the s in List-MoreUtils is on the next line.

      Martin
Re: Inconsistency in PPM "search" and "install"
by bobf (Monsignor) on Aug 21, 2006 at 15:20 UTC

    I have seen this error message occur when the version of the module that you're trying to install does not match the version of Perl (you can get more information about a particular search result using ppm's "describe" command). In the example below I try to install a ppm for MoreUtils that was built for 5.8 onto Perl 5.6.

    C:\>perl -v This is perl, v5.6.1 built for MSWin32-x86-multi-thread
    extraneous output deleted
    ppm> desc 3 ==================== Package 3: Name: List-MoreUtils Version: 0.16 Author: Tassilo von Parseval <tassilo.von.parseval@rwth-aachen.de> Title: List-MoreUtils Abstract: Provide the stuff missing in List::Util Location: Kobes Available Platforms: 1. MSWin32-x86-multi-thread-5.8 ==================== ppm> i 3 Package 3: Error: no suitable installation target found for package List-MoreUtil +s. ppm>
    I chose a different module from the results list and MoreUtils installed just fine.