Octave for Debian systems: Difference between revisions

m
→‎The right way: Add note about minimal Octave version for Qt6
m (Fix oneliner for Ubuntu 22.04)
m (→‎The right way: Add note about minimal Octave version for Qt6)
 
(3 intermediate revisions by 2 users not shown)
Line 17: Line 17:
  sudo apt-get install octave-control octave-image octave-io octave-optim octave-signal octave-statistics
  sudo apt-get install octave-control octave-image octave-io octave-optim octave-signal octave-statistics


Up to 2018, the [https://launchpad.net/~octave GNU Octave Team] on Launchpad actively maintained a PPA providing more up to date packages of Octave.  These are backported from Debian unstable and are still useful for older Ubuntu installations.  To set up your system to install these packages, run:
Up to 2018, the [https://launchpad.net/~octave GNU Octave Team] on Launchpad actively maintained a PPA providing more up to date packages of Octave.  These were backported from Debian unstable and were useful for older Ubuntu installations (up to Xenial Xerus 16.04).  To set up your system to install these packages, run:


  sudo apt-add-repository ppa:octave/stable
  sudo apt-add-repository ppa:octave/stable
Line 50: Line 50:


or, for the sake of convenience, use some "one-liner" to install them:
or, for the sake of convenience, use some "one-liner" to install them:
* '''Ubuntu 24.04 (LTS)'''
:<pre>sudo apt install gcc g++ autoconf automake bison dvipng epstool fig2dev flex gfortran gnuplot-x11 gperf gzip icoutils libarpack2-dev libopenblas-dev libcurl4-gnutls-dev libfftw3-dev libfltk1.3-dev libfontconfig1-dev libfreetype-dev libgl1-mesa-dev libgl2ps-dev libglpk-dev libgraphicsmagick++1-dev libhdf5-dev liblapack-dev libosmesa6-dev libpcre2-dev libqhull-dev libqscintilla2-qt5-dev libqrupdate-dev libreadline-dev librsvg2-bin libsndfile1-dev libsuitesparse-dev libsundials-dev libtool libxft-dev make openjdk-11-jdk perl portaudio19-dev pstoedit qtbase5-dev qttools5-dev qttools5-dev-tools rapidjson-dev rsync tar texinfo texlive-latex-extra zlib1g-dev</pre>
Or to build the GUI with Qt6 (Octave 9 or later):
:<pre>sudo apt install gcc g++ autoconf automake bison dvipng epstool fig2dev flex gfortran gnuplot-x11 gperf gzip icoutils libarpack2-dev libopenblas-dev libcurl4-gnutls-dev libfftw3-dev libfltk1.3-dev libfontconfig1-dev libfreetype-dev libgl1-mesa-dev libgl2ps-dev libglpk-dev libgraphicsmagick++1-dev libhdf5-dev liblapack-dev libosmesa6-dev libpcre2-dev libqhull-dev libqscintilla2-qt6-dev libqrupdate-dev libreadline-dev librsvg2-bin libsndfile1-dev libsuitesparse-dev libsundials-dev libtool libxft-dev make openjdk-11-jdk perl portaudio19-dev pstoedit qt6-5compat-dev qt6-base-dev qt6-tools-dev qt6-base-dev-tools rapidjson-dev rsync tar texinfo texlive-latex-extra zlib1g-dev</pre>
(Some of these packages might only be needed when building from a repository checkout.)


* '''Ubuntu 22.04 (LTS)'''
* '''Ubuntu 22.04 (LTS)'''
225

edits