Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

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 ( #1231014=note: print w/replies, xml ) Need Help??


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

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!
  • Comment on Re^2: perlbrew/curl: curl: (60) Peer certificate cannot be authenticated with known CA certificates
  • Select or Download Code

Replies are listed 'Best First'.
Re^3: perlbrew/curl: curl: (60) Peer certificate cannot be authenticated with known CA certificates
by Perl300 (Friar) on Mar 08, 2019 at 15:30 UTC

    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.

        perlbrew list does show installed version (I was also able to switch to this latest version)

        [~]$ perlbrew list * perl-5.28.1 [~]$

        But perlbrew self-upgrade or perlbrew install-cpanm are failing. This concerns me and I think I'll have to get an Admin to help me.

        [~]$ perlbrew self-upgrade Unable to detect version of new perlbrew! [~]$ perlbrew install-cpanm ERROR: Failed to retrieve cpanm executable. [~]$
Re^3: perlbrew/curl: curl: (60) Peer certificate cannot be authenticated with known CA certificates
by thechartist (Monk) on Mar 07, 2019 at 18:15 UTC

    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!

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (4)
As of 2022-12-04 22:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?