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

Hi Monks,
I am trying to instal perl 5.10 in my Mac 10.5 (huh! version no mirrors), as a non-root user. I got the following error with ../lib/Module/Build/t/tilde.t module.
lib/Module/Build/t/tilde......................................# Fail +ed test at ../lib/Module/Build/t/tilde.t line 49. # got: '/var/root' # expected: '/Users/chado' FAILED at test 1
Could you please help me get this going.

Many Thanks, Gow

Replies are listed 'Best First'.
Re: perl installation fails @ ../lib/Module/Build/t/tilde.t
by jvector (Friar) on Oct 18, 2008 at 22:47 UTC
    This happened to me when I was installing a module from CPAN using sudo cpan.

    I worked round it by saying

    sudo su # cpan
    and doing the installation as root. It seemed to me that the test suite was picking up the pre-su UID and using that to generate its expected result but then receiving a different result because it was actually running under a different effective UID.
    This signature will be ready by Christmas
Re: perl installation fails @ ../lib/Module/Build/t/tilde.t (go)
by tye (Sage) on Oct 18, 2008 at 16:43 UTC

    Just install it. Tilde expansion having an issue is unlikely to have a huge impact on the functionality of Perl for you. But please file a bug so this can eventually get fixed (probably the "perlbug" command helps you do that).

    - tye        

Re: perl installation fails @ ../lib/Module/Build/t/tilde.t
by ikegami (Patriarch) on Oct 19, 2008 at 00:47 UTC

    There was something about this on recently on the p5p list. It's due to a change to using $HOME instead of getpwuid. $HOME isn't changed by using sudo.

    If it otherwise installs properly, I wouldn't worry about it.

      Thanks so much folks(monks), i ignored and installed it as per your suggestion. It works good for me.
      I also reported the bug, using perlbug.
      Thanks so much again.
      Gowtham