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

Hi all,

I am trying to install Lingua::Identify module from the CPAN shell. The install fails eventually, but along the way, I get the below mentioned Warning couple of times, and also several errors that I am copying below (order in which they appear) .

I can see that it is downloading "Class-Factory-Util-1.7.tar.gz ok" but from then on something happens..

Any suggestions?

And oh by the way, I am not root on the machine that I am trying to install this module on.

Thanks.

Andy

==Error 1==

Couldn't install Module::Build, giving up.

Running make test

Make had some problems, maybe interrupted? Won't test Running make install

Make had some problems, maybe interrupted? Won't install

==End==

==Error 2==

# Failed test 'use Lingua::Identify;'

# Error: Can't locate Class/Factory/Util.pm in @INC

==End==

==Warning==

** WARNING **

----------------------------------------------------------------------------

Lingua::Identify is now based on UTF-8. Old language modules are no longer compatible. Before continuing you should be sure to remove them.

Basically, remove all two letter packages inside the Lingua/Identify folder in your local installation.

If tests fail, probably that is the reason why.

Good luck.

----------------------------------------------------------------------------

Replies are listed 'Best First'.
Re: Lingua::Identify Installation Error
by JavaFan (Canon) on Jun 02, 2010 at 00:43 UTC
    I am not root on the machine that I am trying to install this module on.
    You don't have to be. As long as you have write access to whatever directory you're installing stuff in.

    If stuff fails, try doing things by hand; see where it fails:

    1. Download the tarball.
    2. Unpack it.
    3. Run perl Makefile.PL (or whatever commands the INSTALL file mentions)
    4. make
    5. make test
    6. make install
    You may need to recurse if there are dependencies.
      Thanks for your response.

      I tried to manually install the Lingua::Identify module also. At that point, it asks for Class::Factory::Util and Module::Build to be installed, and it attempts to do so, but then from there on I get the same errors as before.

      I manually tried to install Class::Factory::Util and as expected it asked for Module::Build to be installed. I then tried to install Module::Build and it did not, saying that some dependencies were older version - I corrected this by installing all the latest dependencies. After this I used "force install" to install Module::Build, and it went OK.

      I then tried to install Class::Factory::Util and it still does not see Module::Build loaded and wants to install it again.

      Does anyone have any suggestions?

      Thanks.

      Andy

        What happens if you do
        $ perl -MModule::Build -e1
        Where is Module::Build installed? What's your @INC?