help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem to install Octave (readline problem)


From: Mike Miller
Subject: Re: Problem to install Octave (readline problem)
Date: Mon, 11 Jun 2012 08:12:15 -0400

On Mon, Jun 11, 2012 at 1:00 AM, Germán A. Arias
<address@hidden> wrote:
> Well, doing:
>
> nm /usr/lib/libncurses.a > home/german/lib.txt
>
> I don't found tgetstr, tputs, BC, tgetent, tgetflag,... So, I suppose
> the problem is how libreadline is compiled.

Look for those symbols in libtinfo as well.  Some distros have just
libncurses, some have libncurses and libtinfo, with libtinfo providing
those particular functions.  It may be provided by the ncurses package
or may be split into its own package, also depends on distro.

Here's a set of commands run on centos 5.x:

$ nm -D /usr/lib/libncurses.so | grep tget
0447e800 T tgetent
0447e630 T tgetflag
0447e560 T tgetnum
0447e6e0 T tgetstr
$ nm -D /usr/lib/libtinfo.so | grep tget
nm: '/usr/lib/libtinfo.so': No such file
$ ldd /usr/lib/libncurses.so
        linux-gate.so.1 =>  (0x00a60000)
        libc.so.6 => /lib/libc.so.6 (0x00ab2000)
        libdl.so.2 => /lib/libdl.so.2 (0x00c20000)
        /lib/ld-linux.so.2 (0x00a94000)

and the same commands on centos 6.x:

$ nm -D /usr/lib/libncurses.so | grep tget
$ nm -D /usr/lib/libtinfo.so | grep tget
00846580 T tgetent
008463c0 T tgetflag
00846310 T tgetnum
00846460 T tgetstr
$ ldd /usr/lib/libncurses.so
        linux-gate.so.1 =>  (0x001d3000)
        libc.so.6 => /lib/libc.so.6 (0x00511000)
        libdl.so.2 => /lib/libdl.so.2 (0x006a3000)
        libtinfo.so.5 => /lib/libtinfo.so.5 (0x0083c000)
        /lib/ld-linux.so.2 (0x004eb000)

If you use dynamic libraries the dependency on libtinfo should be
picked up automatically.

-- 
mike


reply via email to

[Prev in Thread] Current Thread [Next in Thread]