Installing Octave on RHEL5

David Laxer davidl at softintel.com
Tue Mar 3 18:57:33 CST 2009


Hi,

I am working on building octave-3.1.53 on RHEL5 Linux.  I've installed 
and compiled metis-4.0,
which compiled properly.

I downloaded SuiteSparse-3.2.0.tar.gz into /opt/SparseSuite.
Compiling,  got an error building AMD:
make[3]: Leaving directory `/opt/SuiteSparse/AMD'
cc -O3 -fexceptions  -I../Include -I../../AMD/Include -I../../UFconfig 
-o umfpack_di_demo umfpack_di_demo.c ../Lib/libumfpack.a 
../../AMD/Lib/libamd.a -lblas -lgfortran -lgfortranbegin -lg2c  -lm
/usr/bin/ld: cannot find -lg2c

It appears that g2c is not supported on RHEL5.

Finally, 'configure' doesn't recognized the SuiteParse includes or 
libraries.
My SuiteSparse tree is in upper case, while 'configure' is in lower case
(e.g.
[root at localhost SuiteSparse]# ls -l
total 704
drwxr-xr-x  8 5057 10405   4096 Jul 31  2008 AMD
drwxr-xr-x  7 5057 10405   4096 May  8  2007 BTF
drwxr-xr-x  8 5057 10405   4096 May  5  2007 CAMD
drwxr-xr-x  8 5057 10405   4096 May 10  2007 CCOLAMD
drwxr-xr-x 16 5057 10405   4096 Aug 11  2008 CHOLMOD
drwxr-xr-x  8 5057 10405   4096 May  5  2007 COLAMD
-rw-r--r--  1 5057 10405   7536 Aug 19  2008 Contents.m
drwxr-xr-x 10 5057 10405   4096 Oct 29  2007 CSparse
-rwxr-xr-x  1 5057 10405   9731 Mar  1  2007 CSparse_to_CXSparse
drwxr-xr-x 10 5057 10405   4096 Sep 23 15:29 CXSparse
drwxr-xr-x 10 5057 10405   4096 Oct 29  2007 CXSparse_newfiles
-rw-r--r--  1 5057 10405 573366 Sep 23 15:29 CXSparse_newfiles.tar.gz
drwxr-xr-x 11 5057 10405   4096 Oct 27  2007 KLU
drwxr-xr-x  9 5057 10405   4096 May  5  2007 LDL
drwxr-xr-x  2 5057 10405   4096 Oct 29  2007 LINFACTOR
-rw-r--r--  1 5057 10405   3292 Sep 23 11:16 Makefile
drwxr-xr-x  7 5057 10405   4096 Sep  8 08:00 MATLAB_Tools
drwxr-xr-x  2 5057 10405   4096 Oct 30  2007 MESHND
drwxr-xr-x  4 5057 10405   4096 Sep 22 14:16 RBio
-rw-r--r--  1 5057 10405   6018 Sep 23 11:06 README.txt
drwxr-xr-x 10 5057 10405   4096 Sep 22 20:47 SPQR
drwxr-xr-x  3 5057 10405   4096 Sep 22 14:16 SSMULT
-rw-r--r--  1 5057 10405   4669 Sep 23 06:35 SuiteSparse_demo.m
-rw-r--r--  1 5057 10405  10684 Sep 23 11:26 SuiteSparse_install.m
-rw-r--r--  1 5057 10405   6660 Sep 23 06:35 SuiteSparse_test.m
drwxr-xr-x  3 5057 10405   4096 Sep 22 14:16 UFcollection
drwxr-xr-x  3 5057 10405   4096 Mar  3 15:15 UFconfig
drwxr-xr-x  9 5057 10405   4096 Oct 30  2007 UMFPACK

Excerpt from 'config.log':

Octave is now configured for x86_64-unknown-linux-gnu

  Source directory:     .
  Installation prefix:  /usr/local
  C compiler:           gcc   -Wall -W -Wshadow -g -O2
  C++ compiler:         g++   -Wall -W -Wshadow -Wold-style-cast -g -O2 
-I/usr/include/freetype2
  Fortran compiler:     f95 -O
  Fortran libraries:     -L/usr/X11R6/lib 
-L/usr/lib/gcc/x86_64-redhat-linux/4.1.2 
-L/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64 
-L/lib/../lib64 -L/usr/lib/../lib64 -lz -lgfortranbegin -lgfortran -lm 
-lGL -lGLU -lfreetype -lgcc_s
  BLAS libraries:       -lblas
  FFTW libraries:
  GLPK libraries:
  UMFPACK libraries:
  AMD libraries:
  CAMD libraries:
  COLAMD libraries:
  CCOLAMD libraries:
  CHOLMOD libraries:
  CXSPARSE libraries:
  ARPACK libraries:  
  QRUPDATE libraries:
  HDF5 libraries:    
  CURL libraries:       -lcurl
  REGEX libraries:     
  QHULL libraries:     
  OPENGL libraries:     -L/usr/X11R6/lib -lGL -lGLU
  FLTK backend libs:
  X11 include flags:   
  X11 libraries:        -L/usr/lib64 -lX11
  CARBON libraries:    
  LIBS:                 -lreadline  -lncurses -ldl -lblas -lz -lm  
-L/usr/X11R6/lib -lGL -lGLU -lfreetype
  Default pager:        less
  gnuplot:              gnuplot
  Magick config:       

  Do internal array bounds checking:  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

configure:33568: WARNING: I didn't find gperf, but it's only a problem 
if you need to reconstruct oct-gperf.h
configure:33598: WARNING: UMFPACK not found.  This will result in some 
lack of functionality for sparse matrices.
configure:33604: WARNING: qrupdate not found. The QR & Cholesky updating 
functions will be slow.
configure:33610: WARNING: AMD not found. This will result in some lack 
of functionality for sparse matrices.
configure:33616: WARNING: COLAMD not found. This will result in some 
lack of functionality for sparse matrices.
configure:33622: WARNING: CCOLAMD not found. This will result in some 
lack of functionality for sparse matrices.
configure:33628: WARNING: CHOLMOD not found. This will result in some 
lack of functionality for sparse matrices.
configure:33634: WARNING: CXSparse not found. This will result in some 
lack of functionality for sparse matrices.
configure:33640: WARNING: arpack not found. This will result in a lack 
of the eigs function.
configure:33652: WARNING: FFTW library not found.  Octave will use the 
(slower) FFTPACK library instead.
configure:33658: WARNING: GLPK library not found.  The glpk function for 
solving linear programs will be disabled.
configure:33664: WARNING: GraphicsMagick++ config script not found.  
Assuming GraphicsMagic++ library and header files are missing, so imread 
will not be fully functional
configure:33682: WARNING: PCRE library not found.  This will result in 
some loss of functionality for the regular expression matching functions.
configure:33688: WARNING: Qhull library not found --- This will result 
in loss of functionality of some geometry functions.
configure:33712: WARNING: I didn't find texi2dvi, but it's only a 
problem if you need to reconstruct the DVI version of the manual
configure:33792: WARNING: "FTGL headers not found. Native renderer will 
not have on-screen text"
configure:33799: WARNING: "FLTK config script not found.  Native 
graphics will be disabled."
configure:33815: WARNING:
configure:33817: WARNING: I didn't find the necessary libraries to 
compile native
configure:33819: WARNING: graphics. It isn't necessary to have native 
graphics
configure:33821: WARNING: but you will have to use gnuplot or you won't 
be able
configure:33823: WARNING: to use any of Octave's plotting commands
configure:33825: WARNING:
configure:33835:

Any suggestions?
Thanks,
-David Laxer


More information about the Help-octave mailing list