Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing perlbrew: Failed to retrieve patchperl executable

When I try to install perlbrew on Mac OS X v10.9 (Mavericks) and MacPorts, this is what happens:

~$ curl -L http://install.perlbrew.pl | bash

% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0   315    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  1020  100  1020    0     0    649      0  0:00:01  0:00:01 --:--:--  3217

## Download the latest perlbrew

## Installing perlbrew
perlbrew is installed: ~/perl5/perlbrew/bin/perlbrew

perlbrew root (~/perl5/perlbrew) is initialized.

Append the following piece of code to the end of your ~/.bash_profile and start a
new shell, perlbrew should be up and fully functional from there:

    source ~/perl5/perlbrew/etc/bashrc

Simply run `perlbrew` for usage details.

Happy brewing!

## Installing patchperl

ERROR: Failed to retrieve patchperl executable.

~$

I then removed ~/perl5/perlbrew and tried:

~$ curl -L http://install.perlbrew.pl | bash -x
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0   315    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  1020  100  1020    0     0    693      0  0:00:01  0:00:01 --:--:--  5368
+ PERLBREWURL=https://raw.github.com/gugod/App-perlbrew/master/perlbrew
+ '[' -z /var/folders/7l/nhyscwy14bjb_sxr_t2gynpm0000gn/T/ ']'
+ cd /var/folders/7l/nhyscwy14bjb_sxr_t2gynpm0000gn/T/
+ LOCALINSTALLER=perlbrew-14023
+ echo

+ type curl

+ PERLBREWDOWNLOAD='curl -f -sS -Lo perlbrew-14023 https://raw.github.com/gugod/App-perlbrew/master/perlbrew'
+ echo '## Download the latest perlbrew'
## Download the latest perlbrew
+ curl -f -sS -Lo perlbrew-14023 https://raw.github.com/gugod/App-perlbrew/master/perlbrew
+ echo

+ echo '## Installing perlbrew'
## Installing perlbrew
+ chmod +x perlbrew-14023
+ /usr/bin/perl perlbrew-14023 self-install
perlbrew is installed: ~/perl5/perlbrew/bin/perlbrew

perlbrew root (~/perl5/perlbrew) is initialized.

Append the following piece of code to the end of your ~/.bash_profile and start a
new shell, perlbrew should be up and fully functional from there:

    source ~/perl5/perlbrew/etc/bashrc

Simply run `perlbrew` for usage details.

Happy brewing!

+ echo '## Installing patchperl'
## Installing patchperl
+ /usr/bin/perl perlbrew-14023 -f -q install-patchperl

ERROR: Failed to retrieve patchperl executable.

+ clean_exit 1
+ '[' -f perlbrew-14023 ']'
+ rm perlbrew-14023
+ exit 1
~$

I'm stuck on the first step. How can I get perlbrew installed properly?

like image 595
jm666 Avatar asked Jan 04 '14 13:01

jm666


2 Answers

Or you can disable certificate checking. The following worked fine for me:

echo "check-certificate = off" >> ~/.wgetrc

perlbrew install-patchperl
perlbrew install-cpanm

Happy brewing!

like image 70
Steve Avatar answered Nov 15 '22 09:11

Steve


Perlbrew installs cleanly for me (also on Mac OS X 10.9.1).

There is an issue report (here) that it is worth you reading through. It seems likely to be an issue with your version of cURL coupled with GitHub HTTPS URLs. There are a couple of things worth trying:

  1. curl -kL http://install.perlbrew.pl | bash
    (-k allows insecure SSL connections)

  2. Install patchperl manually:

    curl -kL https://raw.github.com/gugod/patchperl-packing/master/patchperl > ~/perl5/perlbrew/bin/patchperl`
    
like image 44
foundry Avatar answered Nov 15 '22 10:11

foundry