App-perlbrew icon indicating copy to clipboard operation
App-perlbrew copied to clipboard

Perlbrew failed to install Perl on Mac with Sierra

Open pig-raffles opened this issue 8 years ago • 5 comments

Apologies if this is not the place to report this but I have checked elsewhere and not found an obvious solution to my problem

I am attempting to install the latest stable version (with threads) of Perl onto my Mac with macOS Sierra

I have used the following commands:

perlbrew install perl-5.24.1 --thread --switch perlbrew install stable --thread --switch perlbrew install stable

All of these commands end in failure with the message:

"Installation process failed. To spot any issues, check /Users/alan/perl5/perlbrew/build.perl-5.24.1.log If some perl tests failed and you still want to install this distribution anyway, do: (cd /Users/alan/perl5/perlbrew/build/perl-5.24.1; make install)"

I have also tried: perlbrew --notest install 5.24.1

Again ending in failure.

Perlbrew upgrade-perl successfully upgraded the system Perl to 5.16.3 but I cannot install another version

Is this a known issue with Perlbrew and Sierra? Does anyone have any suggestions?

Many thanks

Alan

pig-raffles avatar Jan 26 '17 11:01 pig-raffles

I have a similar problem w Mac OSX 10.11.6 aka El Capitan

gerry

gerrygrieve avatar Mar 01 '17 18:03 gerrygrieve

i deleted perlbrew & re-installed

perlbrew install perl-5.25.10

.... lo and behold ... perl-5.25.10 is successfully installed.

I have no idea why 2nd attempt worked.

gerrygrieve avatar Mar 01 '17 19:03 gerrygrieve

I'm having a similar issue on El Capitan. I'm trying to install perlbrew for the first time since the Apple version is broken. Here is what I get:

\curl -L https://install.perlbrew.pl | bash % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 170 100 170 0 0 160 0 0:00:01 0:00:01 --:--:-- 160 100 1247 100 1247 0 0 707 0 0:00:01 0:00:01 --:--:-- 2210

## Download the latest perlbrew

## Installing perlbrew Can't locate Config.pm: Permission denied at perlbrew.ZQUIVq line 3. BEGIN failed--compilation aborted at perlbrew.ZQUIVq line 3.

sauljaffe avatar Mar 08 '17 21:03 sauljaffe

I'm now running MacOS 10.12 (Sierra) but

my system's perl has Config.pm in the directory... /System/Library/Perl/5.18/darwin-thread-multi-2level/Config.pm ElCapitan may have a different directory... Check your '@INC' path

perl -e ' print join "\n", @INC;'

gerrygrieve avatar Apr 27 '17 23:04 gerrygrieve

The original problem (with 5.24.1) seems to be this perl issue (not perlbrew specific).

Fixed in blead, and will be backported. Work-around would be using blead, or an older version.

goudsmit avatar May 05 '17 14:05 goudsmit