问题
So i am following steps to install the latest version of octave from here.
sudo apt-get install g++ gcc gfortran make autoconf automake bison flex gperf gzip icoutils librsvg2-bin libtool perl rsync tar
sudo apt-get install libblas-dev liblapack-dev libpcre3-dev libarpack2-dev libcurl4-gnutls-dev epstool libfftw3-dev transfig libfltk1.3-dev libfontconfig1-dev libfreetype6-dev libgl2ps-dev libglpk-dev libreadline-dev gnuplot libgraphicsmagick++-dev libhdf5-serial-dev openjdk-9-jdk libsndfile1-dev llvm-dev lpr texinfo libgl1-mesa-dev libosmesa6-dev pstoedit portaudio19-dev libqhull-dev libqrupdate-dev libqscintilla2-dev libqt4-dev libqtcore4 libqtwebkit4 libqt4-network libqtgui4 libsuitesparse-dev libxft-dev zlib1g-dev
cd ~/Downloads/
wget -c ftp://ftp.gnu.org/gnu/octave/octave-4.0.3.tar.gz
tar -xzf octave-4.0.3.tar.gz
cd octave-4.0.3
./configure --prefix=/opt/octave-4.0.3 CPPFLAGS=-I/usr/include/hdf5/serial LDFLAGS=-L/usr/lib/$(dpkg-architecture -qDEB_HOST_MULTIARCH)/hdf5/serial JAVA_HOME=/usr/lib/jvm/java-9-openjdk-amd64
Here i get message as:
configure: WARNING: Java version is too old (< 1.5). Octave will not be able to call Java methods.
But i have installed the latest version of openjdk
via sudo apt-get install openjdk-9-jdk
. So why do i get this message? Is it because i used the JAVA_HOME
flag in configure settings?
Moreover, when i run make check
, tests tell that out of 874 tests, 207 could not be run because of lacking dependencies. The rest could be run and passed. Therefore, i have a lot of dependencies issues. My question is what is the best configure settings to install 100% features of octave 4.0.3 in ubuntu 16.04? So that after this when i do make install
, i have the full latest version without any glitch.
来源:https://stackoverflow.com/questions/38603331/configure-settings-for-installing-octave-4-0-3-in-ubuntu-16-04