Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

problem installing module Term::ReadLine::Gnu

by GertMT (Friar)
on Dec 10, 2007 at 14:58 UTC ( #656129=perlquestion: print w/replies, xml ) Need Help??
GertMT has asked for the wisdom of the Perl Monks concerning the following question:

Dear monks,

has anyone experience with installing the module Term::ReadLine::Gnu on Mac OS X 10.5.1? I have no success until now and I'm not sure it is system related. I do:
perl Makefile.PL
Terminal then says:
It seems that you have the GNU Readline Library version EditLine wrapp +er. Writing Makefile for Term::ReadLine::Gnu

Then I give the make command and it gives a lot of output that finishes with:
Gnu.xs:2740: error: ‘rl_binding_keymap’ undeclared (first use in this +function) Gnu.xs: In function ‘XS_Term__ReadLine__Gnu__XS__get_history_event’: Gnu.xs:2468: warning: assignment discards qualifiers from pointer targ +et type Gnu.xs: In function ‘XS_Term__ReadLine__Gnu__Var__rl_fetch_keymap’: Gnu.xs:2737: error: ‘rl_executing_keymap’ undeclared (first use in thi +s function) Gnu.xs:2740: error: ‘rl_binding_keymap’ undeclared (first use in this +function) lipo: can't open input file: /var/folders/5Y/5YTr92E8HieVrE5qJ2cyYk+++ +TI/-Tmp-//cc798I58.out (No such file or directory) make: *** [Gnu.o] Error 1
No idea what this all means. Haven't got any experience with this. Thanks for any help.


Replies are listed 'Best First'.
Re: problem installing module Term::ReadLine::Gnu
by eserte (Deacon) on Dec 10, 2007 at 19:58 UTC
    If you look at CPAN testers results, then it seems that the module has many problems on most platforms and perl versions. Especially it seems that nobody was able to compile and pass all tests on perl 5.10.0.
      okay, thanks. I'll make note of that site for future reference
      it seems that the module has many problems on most platforms and perl versions

      Not that I checked all of the failure reports, but I couldn't find one that failed in the same way as happened for the op. In the vast majority of cases, the module compiled ... but not in this particular instance.

      GertMT, a better clue to the cause of the failure might have been given earlier - so it might be worth giving us a look at the *entire* make output.

      The README in the Term-ReadLine-Gnu-1.16 source distro states:
      "You must have GNU Readline Library Version 2.1 or later. See INSTALL for more detail."

      Do you satisfy that requirement ?

        mmhh, you're right. I do not satisfy this requirement. Haven't read the documentation well enough, apologies.
        Just tried to install GNU Readline Library Version 2.1 but didn't manage to do that.
        checking host system type... configure: error: can not guess host type +; you must specify one
        I'm more of a perl user than programmer so I'm stuck here.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://656129]
Approved by moritz
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2017-10-24 01:07 GMT
Find Nodes?
    Voting Booth?
    My fridge is mostly full of:

    Results (285 votes). Check out past polls.