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

Please, do go all perlmonks on me!

I am trying to install Lingua-Stem and the install fails, both from the PPM command line and from the graphical instance of PPM. Same reason is given in both places. Since it seems to be tripping up on something it installed, I am wondering if I should look for an alternate repository.

If anyone know a good alternate place to get Lingua::Stem, or something else I could do to get around this problem, please help.

Synchronizing Database ... DONE Lingua-Stem marked for install Lingua-Stem depends on Lingua-Stem-It Lingua-Stem depends on Lingua-Stem-Ru Lingua-Stem depends on Lingua-Stem-Snowball-Da Lingua-Stem depends on Lingua-PT-Stemmer Lingua-Stem depends on Module-Build Lingua-Stem depends on Snowball-Swedish Lingua-Stem depends on Lingua-Stem-Fr Lingua-Stem depends on Text-German Lingua-Stem depends on Snowball-Norwegian Prerequisite packages to be installed: Lingua-Stem depends on Lingua-Stem-It Lingua-Stem depends on Lingua-Stem-Ru Lingua-Stem depends on Lingua-Stem-Snowball-Da Lingua-Stem depends on Lingua-PT-Stemmer Lingua-Stem depends on Module-Build Lingua-Stem depends on Snowball-Swedish Lingua-Stem depends on Lingua-Stem-Fr Lingua-Stem depends on Text-German Lingua-Stem depends on Snowball-Norwegian Preparing install to site area of: Lingua-Stem Lingua-Stem-It Lingua-Stem-Ru Lingua-Stem-Snowball-Da Lingua-PT-Stemmer Module-Build Snowball-Swedish Lingua-Stem-Fr Text-German Snowball-Norwegian Downloading Lingua-Stem-0.82 ... DONE Downloading Lingua-Stem-It-0.01 ... DONE Downloading Lingua-Stem-Ru-0.01 ... DONE Downloading Lingua-Stem-Snowball-Da-1.01 ... DONE Downloading Lingua-PT-Stemmer-0.01 ... DONE Downloading Module-Build-0.2807 ... DONE Downloading Snowball-Swedish-1.01 ... DONE Downloading Lingua-Stem-Fr-0.02 ... DONE Downloading Text-German-0.06 ... DONE Downloading Snowball-Norwegian-1.0 ... DONE Unpacking Lingua-Stem-0.82 ... DONE Unpacking Lingua-Stem-It-0.01 ... DONE Unpacking Lingua-Stem-Ru-0.01 ... DONE Unpacking Lingua-Stem-Snowball-Da-1.01 ... DONE Unpacking Lingua-PT-Stemmer-0.01 ... DONE Unpacking Module-Build-0.2807 ... DONE Unpacking Snowball-Swedish-1.01 ... DONE Unpacking Lingua-Stem-Fr-0.02 ... DONE Unpacking Text-German-0.06 ... DONE Unpacking Snowball-Norwegian-1.0 ... DONE Generating HTML for Lingua-Stem-0.82 ... DONE Generating HTML for Lingua-Stem-It-0.01 ... DONE Generating HTML for Lingua-Stem-Ru-0.01 ... DONE Generating HTML for Lingua-Stem-Snowball-Da-1.01 ... DONE Generating HTML for Lingua-PT-Stemmer-0.01 ... DONE Generating HTML for Module-Build-0.2807 ... DONE Generating HTML for Snowball-Swedish-1.01 ... DONE Generating HTML for Lingua-Stem-Fr-0.02 ... DONE Generating HTML for Text-German-0.06 ... DONE Generating HTML for Snowball-Norwegian-1.0 ... DONE Installing to site area ... failed ERROR: File conflict; package Lingua-Stem-Snowball-Da already provide +C:/Perl/site/lib/Lingua/Stem/Snowball/stemmer.pl

Replies are listed 'Best First'.
Re: Lingua::Stem install woe
by randyk (Parson) on Apr 11, 2007 at 23:10 UTC
    I'm not sure how to get around that - it's an annoying problem, as it aborts installation of everything. One workaround is to get the Bundle-Lingua-Stem.zip archive from http://theoryx5.uwinnipeg.ca/ppms/bundles/, which contains the Lingua-Stem ppm package and all of it's dependencies. Unpack this to some directory, add this directory to your list of ppm repositories as
    ppm rep add temp_repository file://C:/Path/to/current/directory
    and then run something like the following in that directory:
    use strict; opendir(my $dir, '.'); my @ppds = grep {/\.ppd$/} readdir $dir; closedir $dir; foreach my $p (@ppds) { my @args = ('ppm', 'install', $p, '--nodeps'); print "@args\n"; system (@args); }
    This will use ppm to install all the packages without worrying about the dependencies; it'll fail on the Lingua-Stem-Snowball-Da package for the reason you found, but at least the others will get installed.
      randyk,

      That worked like a charm. Thank you!
Re: Lingua::Stem install woe
by Anonymous Monk on Apr 16, 2007 at 07:22 UTC
    You should report that to the authors of Lingua-Stem-Snowball-Da, Snowball-Norwegian and Snowball-Swedish.

    stemmer.pl gets installed in the wrong place because they don't include

    WriteMakefile ( EXE_FILES => [ 'stemmer.pl' ],
    in their Makefile.PL