in reply to Problem installing Perl modules

It could also be a permission problem, in some weird interaction with two versions of Perl being installed...

Try enabling double-verbose mode:

$ perl Makefile.PL verbose verbose

It should then output a lot of stuff, among which you should find "Result: ...", indicating why the calling of perl failed...

Also, what's the permission of the actual binary (i.e. not the link)?

$ ls -l /opt/ActivePerl-5.8/bin/perl

or

$ ls -lL /usr/bin/perl

Replies are listed 'Best First'.
Re^2: Problem installing Perl modules
by msk_0984 (Friar) on Aug 02, 2007 at 13:26 UTC
    Yaah on executing the above command using double verbose I am getting lot of stuff being printed.

    . . . Checking /opt/ActivePerl-5.8/bin/perl Executing /opt/ActivePerl-5.8/bin/perl Result: '' . . Checking /opt/ActivePerl-5.8/bin/perl Executing /opt/ActivePerl-5.8/bin/perl Result: '' Checking /usr/sbin/perl Checking /usr/bin/perl Executing /usr/bin/perl Result: '' . . .
    permission of the actual binary are

    ls -l /opt/ActivePerl-5.8/bin/perl lrwxrwxrwx 1 root other 11 Jul 25 00:18 /opt/ActivePerl-5.8/bin +/perl -> perl-static
    Sushil Kumar

      So, let us play that same game once again.

      What do the following commands output?

      /usr/bin/perl -v /opt/ActivePerl-5.8/bin/perl -v /opt/ActivePerl-5.8/bin/perl-static -v

      Also, what groups do these programs all belong to?

      ls -l /usr/bin/perl /opt/ActivePerl-5.8/bin/perl /opt/ActivePerl-5.8/b +in/perl-static

      From the output you get, it seems neither /usr/bin/perl nor /opt/ActivePerl-5.8/bin/perl nor /opt/ActivePerl-5.8/bin/perl-static are executable for the user you're running things as. Talk to your sysadmin to fix these things.

      ls -l /opt/ActivePerl-5.8/bin/perl lrwxrwxrwx 1 root other 11 Jul 25 00:18 /opt/ActivePerl-5.8/bin +/perl -> perl-static

      That's still a symlink...  It's probably easier to use option -L, which dereferences across any levels of links...

      Also, what happens, if you try calling /opt/ActivePerl-5.8/bin/perl -v and /opt/ActivePerl-5.8/bin/perl -e'require 5.008.8' manually? Apparently, that's failing from within ExtUtils::MakeMaker (or more precisely, ExtUtils::MM_Unix)...