Octave.app
A native Mac app distribution of GNU Octave
Octave.app
Octave.app is a project to bundle and distribute GNU Octave as a native Mac GUI application. This makes it easy to install and use GNU Octave on Mac.
We are not an official GNU project, or part of GNU Octave. We are a rag-tag band of misfits who’ve written a tool to download and build GNU Octave and its dependencies and bundle them as a Mac app.
Our goal is to make ready-to-use Octave.app installers available to the public.
Download
All Octave.app releases are available on the Downloads page.
When running Octave.app for the first time, instead of just double-clicking it, you will need to right-click on it and choose “Open”, so you get a dialog asking you if you really want to run it, since it’s from an unidentified developer. This is because the app is not signed. This is something we’re working on.
If you’re feeling adventurous, beta and pre-release versions can be found on the Developer Downloads page.
Requirements
- macOS, version 10.11 El Capitan or newer
- MacTeX, if you want the help command to work properly for Octave Forge packages.
License
Most of Octave.app’s code is GPL, with the exception of its Homebrew formula files, which are BSD 2-Clause License.
GNU Octave itself is GPL. Its dependencies are available under various FLOSS licenses.
Alternate Installations
Installing with Homebrew Cask
To install Octave.app using Homebrew Cask:
Installing directly with Homebrew
NOTE: This is not the normal way to install Octave.app! Unless you have a particular reason for doing this, please just download and install the regular Octave.app distribution.
If you want to build and install our Qt-enabled Octave build via Homebrew instead of using the Octave.app distribution, you can do this by setting up Homebrew as normal, and doing the following:
If you have a previous octave build from the regular Homebrew or dpo/openblas formulae, you need to unlink it first with brew unlink octave .
People and Support
Sebastian Schoeps is the original author and maintainer.
For help with Octave.app, please head to the octave-app GitHub repo and see its issue tracker. Andrew also sometimes hangs out on the #octave channel on freenode IRC.
Acknowledgements
Octave.app is powered by Homebrew.
Octave for macOS
GNU Octave is primarily developed on GNU/Linux and other POSIX conformant systems. On macOS systems GNU Octave can be installed
- from a single dmg-file, a macOS App Bundle called «Octave.app» in recent versions, or
- by using a macOS package manager.
Contents
macOS App Bundles [ edit ]
The Octave.app project (GitHub page) provides an unofficial ready-to-use macOS App Bundle installer based on Homebrew (see below).
An older installer is hosted on SourceForge.
Package Managers [ edit ]
A package manager is a software tool to automate the process of installing, upgrading, configuring, and removing software packages for a computer’s operating system in a consistent manner. It typically maintains a database of software dependencies and version information to prevent software mismatches and missing prerequisites.
Packages are distributions of software, applications and data. Packages also contain metadata, such as the software’s name, description of its purpose, version number, vendor, checksums, and a list of dependencies necessary for the software to run properly. Upon installation, metadata is stored in a local package database.
All package managers below are given in alphabetical order. The Octave developers do not recommend a certain package manager.
Homebrew [ edit ]
Homebrew was written 2009 by Max Howell and has gained popularity in the Ruby on Rails community and earned praise for its extensibility.
Install GNU Octave using Homebrew:
- Install Xcode via the Mac App Store.
- Install the Command Line Tools by opening a terminal and type
- Follow Homebrew’s installation instructions.
- Ensure brew itself has the latest definitions
- Install Octave [1]
Further reading [ edit ]
The default charting package in Octave is straight qt. However, on the Mac gnuplot often works better. To switch to gnuplot, place the following text in your
Note: If brew complains about:
This is telling you the user permissions for ghostscript are not setup in a way that your user profile can use. You need to change those permissions to your user profile. The following command will repair the issue:
Then run the brew install octave command again.
Note: If brew complains about not having a formula for octave, the following command should fix it:
The command below upgrades Octave and its dependencies to the latest Homebrew-supported versions:
Octave has a built-in GUI (developed using Qt lib) installed by default so that gnuplot and other tools can use it directly. This GUI is always installed when installing Octave using Homebrew.
In case of trouble, see the Homebrew Troubleshooting Guide, which assists in diagnosing problems and craft useful bug reports. Bugs may be reported at Homebrew-core’s issue tracker.
MacPorts [ edit ]
MacPorts, formerly called DarwinPorts, was started in 2002 as part of the OpenDarwin project, with the involvement of a number of Apple Inc. employees including Landon Fuller, Kevin Van Vechten, and Jordan Hubbard.
Install GNU Octave using MacPorts:
- Install Xcode via the Mac App Store.
- Install the Command Line Tools by opening a terminal and type
- Follow MacPorts’ installation instructions.
- Update your installation
- Install Octave
Spack [ edit ]
Spack is a package management tool that supports the installation of multiple versions of software on macOS and other operating systems. It was created 2013 by Todd Gamblin and is currently being updated and developed by a large list of contributors (mainly via GitHub).
Install GNU Octave using Spack:
- Install Xcode via the Mac App Store.
- Install the Command Line Tools by opening a terminal and type
- Follow Spack tutorial.
- Update Spack by going to the local Spack repository (develop branch) folder and run
- Install Octave
- To use Octave we need to first load the package
In case of trouble, please visit the Spack repo issues list, and browse through Octave related issues by writing is:issue octave in the filters box.
Create a launcher app with AppleScript [ edit ]
Open the «AppleScript Editor» application and write the following text in the editor window:
(e.g. Homebrew installs Octave to /usr/local/bin/octave by default) or if Octave is in your default path:
or if you wish to start the GUI by default, without a terminal:
GNU Octave
Описание
Версия 4.0.3 GNU Octave для macOS предоставлена бесплатно на нашем архиве. Наш встроенный антивирус просканировал эту загрузку и признал ее как надежную для скачивания.
Программа относится к категории Образование. ПО также имеет название «Octave». ID для GNU Octave для macOS является org.octave.
Последняя версия файла установки, доступная для скачивания, требует 19.9 MB на вашем диске. Установочный файл программы известен как octave-3.8.2.tar.gz. Самые популярные версии ПО: 3.8 и 3.4. Эта бесплатная программа для Mac OS X принадлежит John W. Eaton.
GNU Octave is a high-level interpreted language, primarily intended for numerical computations. It provides capabilities for the numerical solution of linear and nonlinear problems, and for performing other numerical experiments. It also provides extensive graphics capabilities for data visualization and manipulation.
Мы предлагаем оценить другие macOS программы, такие как DataGraph, LXVII или Magic Number, которые часто используются вместе с GNU Octave.
How do you install Octave packages on Mac OS El Capitan?
I tried installing packages (package io from Octave Forge) on Octave on a Macbook Air. Specifically with the following command pkg install -forge io . But it doesn’t seem to work, and the following error is printed out
I have tried the following instructions:
- code-select —install from the Terminal window to install the command line tools Install MacPorts for Mac. This is a standard installer that you can download from Macports.
- sudo port install gcc48 —> This is a Fortran compiler, which is necessary for installing octave-general
- sudo port install octave-general [NOTE: THIS TOOK A VERY LONG TIME, and I had to disable Spotlight indexing. Hours on a Macbook Pro]
- sudo port install octave-control
- sudo port install octave-signal
However it just stopped and the following is printed at sudo port install octave-general :
I was wondering how you can install Octave packages on MacOS?
2 Answers 2
Don’t make things too complex!
There are a lot of dependencies (100+) for octave however!
NOTE: I first installed XCode via a «Regular GUI Application Install».
You might try using MacPorts there is a fairly easy install page with https://www.macports.org/install.php and also https://wiki.octave.org/Octave_for_macOS.
You need to first install MacPorts! and then you can run.
then to test if it worked type
First, your versions of everything are old, it worked for me with the latest: MacOS 10.13 + Xcode 9.2 + clang-4.0 (4.0.1 from Anaconda) + Octave 4.0.3 .
For Octave 4.0.3 I used their MacOS bundle, not MacPorts. It’s super fast, it includes GUI, and there’s none of the delay with gcc48 you mentioned.
pkg install -forge io works for me (gets the package directly from Octave-Forge)
as to the MacPorts method, I can’t speak for it, I never needed to use that (I use brew instead, but not for octave), it looks more painful and more error-prone. I expect using Octave’s own Octave-Forge for package installs should be cleaner than ports, looking at your output from sudo port install octave-* . Warning: xcodebuild exists but failed to execute Warning: Xcode does not appear to be installed looks like the wrong version of xcode is installed. So if you really wish to keep debugging that, look at the many solutions on SO or Apple to xcode. (You might only have command-line tools for Xcode, not a full Xcode install)
But honestly please update to the latest versions of everything (as above) and try again using only the Octave MacOS bundle and Octave-Forge not MacPorts, it should work.
FYI in general I was told back around 2015 people switched from MacPorts to brew, brew is said to be less brittle and easier-to-use. Similarly, Anaconda compiler tools work better than gcc/g++.