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?
SHELL
explicitly like this:curl -L https://install.perlbrew.pl | SHELL=/bin/bash bash
.my $executable = $0; open my $fh, "<", $executable;
( export TMPDIR="$HOME/tmp"; mkdir -p "$TMPDIR"; \curl -L https://install.perlbrew.pl | bash )
/usr/local/
. I remember that it normally works in~/perl5/
.