Editing Octave for openSUSE

Jump to navigation Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
=== Installation ===


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:
== Pre-compiled binaries ==


zypper install octave
Binary packages for Octave are provided by all versions of openSUSE. These are the most well-tested binaries available and should work best for most users.


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.
  zypper in octave


zypper install octave-devel
If you want to use install latest stable version of Octave and Octave Forge packages, you can use Science repository.


==== The science repository ====
zypper ar http://download.opensuse.org/repositories/science/<openSUSE version>/ Science
zypper ref
zypper in octave


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.
There <openSUSE verion> is your version of openSUSE, for example {{codeline|openSUSE_13.1}}


To add the science repository manually, use the zypper commands (<code><openSUSE_version></code> is for example <code>openSUSE_Leap_15.1</code>):
===Linear algebra libraries===
 
openSUSE uses reference BLAS and LAPACK implementations by default, but ATLAS is usually much faster. You can switch it by update-alternatives mechanism:
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 ===
 
[[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 ===
 
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 libblas.so.3
  /usr/sbin/update-alternatives --config liblapack.so.3
  /usr/sbin/update-alternatives --config liblapack.so.3


Example:
Example:


There are 4 choices for the alternative libblas.so.3 (providing /usr/lib64/libblas.so.3).
   Selection    Path                            Priority  Status
   Selection    Path                            Priority  Status
  ------------------------------------------------------------
  ------------------------------------------------------------
Line 46: Line 28:
   2            /usr/lib64/atlas/libtatlas.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
   3            /usr/lib64/libblas.so.3.4.2      50        manual mode
  4            /usr/lib64/libopenblasp.so.0      20        manual mode
See [https://en.opensuse.org/openSUSE:Science_Linear_algebra_libraries linear algebra libraries page] at openSUSE wiki for more information.
=== 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 ===
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:Installation]]
Please note that all contributions to Octave may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Octave:Copyrights for details). Do not submit copyrighted work without permission!

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)