As I said, things are different now, but check this out: westmj@penguin:~$ *perlbrew off* perlbrew is turned off. westmj@penguin:~$ perl -e 'print "@INC\n"' /home/westmj/perl5/lib/perl5/5.28.1/x86_64-linux-gnu-thread-multi /home/westmj/perl5/lib/perl5/5.28.1 /home/westmj/perl5/lib/perl5/x86_64-linux-gnu-thread-multi /home/westmj/perl5/lib/perl5 /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.28.1 /usr/local/share/perl/5.28.1 /usr/lib/x86_64-linux-gnu/perl5/5.28 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.28 /usr/share/perl/5.28 /home/westmj/perl5/lib/perl5/5.28.0 /home/westmj/perl5/lib/perl5/5.28.0/x86_64-linux-gnu-thread-multi /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base westmj@penguin:~$ perl -v
This is *perl 5, version 28, subversion 1 (v5.28.1)* built for x86_64-linux-gnu-thread-multi (with 65 registered patches, see perl -V for more detail) Copyright 1987-2018, Larry Wall Perl may be copied only under the terms of either the Artistic License or the GNU General Public License, which may be found in the Perl 5 source kit. Complete documentation for Perl, including FAQ lists, should be found on this system using "man perl" or "perldoc perl". If you have access to the Internet, point your browser at http://www.perl.org/, the Perl Home Page. westmj@penguin:~$ cpan -D IO::Socket::SSL Reading '/home/westmj/.cpan/Metadata' Database was generated on Mon, 23 Nov 2020 00:41:03 GMT IO::Socket::SSL ------------------------------------------------------------------------- CPAN: Module::CoreList loaded ok (v5.20181129_28) (no description) S/SU/SULLR/IO-Socket-SSL-2.068.tar.gz */home/westmj/perl5/lib/perl5/IO/Socket/SSL.pm* Installed: 2.068 *CPAN: 2.068 up to date* Steffen Ullrich (SULLR) steffen_ullr...@genua.de westmj@penguin:~$ *perlbrew switch perl-5.32.0 * westmj@penguin:~$ perl -v This is perl 5, version 32, subversion 0 (v5.32.0) built for x86_64-linux Copyright 1987-2020, Larry Wall Perl may be copied only under the terms of either the Artistic License or the GNU General Public License, which may be found in the Perl 5 source kit. Complete documentation for Perl, including FAQ lists, should be found on this system using "man perl" or "perldoc perl". If you have access to the Internet, point your browser at http://www.perl.org/, the Perl Home Page. westmj@penguin:~$ *perl -e 'print "@INC\n"'* /home/westmj/perl5/lib/perl5/x86_64-linux /home/westmj/perl5/lib/perl5 /home/westmj/perl5/perlbrew/perls/perl-5.32.0/lib/site_perl/5.32.0/x86_64-linux /home/westmj/perl5/perlbrew/perls/perl-5.32.0/lib/site_perl/5.32.0 /home/westmj/perl5/perlbrew/perls/perl-5.32.0/lib/5.32.0/x86_64-linux /home/westmj/perl5/perlbrew/perls/perl-5.32.0/lib/5.32.0 westmj@penguin:~$ cpan -D IO::Socket::SSL Reading '/home/westmj/.cpan/Metadata' Database was generated on Mon, 23 Nov 2020 00:41:03 GMT IO::Socket::SSL ------------------------------------------------------------------------- CPAN: Module::CoreList loaded ok (v5.20200620) (no description) S/SU/SULLR/IO-Socket-SSL-2.068.tar.gz /home/westmj/perl5/lib/perl5/IO/Socket/SSL.pm Installed: 2.068 CPAN: 2.068 up to date Steffen Ullrich (SULLR) steffen_ullr...@genua.de westmj@penguin:~$ *eval $(perl -Mlocal::lib=--deactivate)* westmj@penguin:~$ *perl -e 'print "@INC\n"'* /home/westmj/perl5/perlbrew/perls/perl-5.32.0/lib/site_perl/5.32.0/x86_64-linux /home/westmj/perl5/perlbrew/perls/perl-5.32.0/lib/site_perl/5.32.0 /home/westmj/perl5/perlbrew/perls/perl-5.32.0/lib/5.32.0/x86_64-linux /home/westmj/perl5/perlbrew/perls/perl-5.32.0/lib/5.32.0 westmj@penguin:~$ cpan -D IO::Socket::SSL Loading internal logger. Log::Log4perl recommended for better logging Reading '/home/westmj/.cpan/Metadata' Database was generated on Mon, 23 Nov 2020 00:41:03 GMT IO::Socket::SSL ------------------------------------------------------------------------- (no description) S/SU/SULLR/IO-Socket-SSL-2.068.tar.gz */home/westmj/perl5/perlbrew/perls/perl-5.32.0/lib/site_perl/5.32.0/IO/Socket/SSL.pm* Installed: 2.068 CPAN: 2.068 up to date Steffen Ullrich (SULLR) steffen_ullr...@genua.de 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 8:49 PM Michael W. J. West <m.w.j.w...@gmail.com> wrote: > 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 >> <https://groups.google.com/d/msgid/mojolicious/897ba3a0-6038-4f4d-959b-300fd690aa36n%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > -- 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/CABByUT%3D%3DddjusMKLvvr7fY143M-D7eTFFg4fzyyg8mQN%2BA%3DxXw%40mail.gmail.com.