Great to hear you're making progress.

I wonder if plugging a video I made for a former employer back in August might 
offer any insights?
I had to disable a lot of environment variables myself, 
and I run through that in the video at 9 minutes 28 seconds...
Here's the link to that part:
https://www.youtube.com/watch?v=eTnvcNkvDfY&t=9m28s


Here's the video in full:

https://www.youtube.com/watch?v=eTnvcNkvDfY

0:00:00 - Introduction
0:00:13 - Herzberg
0:01:15 - Why a Video?

0:02:12 - ImageMagick Script
0:03:50 - NetNerd Shell Access
0:04:05 - Example Perlbrew Installation
0:04:46 - About Perlbrew
0:04:58 - Perlbrew Live Demonstration
0:05:39 - Install Perl 5.30.3
0:09:11 - Switching Perl Versions
0:09:28 - Cpanm and Perlbrew
0:11:16 - Alien::ImageMagick Module
0:12:15 - System Perl & Perlbrew Perl
0:13:30 - Script Shebangs
0:14:26 - Cpanm and System Perl
0:16:06 - Berrybrew for Windows

0:16:13 - Why Git?
0:16:27 - Git Tutorials & Cheat Sheets
0:17:13 - About Git
0:17:35 - Downloading Git

0:17:48 - Create a Git Repository
0:18:25 - Add to a Git Repository
0:19:59 - Change a Git Repository
0:20:55 - Configure Name & Email for Git

0:22:44 - Create a Central Repository
0:24:08 - Access a Central Repository
0:24:49 - Clone a Central Repository
0:25:30 - Add to a Cloned Repository
0:26:34 - Push to a Central Repository

0:27:52 - Clone a Central Repository Again
0:28:29 - Pull from a Central Repository
0:29:03 - Push Rejected because of Conflicts
0:29:39 - Resolve Conflicts with Pull
0:30:26 - Resolve Conflicts with Fetch
0:31:00 - Local and Remote Branches
0:31:23 - Checkout Different Branches
0:32:01 - Manually Resolve Conflicts
0:32:39 - Merge Branches
0:32:53 - Checkout Conflicting File Versions
0:34:22 - Push to a Central Repository Again
0:34:39 - Resolve Conflicts Summary - Pull, or Fetch & Merge

0:35:12 - Video Notes Available

0:35:24 - Git Completion

0:35:41 - Git GUI Apps
0:35:55 - Perl Programmer's Facebook Group

0:36:31 - Git GUI Clients Live Demonstrations

0:37:32 - Installing SourceTree
0:38:31 - Mercurial Source Control Management
0:38:48 - Automatic Line Ending Handling
0:40:18 - Make a SourceTree Icon/Shortcut

0:40:44 - Clone with SourceTree
0:43:31 - Git Version Comparisons
0:44:13 - Add & Commit with SourceTree
0:46:41 - Push with SourceTree
0:47:11 - Fetch & Checkout with Linux VPS
0:47:55 - SourceTree Thoughts Before Exit

0:48:20 - Installing Sublime Merge
0:49:06 - Clone with Sublime Merge
0:51:12 - Add & Commit with Sublime Merge

0:53:47 - Comparison with Windows Explorer
0:54:15 - Push with Sublime Merge
0:54:30 - Pull with SourceTree
0:54:49 - Comparison with Windows Explorer Again
0:55:13 - Git GUI Thoughts Before Exit

0:55:31 - Using PuTTY in Windows

0:56:55 - What's in the Repository?
0:56:58 - Email Folder & Libemail
0:57:27 - ServerDetails Fix
0:57:54 - Automatic Line Ending Handling & Email Template Implications
0:58:39 - Git_Notes Folder
0:58:47 - ImageMagick Folder
0:59:15 - Invoices Folder
0:59:23 - Video_Notes Folder - Perlbrew & Git Notes

0:59:35 - Things to Point Out:
0:59:38 - NetNerd VPS
1:00:00 - Amazon Web Services
1:00:07 - Google Cloud Platform
1:00:15 - Clone Local to the Central Repository

1:00:54 - Weird Things:
1:00:55 - Commit & Bash's Exclamation Mark Error
1:01:38 - Empty Folders and Git

1:02:09 - Perl 7 Announcement!

1:02:31 - Things not covered:
1:02:35 - Branches
1:02:54 - Gitlab & Continuous Integration



  ----- Original Message ----- 
  From: Michael W. J. West 
  To: mojolicious@googlegroups.com 
  Sent: Monday, November 23, 2020 2:49 AM
  Subject: Re: [Mojolicious] Re: perlbrew fails, IO::Socket::SSL, perhaps my 
paths or @INC ?


  Thanks Andrew and gugod.  I am making progress, I have things running, but 
not completely understood.   


  I think where I possibly messed up was early on, allowing cpan to run with 
local::lib, then getting App::cpanminus from there. So much for accepting 
defaults. But memory fails me.


  Of course, I tried various things, so now my situation has changed, but the 
good news is it's running right.  I will try to use your hints to better 
understand why.    


  eval $(perl -Mlocal::lib=--deactivate)


  in my .profile or commented out has been helpful in getting IO::Socket::SSL 
