On 17 March 2010 02:13, Doug Cacialli <doug.cacia...@gmail.com> wrote:
> On Tue, Mar 16, 2010 at 4:36 AM, Dermot <paik...@googlemail.com> wrote:
>> On 16 March 2010 00:29, Doug Cacialli <doug.cacia...@gmail.com> wrote:
>>> Hello list,
>>
>>>
>>> Building Lingua-Stem
>>> Can't locate Lingua/Stem.pm in @INC (@INC contains:
>>> C:/strawberry/perl/lib C:strawberry/perl/site/lib
>>> c:\strawberry\perl\vendor\lib .) at lib/Lingua/test.pl line 2.
>>> BEGIN failed--compilation aborted at lib/Lingua/test.pl line 3.
>>> lib/Lingua/test.pl failed at
>>> C:/strawberry/perl/lib/Module/Build/Base.pm line 2795.
>> --
>> To unsubscribe, e-mail: beginners-unsubscr...@perl.org
>> For additional commands, e-mail: beginners-h...@perl.org
>> http://learn.perl.org/
>>
>>
>>
>
> Thank you for the help, Dermot.  Could you (or someone else on the
> list) provide some detail regard how to set PERL5LIB to include the
> path to the to-be-installed Lingua-Stem/lib, or edit the test.pl and
> use lib?  I tried manually installing; perl Build.PL worked fine,
> build choked and produced the same error as above.  I was able to find
> Lingua/Stem.pl ... it's in the Lingua-Stem-0.83 directory
> (./lib/Lingua/Stem.pl) I extracted from the compressed install file I
> got from CPAN.  Is that helpful?
>
> I poked around through some online documentation for about 45 minutes
> - I've reached the end of my present skill.


This may be a bit tricky to replicate under windows. PERL5LIB is an
environment variable you can set so that perl will look in that path
for libraries. It's akin to @INC. See perldoc perlrun for more
details. There are a number of ways to set environment variables under
windows, under XP one way would be system
properties/advanced/Enviroment variables.

It sounds like the test is, well not complete, because it has not told
perl where to look and it's in a not standard place.


======== lib/Lingua/test.pl ==============
#!/usr/bin/perl

use Lingua::Stem qw (stem);
my @words = qw(a list of words to be stemmed for testing purposes);
my $stemmed_words = stem(@words);
print join("\n",@$stemmed_words)

================


Try modifying test.pl so it reads:

#!/usr/bin/perl

use FindBin qw($Bin);
use lib q($Bin/../lib)

use Lingua::Stem qw (stem);
...
...

Hopefully that will allow the test to work. Looking at the test, I
would say that it's not critical to the installation and you could
force install.

I hope that helps,
Dp.

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to