Skip navigation
This discussion is archived

libreadline

1973 Views 3 Replies Latest reply: Aug 10, 2008 10:02 AM by MishaParem RSS
MishaParem Calculating status...
Currently Being Moderated
Jun 4, 2008 5:58 PM
Hello again,

I'm trying to compile some Linux programs, and when I type `make' I get errors such as:

Undefined symbols: "rl_forced_updatedisplay", referenced from con_updateprompt

Now apparently this is caused by the lack of actual readline libraries in Mac OS X. So I tried to `sudo make port install readline-5', and voila, absolutely nothing changed.

Has anyone else encountered this problem and/or found a fix?

Thanks,

Misha
MacBook Pro, Mac OS X (10.5.2)
  • Jens Biegert Calculating status...
    Currently Being Moderated
    Jun 16, 2008 3:22 AM (in response to MishaParem)
    Found that one related to gnuplot installation, but with similar problem:

    In article <87f9417b-71cc-4fc0-ad1b-7239e927c...@n20g2000hsh.googlegroups.com>,

    <geometric.patte...@gmail.com> wrote:
    Has anyone been able to compile gnuplot (4.2.2) on OS X 10.5.1? I am
    running configure then make, but get the following:


    Known problem. Apple's fault - complain to them.
    As I understand the situation based on information from earlier reports,
    the story seems to be that Apple have provided a "fake" libreadline
    shared library. It's really a compatibility layer over the BSD
    libedit library. But the compatibility isn't complete, and in particular
    it is missing many of the routines used for readline support by gnuplot.

    If the configure script can't find libreadline then it is supposed to fall
    back to using built-in routines. But the "fake" libreadline fools the
    configure script into thinking it really is present, and then the build
    fails later when it turns out that routines are missing.

    Alternative work-arounds:

    1) Explicitly tell gnuplot libreadline is not available:
    ./configure --with-readline=builtin

    2) Delete the fake libreadline libraries from OSX and install
    the real gnu libreadline as a system library.

    3) Install the real gnu libreadline into your personal account and
    tell gnuplot to use it:
    ./configure --with-readline=/my/private/readline/installdir
    This may require some playing around with additional -L and -I
    pointers in CFLAGS, and is probably harder than replacing the
    system copy of the library.
  • etresoft Level 7 Level 7 (23,915 points)
    Currently Being Moderated
    Jun 16, 2008 6:04 AM (in response to Jens Biegert)
    Jens Biegert wrote:
    Now apparently this is caused by the lack of actual readline libraries in Mac OS X. So I tried to `sudo make port install readline-5', and voila, absolutely nothing changed.

    Known problem. Apple's fault - complain to them.


    It is not a problem with Apple, it is a problem with readline. Readline is GPL - not LGPL. Because Apple doesn't want to open up all of MacOSX, they cannot legally include libreadline.
    MacBook, Mac OS X (10.5.2), 1.83Ghz/2GB Ram/160 HD et al.

Actions

More Like This

  • Retrieving data ...

Bookmarked By (0)

Legend

  • This solved my question - 10 points
  • This helped me - 5 points
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.