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

perlbrew fails to install patchperl

Open dave-nunn opened this issue 11 years ago • 8 comments

echo $SHELL /bin/tcsh cat /etc/redhat-release Red Hat Enterprise Linux Client release 5.5 (Tikanga) setenv PERLBREW_ROOT /usr/local/mydir /usr/bin/curl -k -L http://install.perlbrew.pl | /bin/bash

Download the latest perlbrew

...

Installing patchperl

ERROR: Failed to retrieve patchperl executable.

[So it installed perlbrew, but not patchperl. Without which perlbrew won't install perl]

perlbrew install-patchperl ERROR: Failed to retrieve patchperl executable.

I resolved it by copying over an older copy of patchperl from another box, installing IPC::Cmd, but it seems like something is wrong in the installation process.

dave-nunn avatar Jul 17 '13 22:07 dave-nunn

perlbrew install-cpanm also fails with: ERROR: Failed to retrieve cpanm executable.

dave-nunn avatar Jul 17 '13 22:07 dave-nunn

I have the same issue:

echo $SHELL
/bin/bash
cat /etc/redhat-release
CentOS release 5.3 (Final)

I've had this working before, but needed to clear my install directory and start fresh. I then encountered this problem.

ghost avatar Jul 18 '13 16:07 ghost

I have this error also. A more specific error message would be helpful.

dstroma avatar Aug 19 '13 20:08 dstroma

Is this just a dupe of https://github.com/gugod/App-perlbrew/issues/341 ?

bestscarper avatar Sep 20 '13 10:09 bestscarper

same for me... CYGWIN_NT-6.1 w7e-nas 1.7.25(0.270/5/3) 2013-08-31 20:37 x86_64 Cygwin

ghost avatar Oct 05 '13 02:10 ghost

my debug output, maybe this helps: $ /usr/bin/perl -d /home/Daniel/perl5/perlbrew/bin/perlbrew install-patchperl

Loading DB routines from perl5db.pl version 1.33 Editor support available.

Enter h or h h' for help, orman perldebug' for more help.

main::(/home/Daniel/perl5/perlbrew/bin/perlbrew:401): 401: my $app = App::perlbrew->new(@ARGV); DB<1> r

ERROR: Failed to retrieve patchperl executable.

at /loader/0x600495ad8/App/perlbrew.pm line 19. App::perlbrew::do_install_program_from_url(App::perlbrew=HASH(0x6006922c8), "https://raw.github.com/gugod/patchperl-packing/master/patchperl", "patchperl", CODE(0x60088b9c8)) called at /loader/0x600495ad8/App/perlbrew.pm line 34 App::perlbrew::run_command_install_patchperl(App::perlbrew=HASH(0x6006922c8)) called at /loader/0x600495ad8/App/perlbrew.pm line 1 App::perlbrew::run_command(App::perlbrew=HASH(0x6006922c8), "install-patchperl") called at /loader/0x600495ad8/App/perlbrew.pm line 1 App::perlbrew::run(App::perlbrew=HASH(0x6006922c8)) called at /home/Daniel/perl5/perlbrew/bin/perlbrew line 402 Debugged program terminated. Use q to quit or R to restart, use o inhibit_exit to avoid stopping after program termination, h q, h R or h o to get additional info. DB<1>

ghost avatar Oct 09 '13 21:10 ghost

Same issue on CentOS. I added diagnostics to the perlbrew-install script to get the following, with seems to match ghost's capture.

$ /usr/bin/perl perlbrew-45208 -f -q install-patchperl Uncaught exception from user code:

ERROR: Failed to retrieve patchperl executable.

at /loader/0x206c0b0/App/perlbrew.pm line 19 App::perlbrew::do_install_program_from_url('App::perlbrew=HASH(0x2416ef8)', 'https://raw.githubusercontent.com/gugod/patchperl-packing/mas...', 'patchperl', 'CODE(0x23fe690)') called at /loader/0x206c0b0/App/perlbrew.pm line 34 App::perlbrew::run_command_install_patchperl('App::perlbrew=HASH(0x2416ef8)') called at /loader/0x206c0b0/App/perlbrew.pm line 1 App::perlbrew::run_command('App::perlbrew=HASH(0x2416ef8)', 'install-patchperl') called at /loader/0x206c0b0/App/perlbrew.pm line 1 App::perlbrew::run('App::perlbrew=HASH(0x2416ef8)') called at perlbrew-45208 line 593

In the end I downloaded the patchperl script directly:

$ curl https://raw.githubusercontent.com/gugod/patchperl-packing/master/patchperl > ~/perl5/perlbrew/bin/patchperl

wistephens avatar Jul 21 '14 19:07 wistephens

Hi @dave-nunn , Is this still an issue? If so, can you list the versions of OS, perlbrew and patchperl that are concerned? Thanks.

erickpaquin avatar Jan 09 '23 17:01 erickpaquin