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: Sun, 10 Jun 2012 06:07:42 -0700 (PDT)




----- Original Message -----
> From: Germán A. Arias <address@hidden>
> To: Sergei Steshenko <address@hidden>
> Cc: Octave <address@hidden>
> Sent: Sunday, June 10, 2012 9:49 AM
> Subject: Re: Problem to install Octave (readline problem)
> 
> El sáb, 09-06-2012 a las 05:13 -0700, Sergei Steshenko escribió:
>> 
>> 
>> 
>>  ----- 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.
>> 
> 
> Hi, I have installed libncurses5 and libncurses5-dev and even with these
> can't compile. See attached config.log Thanks.

Your 'configure' session was successful:

"
Octave is now configured for i686-pc-linux-gnu

  Source directory:            .
  Installation prefix:         /usr/local
  C compiler:                  gcc  -mieee-fp  -Wall -W -Wshadow -Wformat 
-Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings 
-Wcast-align -Wcast-qual -g -O2 -pthread
  C++ compiler:                g++  -mieee-fp  -I/usr/include/freetype2    
-Wall -W -Wshadow -Wold-style-cast -Wformat -Wpointer-arith -Wwrite-strings 
-Wcast-align -Wcast-qual -g -O2
  Fortran compiler:            gfortran -O -mieee-fp
  Fortran libraries:            -L/usr/lib/gcc/i686-linux-gnu/4.6.1 
-L/usr/lib/gcc/i686-linux-gnu/4.6.1/../../../i386-linux-gnu 
-L/usr/lib/gcc/i686-linux-gnu/4.6.1/../../../../lib -L/lib/i386-linux-gnu 
-L/lib/../lib -L/usr/lib/i386-linux-gnu -L/usr/lib/../lib 
-L/usr/lib/gcc/i686-linux-gnu/4.6.1/../../.. -lgfortran -lm -lquadmath
  Lex libraries:               
  LIBS:                        -lm  

  AMD CPPFLAGS:                
  AMD LDFLAGS:                 
  AMD libraries:               -lamd
  ARPACK CPPFLAGS:             
  ARPACK LDFLAGS:              
  ARPACK libraries:            
  BLAS libraries:              -lblas
  CAMD CPPFLAGS:               
  CAMD LDFLAGS:                
  CAMD libraries:              -lcamd
  CARBON libraries:            
  CCOLAMD CPPFLAGS:            
  CCOLAMD LDFLAGS:             
  CCOLAMD libraries:           -lccolamd
  CHOLMOD CPPFLAGS:            
  CHOLMOD LDFLAGS:             
  CHOLMOD libraries:           -lcholmod
  COLAMD CPPFLAGS:             
  COLAMD LDFLAGS:              
  COLAMD libraries:            -lcolamd
  CURL CPPFLAGS:               
  CURL LDFLAGS:                
  CURL libraries:              -lcurl
  CXSPARSE CPPFLAGS:           
  CXSPARSE LDFLAGS:            
  CXSPARSE libraries:          -lcxsparse
  DL libraries:                -ldl
  FFTW3 CPPFLAGS:              
  FFTW3 LDFLAGS:               
  FFTW3 libraries:             
  FFTW3F CPPFLAGS:             
  FFTW3F LDFLAGS:              
  FFTW3F libraries:            
  fontconfig CFLAGS:            
  fontconfig LIBS:             -lfontconfig  
  FT2_CFLAGS:                  -I/usr/include/freetype2
  FT2_LIBS:                    -L/usr/lib/i386-linux-gnu -lfreetype -lz
  GLPK CPPFLAGS:               
  GLPK LDFLAGS:                
  GLPK libraries:              -lglpk
  graphics CFLAGS:                -D_THREAD_SAFE -D_REENTRANT
  graphics LIBS:               -L/usr/lib/i386-linux-gnu 
-Wl,-Bsymbolic-functions -lfltk_gl -lfltk
  Magick++ CPPFLAGS:           -I/usr/include/GraphicsMagick  
  Magick++ LDFLAGS:             
  Magick++ libraries:          -lGraphicsMagick++ -lGraphicsMagick  
  HDF5 CPPFLAGS:               
  HDF5 LDFLAGS:                
  HDF5 libraries:              -lhdf5
  LAPACK libraries:            -llapack
  OPENGL libraries:            -lfontconfig   -lGL -lGLU
  PTHREAD flags:               -pthread
  PTHREAD libraries:           
  QHULL CPPFLAGS:              
  QHULL LDFLAGS:               
  QHULL libraries:             -lqhull
  QRUPDATE libraries:          -lqrupdate
  READLINE libraries:          -lreadline
  REGEX libraries:             -L/usr/lib/i386-linux-gnu -lpcre
  TERM libraries:              -lncurses
  UMFPACK libraries:           -lumfpack
  X11 include flags:           
  X11 libraries:               -lX11
  Z CPPFLAGS:                  
  Z LDFLAGS:                   
  Z libraries:                 -lz

  Default pager:               less
  gnuplot:                     gnuplot

  Do internal array bounds checking:  false
  Use octave_allocator:               false
  Build static libraries:             false
  Build shared libraries:             true
  Dynamic Linking:                    true (dlopen)
  Include support for GNU readline:   true
  64-bit array dims and indexing:     false
",

so how are we supposed to know what went wrong during compilation if you do not 
show us the relevant screen output with error messages and command lines which 
caused them ?

Regards,
  Sergei.









>


reply via email to

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