Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^2: How to install Term::ReadLine::Gnu in perlbrew ... only once?

by haj (Chaplain)
on Nov 06, 2019 at 19:52 UTC ( #11108400=note: print w/replies, xml ) Need Help??


in reply to Re: How to install Term::ReadLine::Gnu in perlbrew ... only once?
in thread SOLVED: How to install Term::ReadLine::Gnu in perlbrew ... only once?

I've tried Term::ReadLine::Zoid and also Term::ReadLine::Perl. The Zoid variant installs without a hitch but isn't picked up by the Perl debugger (though perldoc perldebug suggests otherwise). Arrows are just escape sequences. The Perl variant fails to install with ReadKey.c: loadable library and perl binaries are mismatched (got handshake key 0xc180000, needed 0xd700000). Oops?

But then: I was pretty sure that I didn't have that problem under Debian Jessie, for none of the gazillions of XS modules I tend to collect over time. And indeed: I could fire up an old image of mine, and all is fine from Perl 5.10.1 to Perl 5.30.0.

However, my usual suspect right now isn't the Debian version, but rather some perlbrew, or maybe perlbrew plus cpanm issue on my current system. These are the symptoms as given by the debugger on p \%INC:

On the old desktop, for Perl 5.10:

'Term/ReadLine.pm' => '/home/haj/perl5/perlbrew/perls/perl-5.10.1/lib +/5.10.1/Term/ReadLine.pm' 'Term/ReadLine/Gnu.pm' => '/home/haj/perl5/perlbrew/perls/perl-5.10.1 +/lib/site_perl/5.10.1/x86_64-linux/Term/ReadLine/Gnu.pm' 'Term/ReadLine/Gnu/XS.pm' => '/home/haj/perl5/perlbrew/perls/perl-5.1 +0.1/lib/site_perl/5.10.1/x86_64-linux/Term/ReadLine/Gnu/XS.pm

On the new desktop:

'Term/ReadLine.pm' => '/home/haj/perl5/perlbrew/perls/perl-5.30.0/lib +/5.30.0/Term/ReadLine.pm' 'Term/ReadLine/Gnu.pm' => '/home/haj/perl5/lib/perl5/x86_64-linux/Ter +m/ReadLine/Gnu.pm' 'Term/ReadLine/Gnu/XS.pm' => '/home/haj/perl5/lib/perl5/x86_64-linux/ +Term/ReadLine/Gnu/XS.pm'

So, while the old desktop kept the Perl version in the path and therefore each of the Gnu libraries separate, the new desktop doesn't - and therefore the installation processes clobber each other's files. Maybe I goofed up when installing perlbrew and should start over again...

I've no concrete info about your extended question but only vague memories that the command history in the debugger just worked... after setting TERM=dumb, most probably with Term::ReadLine::Gnu because I think that my habit to install that module dates back to my Windows times.

Replies are listed 'Best First'.
Re^3: How to install Term::ReadLine::Gnu in perlbrew ... only once?
by LanX (Archbishop) on Nov 07, 2019 at 08:31 UTC
    Thanks I'll look into it and give feedback till weekend.

    Zoid needs (environment) variables to be set to get plugged in by the debugger. I suppose you're aware.

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery FootballPerl is like chess, only without the dice

      Zoid needs (environment) variables to be set to get plugged in by the debugger. I suppose you're aware.
      I wasn't aware, so scratch my remark about it not being picked up by the debugger.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (2)
As of 2020-02-24 00:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What numbers are you going to focus on primarily in 2020?










    Results (104 votes). Check out past polls.

    Notices?