Octave for Arch Linux: Difference between revisions

From Octave
Jump to navigation Jump to search
No edit summary
 
(17 intermediate revisions by 8 users not shown)
Line 1: Line 1:
This page is intended as a quick introduction for building octave on archlinux.
== Installing Octave ==


If you just want to have the latest version of octave and not intend to edit the sources, consider install [https://aur.archlinux.org/packages/octave-hg/?comments=all link octave-hg] from the AUR.
To simply install the latest stable release of GNU Octave on Arch Linux, just execute (as root):


If you encounter any problems during the build process that are not mentioned here, take a look at [https://aur.archlinux.org/packages/octave-hg/?comments=all link https://aur.archlinux.org/packages/octave-hg/?comments=all]. Some problems are listed in the comments, new dependencies are easy to extract from the PKGBUILD.
pacman -S octave


== Build dependencies ==
Using [https://aur.archlinux.org/ AUR], one can install a development version of Octave, for example [https://aur.archlinux.org/packages/octave-hg/?comments=all octave-hg].  If you encounter any problems during the build process, some problems and solutions are listed in the comments on AUR.  New dependencies are easy to extract from the PKGBUILD.
To install the necessary build dependencies just execute (as root):


pacman -S base-devel pcre mercurial gcc-fortran gperf perl rsync transfig arpack curl fftw fltk glpk glu graphicsmagick hdf5 java-environment qhull qscintilla texinfo gnuplot graphviz doxygen
== Building Octave from source ==


Assuming you have yaourt installed, the dependencies from the AUR are installed as follows (as normal user):
: ''For general build instructions, see [[Building]].''


yaourt -S gl2ps qrupdate epstool
To install the Octave build dependencies on Arch Linux, just execute (as root):


== Building octave ==
pacman -S --needed base-devel pcre mercurial gcc-fortran gperf perl rsync transfig arpack curl rapidjson fftw fltk glpk glu graphicsmagick qt6-base qt6-tools hdf5 java-environment qhull qscintilla-qt6 texinfo gnuplot llvm texlive-bin icoutils gl2ps qrupdate
Checkout octave as described in [http://www.gnu.org/software/octave/get-involved.html link http://www.gnu.org/software/octave/get-involved.html].


It is recommended to build octave within a subdirectory.


./bootstrap
You would also need the package epstool. This is a user contributed package, and is not available in the official repositories. Rather, it should be installed from the AUR. There are several methods to do this. One of them is to use yay which is an AUR helper.  
mkdir build
cd build
../configure MOC=moc-qt4 UIC=uic-qt4
make -j3


The only difference from the build on other systems are the parameters given to configure. They are necessary due to a problem with some configuration and the coexistance of qt4 and qt5. For more information take a look at the comments of octave-hg in the AUR.
Install yay:


If you encounter further problems or find more dependencies, feel free to adress them here.
  pacman -S yay
 
Install epstool with yay:
 
yay -S epstool
 
== Building the documentation ==
 
If you wish to build the Octave documentation, install the following packets too:
 
pacman -S graphviz doxygen
 
== See also ==
 
* https://wiki.archlinux.org/index.php/Octave


[[Category:Building]]
[[Category:Building]]
[[Category:GNU/Linux]]
[[Category:GNU/Linux]]
[[Category:Installation]]

Latest revision as of 14:56, 3 September 2024

Installing Octave[edit]

To simply install the latest stable release of GNU Octave on Arch Linux, just execute (as root):

pacman -S octave

Using AUR, one can install a development version of Octave, for example octave-hg. If you encounter any problems during the build process, some problems and solutions are listed in the comments on AUR. New dependencies are easy to extract from the PKGBUILD.

Building Octave from source[edit]

For general build instructions, see Building.

To install the Octave build dependencies on Arch Linux, just execute (as root):

pacman -S --needed base-devel pcre mercurial gcc-fortran gperf perl rsync transfig arpack curl rapidjson fftw fltk glpk glu graphicsmagick qt6-base qt6-tools hdf5 java-environment qhull qscintilla-qt6 texinfo gnuplot llvm texlive-bin icoutils gl2ps qrupdate 


You would also need the package epstool. This is a user contributed package, and is not available in the official repositories. Rather, it should be installed from the AUR. There are several methods to do this. One of them is to use yay which is an AUR helper.

Install yay:

 pacman -S yay

Install epstool with yay:

yay -S epstool

Building the documentation[edit]

If you wish to build the Octave documentation, install the following packets too:

pacman -S graphviz doxygen

See also[edit]