Installing octave 3.2.3 in CentOs workstation

I tried to install octave 3.2.3 in my CentOS workstation. After I did

./configure --prefix=/scratch/kurniawano/local

It gave an error cannot find the gnu readline 4.2 above. It turns out that I have a local copy of gnu readline 5, so I use

./configure --prefix=/scratch/kurniawano/local LDFLAGS='-L/scratch/kurniawano/local/lib'

where LDFLAGS locate my local libraries. I can finish the configure, but, I got the following warnings:

configure: WARNING: A BLAS library was detected but found incompatible with your
Fortran 77 compiler. The reference BLAS implementation will be used. To improv
e performance, consider using a different Fortran compiler or a switch like -ff2
c to make your Fortran compiler use a calling convention compatible with the way
your BLAS library was compiled, or use a different BLAS library.
configure: WARNING: FFTW library not found. Octave will use the (slower) FFTPAC K library instead.
configure: WARNING: GraphicsMagick++ config script not found. Assuming Graphics Magic++ library and header files are missing, so imread will not be fully functi onal
configure: WARNING: Qhull library not found --- This will result in loss of func tionality of some geometry functions.
configure: WARNING: I didn't find texi2dvi, but it's only a problem if you need to reconstruct the DVI version of the manual
configure: WARNING: "FLTK config script not found. Native graphics will be disa bled."
configure: WARNING:
configure: WARNING: I didn't find the necessary libraries to compile native
configure: WARNING: graphics. It isn't necessary to have native graphics
configure: WARNING: but you will have to use gnuplot or you won't be able
configure: WARNING: to use any of Octave's plotting commands
configure: WARNING:
configure:

NOTE: libraries may be skipped if a library is not found OR
if the library on your system is missing required features.

the warning suggested to use -ff2c flag in the fortran compiler to make the blas call compatible, I added that to the configure command, and that fixed the first warning,

./configure --prefix=/scratch/kurniawano/local LDFLAGS='-L/scratch/kurniawano/local/lib/' FFLAGS='-ff2c'

To solve the warning that it cannot find FFTW library, I create a symbolic link from /usr/lib64/libfftw3f.so.3 to my local libraries, and changed the name to libfftw3f.so. After this, the warning for FFTW disappear.

The QHULL warning disappear after I added in the header file locations using CPPFLAGS.

I let the warning for GraphicsMagick and FLTK. This makes me unable to use imread and native graphics. But that’s ok, I can still use gnuplot for my graphics. But after I typed make, I got the following error:

display.cc:34:22: error: X11/Xlib.h: No such file or directory
display.cc: In member function ‘void display_info::init(bool)’:
display.cc:98: error: ‘Display’ was not declared in this scope
display.cc:98: error: ‘display’ was not declared in this scope
display.cc:98: error: ‘XOpenDisplay’ was not declared in this scope
display.cc:102: error: ‘Screen’ was not declared in this scope
display.cc:102: error: ‘screen’ was not declared in this scope
display.cc:102: error: ‘DefaultScreenOfDisplay’ was not declared in this scope
display.cc:106: error: ‘DefaultDepthOfScreen’ was not declared in this scope
display.cc:108: error: ‘HeightOfScreen’ was not declared in this scope
display.cc:109: error: ‘WidthOfScreen’ was not declared in this scope
display.cc:111: error: ‘XScreenNumberOfScreen’ was not declared in this scope
display.cc:113: error: ‘DisplayHeightMM’ was not declared in this scope
display.cc:114: error: ‘DisplayWidthMM’ was not declared in this scope
make[2]: *** [pic/display.o] Error 1
make[2]: Leaving directory `/scratch/kurniawano/Download/octave-3.2.3/src'
make[1]: *** [src] Error 2
make[1]: Leaving directory `/scratch/kurniawano/Download/octave-3.2.3'
make: *** [all] Error 2

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: