Download from: ftp://ftp.gnu.org/gnu/octave/octave-3.8.2.tar.gz
tar -xzvf octave-3.8.2.tar.gz export JAVA_HOME=/usr/lib/jvm/java/ ./configure --exec-prefix=/opt/octave/3.8.2 --exec-prefix=/opt/octave/3.8.2 --datadir=/opt/octave/3.8.2/share make -j64 # if you want to compile on 64 cores...
Create module file /etc/modulefiles/octave/3.8.2:
#%Module1.0####################################################################
##
## octave modulefile
##
##
##
prepend-path PATH /opt/octave/3.8.2/bin
prepend-path LD_LIBRARY_PATH /opt/octave/3.8.2/lib
prepend-path MANPATH /opt/octave/3.8.2/share/man