Difference between revisions of "Octave for Slackware"

From Octave
Jump to navigation Jump to search
m (Add categories.)
(Reduce to the necessary minimum. Don't repeat build instructions already perfectly given at http://slackbuilds.org/howto/.)
 
Line 1: Line 1:
 
== Building Octave on Slackware ==
 
== Building Octave on Slackware ==
  
Octave is contained in the [http://www.slackbuilds.org SlackBuilds repository]. To build [http://slackbuilds.org/repository/14.1/academic/octave/ Octave], you will also need the [http://slackbuilds.org/repository/14.1/libraries/blas/ BLAS] and [http://slackbuilds.org/repository/14.1/libraries/lapack/ LAPACK] libraries, which are not contained in a Slackware standard installation. Note that there are further dependencies which are optional, e.g. for me, GraphicsMagick. They are also listed on the Slackbuilds octave page.
+
GNU Octave is contained in the [http://www.slackbuilds.org SlackBuilds repository], which contains building receipts for several software packages. The [http://slackbuilds.org/howto/ SlackBuilds Howto] page describes in detail, how to use such a receipt.
The rest of this page is just following the steps for slackbuilds one by one, so if you want to do it yourself, go to the [http://slackbuilds.org/howto/ Slackbuilds Howto] and follow these instructions one by one.
 
  
To install the packages, go on their Slackbuilds page and donwload the source packages of lapack and octave (under "Source Downloads") and the SlackBuild (named blas.tar.gz, lapack.tar.gz, octave.tar.gz). If you want a more recent version of octave than the SlackBuild, download that, and please inform the SlackBuild maintainer that there is a newer version of octave.
+
The [http://slackbuilds.org/repository/14.2/academic/octave/ receipt for Octave] has dependencies, which aren't automatically resolved and are listed in the [http://slackbuilds.org/slackbuilds/14.2/academic/octave/README README file] of the Octave receipt.
 +
Those dependencies are:
 +
* [http://slackbuilds.org/repository/14.2/libraries/blas/ BLAS] and
 +
* [http://slackbuilds.org/repository/14.2/libraries/lapack/ LAPACK]
  
In the end, what I did, was:
+
Note that there are further dependencies which are optional, e.g., [http://slackbuilds.org/repository/14.2/graphics/GraphicsMagick/ GraphicsMagick]. Another more general list of dependencies is given in the [[Building]] wiki page.
 
 
* tar -xzf blas.tar.gz
 
* cp blas-$VERSION.tgz blas/
 
* cd blas
 
* chmod u+x blas.SlackBuild
 
* [modify blas.info to fit the right version, modify blas.SlackBuild if you want to change compiling parameters. I removed the `chown root:root ...` line from the slackbuild, since then I could build as user]
 
* ./blas.SlackBuild
 
* sudo installpkg /tmp/blas-$VERSION.txz
 
 
 
Then, the same, replacing blas with lapack and octave. And, in my case, before octave, any dependencies you might need (e.g., GraphicsMagick).
 
  
 
[[Category:Building]]
 
[[Category:Building]]
 
[[Category:Installation]]
 
[[Category:Installation]]
 
[[Category:GNU/Linux]]
 
[[Category:GNU/Linux]]

Latest revision as of 21:48, 22 October 2019

Building Octave on Slackware[edit]

GNU Octave is contained in the SlackBuilds repository, which contains building receipts for several software packages. The SlackBuilds Howto page describes in detail, how to use such a receipt.

The receipt for Octave has dependencies, which aren't automatically resolved and are listed in the README file of the Octave receipt. Those dependencies are:

Note that there are further dependencies which are optional, e.g., GraphicsMagick. Another more general list of dependencies is given in the Building wiki page.