in reply to Lingua::Identify Installation Error

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.

Replies are listed 'Best First'.
Re^2: Lingua::Identify Installation Error
by listanand (Sexton) on Jun 03, 2010 at 19:31 UTC
    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?
        Can't locate Module/Build.pm in @INC (@INC contains: /home/andy/perl5/ +lib/perl5/x86_64-linux-gnu-thread-multi /home/andy/perl5/lib/perl5 /e +tc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/li +b/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/l +ocal/lib/site_perl .). BEGIN failed--compilation aborted.
        Ah I see. For some reason CPAN installed Module::Build inside /home/andy/perl5/lib/perl5/site_perl. That is not there in @INC though....

        What can I do next?

        Edit: I tried to manually install Module::Build into ~/perl5. I used

        perl Makefile.PL PREFIX=/home/andy/perl5/ make make test make install
        Now my Module::Build went inside /home/andy/perl5/share/perl/5.8.8/.