things running.




   Mike West <mwjw...@gmail.com> 

  Phone & WhatsApp: +1-302-559-3642 
  Address: Casa Alquimía
  350 m SUR y 80 m ESTE 
      de la Gasolinera Monteverde
  Monteverde, Puntarenas, Costa Rica  60109
  www.facebook.com/mwjwest mwjwest.wordpress.com






  On Sun, Nov 22, 2020 at 7:09 PM gugod <gu...@gugod.org> wrote:



      I want to use perlbrew, but it fails.

      success with system perl:   perl -Mojo -E 'say 
g("mojolicious.org")->dom->at("title")->text'


      fails with perlbrew, error involves IO::Socket::SSL but that seems to be 
up to date.




    this statement is not entirely correct. See my replies below. 


      westmj@penguin:~$ perlbrew switch  perl-5.32.0 
      westmj@penguin:~$ perl -Mojo -E 'say 
g("mojolicious.org")->dom->at("title")->text'
      IO::Socket::SSL 2.009+ required for TLS support at 
/home/westmj/perl5/lib/perl5/ojo.pm line 35.
      westmj@penguin:~$ /home/westmj/perl5/perlbrew/perls/perl-5.32.0/bin/perl 
-Mojo -E 'say g("mojolicious.org")->dom->at("title")->text'
      IO::Socket::SSL 2.009+ required for TLS support at 
/home/westmj/perl5/lib/perl5/ojo.pm line 35.
      westmj@penguin:~$ cpanm install IO::Socket::SSL
      install is up to date. (0.01)
      IO::Socket::SSL is up to date. (2.068)

    based on these commands, I'm guessing you have two installations at 
IO::Socket::SSL. 



    There is one with verios < 2.009 under


        [1] ~/perl5/lib/perl5


    ... and the other with version 2.068 is under


        [2] ~/perl5/perlbrew/perls/perl-5.32.0/lib/site_perl


    Also [1] is most likely part of your PERL5LIB


    I made these guesses based on the origin of message being:



         /home/westmj/perl5/lib/perl5/ojo.pm line 35.


    ... which is outside perlbrew's realm. The fact this is loaded by 
perl-5.32.0/bin/perl indicates that there some
     entries in @INC that comes before the  default values of @INC -- you can 
see this partt at the end of `perl -V` (big V)


    There are probably some reason why that hapeens.. and the solution to this 
could be different.  if you just want to make Mojo
    work for those commands, you could reinstall IO::Socket::SSL to path [1] by


        cpanm -L ~/perl5/ IO::Socket::SSL



    ... that said. do so will most likely break something somewhere else.


    In your case, cleaning PERL5LIB for that command might make it load the 
IO::Socket::SSL inside path [2]:



        perlbrew switch perl-5.32.0

        PERL5LIB= perl -Mojo -E 'say 
g("mojolicious.org")->dom->at("title")->text'


    ... and if not, perhaps there are some other envs that's in the way. All in 
all, you could try to temporarily move ~/perl5 away
    to verify my guess.



    I also want to mention that there could be a third place where 
IO::Socket::SSL might live that is inside
    the site lib of your 'system perl'. This dependss on the shebang of your 
'cpanm' command.  (head -1 `which cpanm`)



    If the shebang of cpanm looks like '/usr/bin/env perl', it should be 
compatible with perlbrew, in termss of how
    version-switching works. If the shebang of cpanm looks like 
'/usr/bin/perl', or any path that pins to a particualr installation perl,
    then it cannot work with perlbrew. No mather what perlbrew version you 
switched to, that 'cpanm' command always
    install modules to one single place and is unrelated to perlbrew,, 
basically.



    If that seems to be the case, you could try invoking `perlbrew 
install-cpanm`, which should download a copy cpanm and save
    it right next to `perlbrew` executable.  usually here:


        ~/perl5/perlbrew/bin/cpanm


    the shebang line of this one is slightly modified so it should be 
compatible with how perlbrew do version-switching .




    -- 
    You received this message because you are subscribed to a topic in the 
Google Groups "Mojolicious" group.
    To unsubscribe from this topic, visit 
https://groups.google.com/d/topic/mojolicious/T8HAtzp44tA/unsubscribe.
    To unsubscribe from this group and all its topics, send an email to 
mojolicious+unsubscr...@googlegroups.com.
    To view this discussion on the web visit 
https://groups.google.com/d/msgid/mojolicious/897ba3a0-6038-4f4d-959b-300fd690aa36n%40googlegroups.com.


  -- 
  You received this message because you are subscribed to the Google Groups 
"Mojolicious" group.
  To unsubscribe from this group and stop receiving emails from it, send an 
email to mojolicious+unsubscr...@googlegroups.com.
  To view this discussion on the web visit 
https://groups.google.com/d/msgid/mojolicious/CABByUTk41-LJErkn%3DrPwqwYkCE07jgKMoRHZzmAm1KAAKARUqA%40mail.gmail.com.

-- 
You received this message because you are subscribed to the Google Groups 
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mojolicious+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mojolicious/003b01d6c1db%24bbbf8de0%246c01a8c0%40home.

Reply via email to