Re: [rt.cpan.org #95624] cpan as root cannot install Inline without force

[email protected] (Reini Urban) Tue, 13 May 2014 17:12:06 -0500
Newsgroups perl.inline
Organization cPanel Inc
Message-ID <[email protected]>
On 05/13/2014 04:21 PM, [email protected] via RT wrote:
> Tue May 13 17:21:02 2014: Request 95624 was acted upon.
> Transaction: Ticket created by [email protected]
>         Queue: Inline
>       Subject: cpan as root cannot install Inline without force
>     Broken in: (no value)
>      Severity: (no value)
>         Owner: Nobody
>    Requestors: [email protected]
>        Status: new
>   Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=95624 >
>
>
> on CentOS6.5, perl 5.10.1, I cannot install Inline using "cpan Inline <
> /dev/null".
>
> I can install it with "cpan -f Inline < /dev/null", but that is less than
> optimal.
>
> The problem seems to be the same one as reported here:
>
> https://rt.cpan.org/Public/Bug/Display.html?id=65703
>
> The taint test fails because the directory containing 'make' is removed
> from $ENV{PATH}.
>
> It makes sense that this happens, because of course /usr/bin/ is writable
> by root.  But then does that mean it is just unsupported to install through
> cpan as root on any linux system? If that is the case, I think I would have
> found more documentation or complaints about that.

Thanks.
We need to skip those TAINT checks if run as root or Windows Administrator.

> Or is the test script supposed to give away rights, and that is not working
> for me for some reason?