Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing Octave 4.2.0 from source on ubuntu?

Tags:

ubuntu

octave

I'm trying to build octave 4.2.0 from source, but couldn't due to dependencies.

I'm following instructions at Obtaining the Dependencies Automatically.

but I'm unable to install and am getting following error:

You must put some 'source' URIs in your sources.list

I need help to build octave on ubuntu?

like image 799
WAS Avatar asked Dec 07 '22 20:12

WAS


2 Answers

if u want to compile from source make sure this all dependence are installed:

sudo apt-get openjdk-8-jdk gcc g++ gfortran libpcre3-dev libqhull-dev libbz2-dev libhdf5-dev libfftw3-dev libsndfile1-dev libglpk-dev libcurl4-gnutls-dev libfreetype6-dev libgraphicsmagick1-dev libgraphicsmagick++1-dev libparpack2 libncurses5-dev libreadline6-dev libsqlite3-dev tix-dev libssl-dev gperf flex bison gnuplot libfltk1.3-dev libarpack++2-dev libqrupdate-dev libosmesa6-dev libqscintilla2-qt5-dev libqscintilla2-dev  qttools5-dev-tools libxft-dev libgl2ps-dev libgdbm-dev liblzma-dev libffi-dev  libsundials-dev

or you could just do sudo apt-get build-dep octave to install all the above dependences though its not the best way to do so as the Wiki Octave Page explains

Then :

## wget ftp://ftp.gnu.org/gnu/octave/octave-<version-preferred>
wget ftp://ftp.gnu.org/gnu/octave/octave-4.4.1.tar.xz

## tar xf octave-<version-preferred>
tar xf octave-4.4.1.tar.xz

## rm octave-<version-preferred>
rm octave-4.4.1.tar.xz

## cd octave-<version-preferred>/
cd octave-4.4.1/

./configure
make -j8
sudo make install
like image 135
Arduino_Sentinel Avatar answered Dec 10 '22 10:12

Arduino_Sentinel


You can try out this for version 4.2.1:

First remove any version of Octave if present

sudo apt-get remove octave

then do the following:

sudo apt-add-repository ppa:octave/stable
sudo apt-get update
sudo apt-get install octave
like image 40
sayantan ghosh Avatar answered Dec 10 '22 09:12

sayantan ghosh