Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: perlbrew/curl: curl: (60) Peer certificate cannot be authenticated with known CA certificates

by Perl300 (Friar)
on Mar 06, 2019 at 20:25 UTC ( [id://1230982]=note: print w/replies, xml ) Need Help??


in reply to [SOLVED]: perlbrew/curl: curl: (60) Peer certificate cannot be authenticated with known CA certificates

I was able to cd into App-perlbrew and then perl perlbrew self-install and perlbrew is working but whenever it needs to connect to internet those specific commands are failing.

[~]$ perlbrew Usage: perlbrew command syntax: perlbrew <command> [options] [arguments] Commands: [~]$ perlbrew list [~]$ perlbrew available ERROR: Unable to retrieve the list of perls. [~]$ [~]$ perlbrew install perl-5.28.1 Fetching perl 5.28.1 as ~/perl5/perlbrew/dists/perl-5.28.1.tar.gz Download http://www.cpan.org/src/5.0/perl-5.28.1.tar.gz to ~/perl5/per +lbrew/dists/perl-5.28.1.tar.gz Installing ~/perl5/perlbrew/build/perl-5.28.1/perl-5.28.1 into ~/perl5 +/perlbrew/perls/perl-5.28.1 This could take a while. You can run the following command on another +shell to track the status: tail -f ~/perl5/perlbrew/build.perl-5.28.1.log Installation process failed. To spot any issues, check . . . You might also want to try upgrading patchperl before trying again: perlbrew install-patchperl Generally, if you need to install a perl distribution known to have mi +nor test failures, do one of these commands to avoid seeing this message: perlbrew --notest install perl-5.28.1 perlbrew --force install perl-5.28.1 [~]$ perlbrew install-patchperl ERROR: Failed to retrieve patchperl executable. [~]$

The log file ~/perl5/perlbrew/build.perl-5.28.1.log has only one line sh: patchperl: command not found

Seems like my Linux machine is having problem in letting perlbrew connect to internet. :-(

  • Comment on Re: perlbrew/curl: curl: (60) Peer certificate cannot be authenticated with known CA certificates
  • Select or Download Code

Replies are listed 'Best First'.
Re^2: perlbrew/curl: curl: (60) Peer certificate cannot be authenticated with known CA certificates
by thanos1983 (Parson) on Mar 07, 2019 at 15:05 UTC

    Hello Perl300,

    Sorry for the late reply but I just got the time to review your question.

    There is a bug reported related to your problem:

    ERROR: Failed to retrieve patchperl executable.

    See here perlbrew fails to install patchperl #350. The solution that worked before the ticket was closed:

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

    From my point of view it looks that perlbrew is not installed correctly or need to be updated. If I was you I would simply ask the Admin of the node to login as root and install perlbrew from CPAN. By doing this you will avoid troubleshooting step by step the process.

    Never the less I would highly recommend first installing the latest CPAN version for your CentosOS 6.8 e.g.:

    $ sudo cpan

    cpan[1]> install CPAN

    cpan[2]> reload cpan

    Then simply ask him to run:

    sudo cpan App::perlbrew

    I hope this helps, keep us updated. BR / Thanos

    Seeking for Perl wisdom...on the process of learning...not there...yet!

      Thank you thanos1983 for sharing the link. The solution there worked for me as well.

      patchperl was missing from ~/perl5/perlbrew/bin/

      So I did:

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

      And then

      [~]$ perlbrew install perl-5.28.1

      This time it worked and installed perl-5.28.1.

      Somehow `perlbrew available` still doesn't work but that's not a big deal for me. I'll know the version number that is available and if I want to install it or not.

      [~]$ perlbrew available ERROR: Unable to retrieve the list of perls. [~]$

        Sounds like there was a variable not set as you had to install patchperl manually. If I were in your spot, I would run the upgrade procedure to see if I could get

        perlbrew available

        working. I would also see if I could get

        perlbrew list

        to work as well. If they still didn't work, then I would concede and finally get the Admin to look at the problem.

      Thanos1983, Thanks for that link to the perlbrew bug report. I read it, but do not understand the fundamental problem in this instance.

      I was hoping pulling or cloning perlbrew from git and doing the initial install with whatever system Perl was available would eliminate the need for Admin. And it seems like manually installing the patchperl using curl (as is done in the last post in that thread) would run into the same problem of curl accessing the 'net. Has anyone figured out the root cause for this bug?

        Hello again Perl300,

        Can you run this command on the node:

        $ ls -la ~/perl5/perlbrew/bin/
        On my LinuxOS installed Perlbrew from CPAN I see the following output:
        $ ls -la ~/perl5/perlbrew/bin/ total 2540 drwxrwxr-x 2 tinyos tinyos 4096 Mar 8 13:36 . drwxrwxr-x 7 tinyos tinyos 4096 Mar 8 13:36 .. -rwxr-xr-x 1 tinyos tinyos 1273042 Mar 8 13:36 patchperl -rwxr-xr-x 1 tinyos tinyos 1316905 Mar 8 13:36 perlbrew

        If you are missing the patchperl then it is exactly the same case as the perlbrew fails to install patchperl #350 that I mentioned before.

        It looks that something went wrong when you tried to download and install from git the perlbrew. Maybe it is not contain the patchperl binary, I do not know I have not looked into the repo.

        From the bug report most users are complaining that they have installed the perlbrew (they do not mention if they did it from github or by another way) but they are facing the same problem with you. It seems that all are missing the patchperl binary.

        So if I was you I would look at the dir ~/perl5/perlbrew/bin/, if the binary is not there then you need to manually install is as is mentioned in the bug through:

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

        But as I said, even you do this and perlbrew it starts working maybe at some other point you will face another problem. So from my point of view ask the Admin to update CPAN and install the package and all dependencies through the official way perlbrew:

        sudo cpan App::perlbrew perlbrew init

        There are dependencies of the package requires that the repo might not include.

        I would start by the directory and then if the binary is missing go step by step troubleshooting and try to get it to work.

        Looking forward to your update. BR / Thanos

        Seeking for Perl wisdom...on the process of learning...not there...yet!
Re^2: perlbrew/curl: curl: (60) Peer certificate cannot be authenticated with known CA certificates
by thechartist (Monk) on Mar 06, 2019 at 20:45 UTC

    At least some progress was made by getting perlbrew installed. I will defer to other Perl experts on what could be causing your problems. It makes no sense for the http URI to fail. Keep us posted on the progress.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1230982]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2024-04-16 14:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found