Try setting TERM to just “xterm”?

> On Apr 13, 2018, at 4:15 PM, William Schmidt <t.william.schm...@gmail.com> 
> wrote:
> 
> Progress, but no cigar, yet...
> 
> brew link --force readline
> 
> I downloaded the latest library and then attempted to reinstall 
> Term::ReadLine::Gnu, with the following error in the build log:
> 
> This part seems correct:
> 
> Found `/usr/lib/libtermcap.dylib'.
> cc -I/usr/local/opt/readline/include -fno-common -DPERL_DARWIN 
> -mmacosx-version-min=10.13 -fno-strict-aliasing -pipe -fstack-protector 
> -I/usr/local/include -I/opt/local/include -DPERL_USE_SAFE_PUTENV 
> -DHAVE_STRING_H rlver.c -o rlver -L/usr/local/opt/readline/lib   
> -mmacosx-version-min=10.13 -fstack-protector -L/usr/local/lib 
> -L/opt/local/lib -lreadline -ltermcap
> <<<It seems that you have the GNU Readline Library version 7.0.>>>
> 
> This part seems incorrect:
> 
> Your terminal 'TERM=xterm-256color' does not support enough function.
> Check if your environment variable 'TERM' is set correctly.
> 
> I never set TERM explicitly so I don't know what that module is expecting or 
> whether my Mac has the right stuff. I do have the latest XQuartz, 2.7.11, 
> installed.
> 
> #   Failed test 'An object of class 'Term::ReadLine::Stub' isa 
> 'Term::ReadLine''
> #   at t/utf8_binary.t line 82.
> #     The object of class 'Term::ReadLine::Stub' isn't a 'Term::ReadLine'
> 
> #   Failed test 'input layers after 'new''
> #   at t/utf8_binary.t line 87.
> #     Structures begin differing at:
> #          $got->[2] = Does not exist
> #     $expected->[2] = 'stdio'
> 
> #   Failed test 'output layers after 'new''
> #   at t/utf8_binary.t line 90.
> #     Structures begin differing at:
> #          $got->[2] = Does not exist
> #     $expected->[2] = 'stdio'
> # Looks like you failed 3 tests of 12.
> 
> From environment:
> 
> TERM=xterm-256color
> TERM_PROGRAM=Apple_Terminal
> TERM_PROGRAM_VERSION=400
> 
> Suggestions?
> 
> Will
> 
> 
> 
> 
> 
> On Fri, Apr 13, 2018 at 4:35 PM, Craig DeForest <defor...@boulder.swri.edu 
> <mailto:defor...@boulder.swri.edu>> wrote:
> You may have to manually install the Gnu Readline library.  It’s becoming 
> enough of a pain in the butt to get installed, that an Alien::ReadLine might 
> be called for...
> 
>> On Apr 13, 2018, at 3:23 PM, William Schmidt <t.william.schm...@gmail.com 
>> <mailto:t.william.schm...@gmail.com>> wrote:
>> 
>> Hmm,
>> 
>> Tried that.
>> 
>> $ cpanm Term::ReadLine::Gnu
>> Term::ReadLine::Gnu is up to date. (1.35)
>> 
>> Does it require config or enabling?
>> 
>> Will
>> 
>> 
>> 
>> 
>> On Fri, Apr 13, 2018 at 4:20 PM, Craig DeForest <defor...@boulder.swri.edu 
>> <mailto:defor...@boulder.swri.edu>> wrote:
>> The problem is that Term::ReadLine is suffering from bit rot.  Try 
>> installing Term::ReadLine::Gnu.
>> 
>>> On Apr 13, 2018, at 3:14 PM, William Schmidt <t.william.schm...@gmail.com 
>>> <mailto:t.william.schm...@gmail.com>> wrote:
>>> 
>>> Hello piddlers,
>>> 
>>> perldl is one great prototyping tool, and I am making great progress 
>>> understanding and mastering PDL running it in macOS, but thus far, enabling 
>>> history list and command line editing inside perldl has been a total bust. 
>>> The docos say the command line editor is emacs-like. I would prefer vi but 
>>> any command line editing is welcome, given how I am using perldl to learn 
>>> PDL. However, I cannot enable the history list nor edit a previous line 
>>> other than doing very precise cut and paste. Here is the initial 
>>> announcement when I start perldl:
>>> 
>>> $ perldl
>>> perlDL shell v1.357
>>>  PDL comes with ABSOLUTELY NO WARRANTY. For details, see the file
>>>  'COPYING' in the PDL distribution. This is free software and you
>>>  are welcome to redistribute it under certain conditions, see
>>>  the same file for details.
>>> ReadLines, NiceSlice, MultiLines  enabled
>>> Reading /Users/carly/.perldlrc...
>>> Found docs database 
>>> /Users/carly/perl5/perlbrew/perls/perl-5.20.3/lib/site_perl/5.20.3/darwin-2level/PDL/pdldoc.db
>>> Type 'help' for online help
>>> Type 'demo' for online demos
>>> Loaded PDL v2.018 (supports bad values)
>>> 
>>> 
>>> Notice, ReadLines is enabled.
>>> 
>>> And here is what I get with the l command, 'l', not '1';
>>> 
>>> Can't locate object method "GetHistory" via package "Term::ReadLine::Stub" 
>>> at /Users/carly/perl5/perlbrew/perls/perl-5.20.3/bin/perldl line 313, 
>>> <STDIN> line 2.
>>> 
>>> What am I missing? What Perl/PDL modules must be present? Getting history 
>>> and command editing working would truly make perldl an effective learning 
>>> tool.
>>> 
>>> Thanks and regards,
>>> Will Schmidt
>>> 
>>> 
>>> 
>>> ------------------------------------------------------------------------------
>>> Check out the vibrant tech community on one of the world's most
>>> engaging tech sites, Slashdot.org <http://slashdot.org/>! 
>>> http://sdm.link/slashdot_______________________________________________ 
>>> <http://sdm.link/slashdot_______________________________________________>
>>> pdl-general mailing list
>>> pdl-general@lists.sourceforge.net <mailto:pdl-general@lists.sourceforge.net>
>>> https://lists.sourceforge.net/lists/listinfo/pdl-general 
>>> <https://lists.sourceforge.net/lists/listinfo/pdl-general>
>> 
>> 
> 
> 

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
pdl-general mailing list
pdl-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pdl-general

Reply via email to