Editing Octave for Slackware

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:
== Building Octave on Slackware ==
== Building Octave on Slackware ==


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.
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.
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.


The [https://slackbuilds.org/repository/15.0/academic/octave/ receipt for Octave] has dependencies, which aren't automatically resolved and are listed in the [https://slackbuilds.org/slackbuilds/15.0/academic/octave/README README file] of the Octave receipt.
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.
Those dependencies are:
* [https://slackbuilds.org/repository/15.0/libraries/blas/ BLAS] and
* [https://slackbuilds.org/repository/15.0/libraries/lapack/ LAPACK]


Note that there are further dependencies which are optional, e.g., [https://slackbuilds.org/repository/15.0/graphics/GraphicsMagick/ GraphicsMagick]. Another more general list of dependencies is given in the [[Building]] wiki page.
In the end, what I did, was:
 
* 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]]
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)