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: Sergei Steshenko
Subject: Re: Problem to install Octave (readline problem)
Date: Sat, 9 Jun 2012 05:13:07 -0700 (PDT)




----- Original Message -----
> From: Germán A. Arias <address@hidden>
> To: Octave <address@hidden>
> Cc: 
> Sent: Saturday, June 9, 2012 8:07 AM
> Subject: Problem to install Octave (readline problem)
> 
> Hi, I'm using Trisquel 5.5. Octave 3.2 is available from repositories.
> But when I run it from shell, I get an error related with readline
> (undefined reference to xxxx). So, I download the latest Octave package,
> the configuration seems OK. I have readline 6.2 installed, included the
> dev headers. But with 'make' I get the error:
> 
> make[3]: se ingresa al directorio
> «/home/german/Instalados/desde-codigo/octave-3.6.1/src»
> /bin/bash ../libtool --tag=CC   --mode=link gcc -g -O2 -pthread
> -DHAVE_CONFIG_H -mieee-fp -Wall -W -Wshadow -Wformat -Wpointer-arith
> -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings -Wcast-align
> -Wcast-qual -g -O2 -pthread -pthread -g -O2 -pthread -no-undefined   -o
> octave main.o
> liboctinterp.la ../liboctave/liboctave.la ../libcruft/libcruft.la  -lm  
> libtool: link: gcc -g -O2 -pthread -DHAVE_CONFIG_H -mieee-fp -Wall -W
> -Wshadow -Wformat -Wpointer-arith -Wmissing-prototypes
> -Wstrict-prototypes -Wwrite-strings -Wcast-align -Wcast-qual -g -O2
> -pthread -pthread -g -O2 -pthread -o .libs/octave
> main.o  ./.libs/liboctinterp.so ../liboctave/.libs/liboctave.so 
> ../libcruft/.libs/libcruft.so -lm -pthread -Wl,-rpath 
> -Wl,/usr/local/lib/octave/3.6.1
> /usr/local/lib/libreadline.so.6: undefined reference to `tgetstr'
> /usr/local/lib/libreadline.so.6: undefined reference to `tputs'
> /usr/local/lib/libreadline.so.6: undefined reference to `BC'
> /usr/local/lib/libreadline.so.6: undefined reference to `tgetent'
> /usr/local/lib/libreadline.so.6: undefined reference to `tgetflag'
> /usr/local/lib/libreadline.so.6: undefined reference to `tgoto'
> /usr/local/lib/libreadline.so.6: undefined reference to `UP'
> /usr/local/lib/libreadline.so.6: undefined reference to `tgetnum'
> /usr/local/lib/libreadline.so.6: undefined reference to `PC'
> collect2: ld returned 1 exit status
> make[3]: *** [octave] Error 1
> make[3]: se sale del directorio
> «/home/german/Instalados/desde-codigo/octave-3.6.1/src»
> make[2]: *** [all] Error 2
> make[2]: se sale del directorio
> «/home/german/Instalados/desde-codigo/octave-3.6.1/src»
> make[1]: *** [all-recursive] Error 1
> make[1]: se sale del directorio
> «/home/german/Instalados/desde-codigo/octave-3.6.1»
> make: *** [all] Error 2
> 
> 
> Any advice? Thanks.
> 
> _______________________________________________


Doing on my box

nm /mnt/sdb8/sergei/AFSWD_debug/20120424/readline-6.2/lib/libreadline.a | less

I see among other things:

"
         U tgetstr
",
i.e. the symbol is used by 'libreadline', but is defined somewhere else.

Doing on my box

cat 
/mnt/sdb8/sergei/AFSWD_debug/20120424/readline-6.2/readline-6.2.dirs_with_so_or_a_files.prl

I see:

"
{
"/mnt/sdb8/sergei/AFSWD_debug/20120424/ncurses-5.9/lib" => "",
"/mnt/sdb8/sergei/AFSWD_debug/20120424/readline-6.2/lib" => ""
};
",

i.e. 'ncurses' is also in the picture.

Doing on my box

nm /mnt/sdb8/sergei/AFSWD_debug/20120424/ncurses-5.9/lib/libncurses.so | less

I see among other things:

"
00027560 T tgetstr
"
- this is where the symbol is defined.

You need to install 'ncurses'.

'configure' should put somewhere '-lncurses' - you'll whether it's the case 
after running 'make' again.

Regards,
  Sergei.








>


reply via email to

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