Octave for openSUSE: Difference between revisions

From Octave
Jump to navigation Jump to search
m (→‎Octave Forge packages: add wildcard for search to happen)
m (→‎Installation: Fix internal link.)
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
=== Installation ===


=== Octave packages ===
Octave binary packages are provided from the OSS repository of all recent openSUSE versions. Octave can be installed using [https://software.opensuse.org/package/octave One Click Install], YaST, or the zypper command:
 
Octave binary packages are provided from OSS repository of all actual openSUSE versions. Octave can be installed with the help of YaST or zypper command


  zypper install octave
  zypper install octave


If you want to use latest stable version of Octave, you can use science repository.
It is recommended to additionally install the development files.  They are required, for installing [[#Octave Forge packages|Octave Forge]] packages outside openSUSE's OSS repository or to create applications using Octave.


==== Install using One Click Install ====
zypper install octave-devel


You can use [http://software.opensuse.org/download.html?project=science&package=octave one click install mechanism for Octave].
==== The science repository ====


==== Manual installation ====
If you want to use '''latest stable version of Octave''', you can obtain the binary packages via [https://software.opensuse.org/download.html?project=science&package=octave One Click Install] from the science repository.


Add the science repository (<code><openSUSE_version></code> is for example <code>openSUSE_Leap_42.3</code>):
To add the science repository manually, use the zypper commands (<code><openSUSE_version></code> is for example <code>openSUSE_Leap_15.1</code>):


  zypper addrepo http://download.opensuse.org/repositories/science/<openSUSE_version>/science.repo
  zypper addrepo http://download.opensuse.org/repositories/science/<openSUSE_version>/science.repo
  zypper refresh
  zypper refresh


Install Octave from science repository:
And to install Octave from the science repository type:


  zypper install --from science octave
  zypper install --from science octave
Line 25: Line 24:
=== Octave Forge packages ===
=== Octave Forge packages ===


Octave-Forge binary packages are provided from science repository. You can list all available packages by zypper command
[[Octave Forge]] binary packages are provided from the OSS and science repository. You can list all available packages by the zypper command:


  zypper search octave-forge*
  zypper search octave-forge*


=== Linear algebra libraries ===
=== Linear algebra libraries ===
openSUSE uses reference BLAS and LAPACK implementations by default, but ATLAS or OpenBLAS are usually much faster. You can switch it by update-alternatives mechanism:
openSUSE uses reference BLAS and LAPACK implementations by default, but ATLAS or OpenBLAS are usually much faster. You can switch it by update-alternatives mechanism:


Line 51: Line 51:


=== Image export and import ===
=== Image export and import ===
GraphicsMagick++ library from openSUSE repositories was compiled with quantum depth 16 which limits reading and writing images to 16 bit. See more details on [[GraphicsMagick]] wiki page.
GraphicsMagick++ library from openSUSE repositories was compiled with quantum depth 16 which limits reading and writing images to 16 bit. See more details on [[GraphicsMagick]] wiki page.


=== Bug reporting ===
=== Bug reporting ===
You can report openSUSE specific bugs by pressing "Report Bug" button on [https://build.opensuse.org/package/show/science/octave OBS Octave page] (openSUSE bugzilla account required).
You can report openSUSE specific bugs by pressing "Report Bug" button on [https://build.opensuse.org/package/show/science/octave OBS Octave page] (openSUSE bugzilla account required).
=== See also ===
* https://en.opensuse.org/Octave


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

Latest revision as of 08:51, 28 October 2019

Installation[edit]

Octave binary packages are provided from the OSS repository of all recent openSUSE versions. Octave can be installed using One Click Install, YaST, or the zypper command:

zypper install octave

It is recommended to additionally install the development files. They are required, for installing Octave Forge packages outside openSUSE's OSS repository or to create applications using Octave.

zypper install octave-devel

The science repository[edit]

If you want to use latest stable version of Octave, you can obtain the binary packages via One Click Install from the science repository.

To add the science repository manually, use the zypper commands (<openSUSE_version> is for example openSUSE_Leap_15.1):

zypper addrepo http://download.opensuse.org/repositories/science/<openSUSE_version>/science.repo
zypper refresh

And to install Octave from the science repository type:

zypper install --from science octave

Octave Forge packages[edit]

Octave Forge binary packages are provided from the OSS and science repository. You can list all available packages by the zypper command:

zypper search octave-forge*

Linear algebra libraries[edit]

openSUSE uses reference BLAS and LAPACK implementations by default, but ATLAS or OpenBLAS are usually much faster. You can switch it by update-alternatives mechanism:

/usr/sbin/update-alternatives --config libblas.so.3
/usr/sbin/update-alternatives --config liblapack.so.3

Example:

There are 4 choices for the alternative libblas.so.3 (providing /usr/lib64/libblas.so.3).

  Selection    Path                             Priority   Status
------------------------------------------------------------
* 0            /usr/lib64/libblas.so.3.4.2       50        auto mode
  1            /usr/lib64/atlas/libsatlas.so.3   20        manual mode
  2            /usr/lib64/atlas/libtatlas.so.3   20        manual mode
  3            /usr/lib64/libblas.so.3.4.2       50        manual mode
  4            /usr/lib64/libopenblasp.so.0      20        manual mode

See linear algebra libraries page at openSUSE wiki for more information.

Image export and import[edit]

GraphicsMagick++ library from openSUSE repositories was compiled with quantum depth 16 which limits reading and writing images to 16 bit. See more details on GraphicsMagick wiki page.

Bug reporting[edit]

You can report openSUSE specific bugs by pressing "Report Bug" button on OBS Octave page (openSUSE bugzilla account required).

See also[edit]