perlperlbrew

Attempt to install perlbrew fails


I'm attempting to install perlbrew via

\curl -L https://install.perlbrew.pl | bash

as suggested from https://perlbrew.pl

However, I get these errors

print() on closed filehandle $fh at perlbrew.Yyb5zU line 1569.
print() on closed filehandle $fh at perlbrew.Yyb5zU line 1569.
print() on closed filehandle $fh at perlbrew.Yyb5zU line 1569.

There are so many of those error lines, I can't even see anything else before them.

Fail to create /usr/local/perlbrew/etc/bashrc. Please check the permission of /usr/local/perlbrew/etc and try `perlbrew init` again. at perlbrew.Yyb5zU line 1462

I manually created directories in /usr/local/perlbrew, but this isn't a good idea, and it didn't fix the problem.

this is a redHat system, so I can't install via yum either.

How can I successfully install perlbrew on this redHat server?


Solution

  • The installation page lists an alternate installation method which worked for me:

    sudo cpan App::perlbrew
    perlbrew init