GNU Octave is primarily developed on GNU/Linux and other POSIX conformant systems. GNU Octave for macOS is readily available using package managers such as Fink, MacPorts, and Homebrew. An unofficial native macOS 'Octave.app' distribution of GNU Octave is also available as either a dmg or Homebrew cask.
![]()
About version numbers (as of December 2018):
Applications can also be distributed through the Mac App Store. Qt 5 aims to stay within the app store sandbox rules. Macdeployqt (bin/macdeployqt) can be used as a starting point for app store deployment. Qt for macOS - Deployment; Note: For selling applications in the macOS App Store, special rules apply. In order to pass validation, the. I prefer to build Qt from source. I have been trying to build Qt 4.8.5 on Mac OS X 10.9 (Mavericks). I managed in the end, but it took a few tweaks.
Installing a macOS App Bundle[edit]
Good progress has been made on creating a reliable App bundle for Octave on macOS. Approaches using MacPorts and Homebrew have been considered. The Octave.app project provides an unofficial ready-to-use macOS app bundle installer based on Homebrew.
To compile and create the application bundle yourself, see the instructions on how to create the bundle using Homebrew. (See instructions on how to create a bundle using Macports for reference, but this approach is not currently being used.)
Octave 4.2.2 VM installer for Mac OS X 10.10 Yosemite, 10.11 El Capitan, 10.12 Sierra, 10.13 High Sierra[edit]
Point and click configuration files that cause Vagrant to automatically download and configure an Octave 4.2.2 server VM under OS X including 10.10 Yosemite, 10.11 El Capitan, 10.12 Sierra and 10.13 High Sierra. The install process pulls down Octave 4.2.2 from the repository. All software used in running this server VM is open source (Vagrant, VirtualBox, Octave). The Octave GUI and graphics will display seamlessly on the Mac via the Mac's native X-windows server, while the server runs headless. The recommended configuration ensures that by default user files written by the GUI are in a folder shared with the Mac's filesystem, and the VM suspends automatically when the user quits the GUI. Any edited files then persist in the Mac's shared folder.
Binary installer for OS X 10.9.1[edit]
A binary installer for Mavericks can be found on Octave Forge.
This installer will install all binaries for GNU Octave 3.8.0 itself and its dependencies under
And will create two entries in the Applications folder
Which will start Octave in CLI and GUI mode respectively, these are just small wrappers containing a startup script and an icon to allow launching Octave from the Finder.
If you wish to uninstall GNU Octave 3.8.0 and all other software installed by this installer you can simply move the three folders listed above to the Trash. Notice that you will need to authenticate with an administrator password to be allowed to do so.
You may need to override Gatekeeper to allow installation. You may find instructions about how to do this on this page in the section labeled 'How to open an app from a unidentified developer and exempt it from Gatekeeper'.
In short:
This installer is known to work on OS X 10.9.1, you may try, at your own risk, to use it for installing on other system versions but it is not guaranteed to work.
Manual Installation from Source[edit]
The page Octave for Mac provides minimalistic instructions for building Octave from source on macOS. Additional support for those who need assistance in building Octave is available.
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.Operating systems based on Linux and other Unix-like systems typically consist of hundreds or even thousands of distinct software packages; in the former case, a package management system is a convenience, in the latter case it becomes essential.
There are three reputable package managers available for macOS. GNU Octave for macOS is readily available using package managers such as Fink, MacPorts, and Homebrew.
The most recent version of Fink's Octave package, MacPorts' Octave port, and Homebrew's Octave formula are generally not the same. Please check the web sites for these package managers to determine if the version of Octave you desire is available.
Xcode Dependency[edit]
Each package manager requires that Xcode be installed. In part this is to provide an initial set of development tools. It *may* be possible to substitute the Mac OS X gcc Installer by Kenneth Reitz, but this alternative has not yet been tested. If any curious/industrious users experiment with using Kenneth's solution over Apple's Xcode, please let Octave's developers know of the results. Or, if you prefer, just update the itemized list below. It is recommended that users with Xcode already installed avoid installing Kenneth's solution, as it may break your existing Xcode installation.
Fink[edit]
The Fink project is an effort to port and package open-source Unix programs to macOS. Fink uses dpkg and APT (Debian's package management system), as well as its own frontend program, fink (which is implemented as a set of Perl modules).
Simple Installation Instructions[edit]
For the
doc() function to be supported by Octave, either the unversioned octave , octave-atlas , or octave-ref package must be installed. Essentially, those features used at run-time which don't have a version somewhere in the file path are included in these packages.
MacPorts[edit]
MacPorts, formerly called DarwinPorts, is a package management system that simplifies the installation of software on the macOS and Darwin operating systems. It is a free/open source software project to simplify installation of other free/open source software. Similar in aim and function to Fink and the BSDs' ports collections, 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.
Following instructions are made for MacPorts 2.3.4 on Mac OS X 10.11 (El Capitan) and GNU Octave 4.0.3 in the first place:
MacPorts Installation[edit]
You have to install MacPorts prior to the Octave installation anyway.
Basic Installation Instructions[edit]
Custom Installation Instructions[edit]
For best performance, variability and reliability the custom installation is suggested.
Preliminary Port Installations
Octave Installation
Detailed Installation Instructions[edit]
To get detailed instructions from start to end on one page, refer Hani's Omnium Gatherum.
Update problems[edit]
If an update fails you may chosen incompatible variants in a prior installation. See Octave 4 upgrade via MacPorts fails after “port upgrade outdated” for details
Homebrew[edit]
Homebrew is a package management system that simplifies the installation of software on macOS. It is a free/open source software project to simplify installation of other free/open source software. It is similar in aim and function to MacPorts and Fink. It was written by Max Howell and has gained popularity in the Ruby on Rails community and earned praise for its extensibility.
Simple Installation Instructions[edit]
First, install Homebrew:
To install Octave, update to the latest package definitions with
brew update , and then install Octave.
First we ensure brew itself has the latest definitions:
Then, we install Octave:
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 ~/.octaverc file:
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 command again for octave.
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 many dependencies which will be downloaded and installed prior to Octave. The entire installation process can take a few hours, but precompiled binary packages called 'bottles' are available with default options for Octave and many of its dependencies.
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.
Create a launcher app with AppleScript[edit]
or if Octave is in your default path:
or if you wish to start the GUI by default, without a terminal:
(e.g. Homebrew installs Octave to '/usr/local/bin/octave' by default)
![]()
To change the application icon
Retrieved from 'https://wiki.octave.org/wiki/index.php?title=Octave_for_macOS&oldid=12253'
Build Kubernetes-ready applications on your desktopDocker Desktop is an application for MacOS and Windows machines for the building and sharing of containerized applications and microservices.Docker Desktop delivers the speed, choice, and security you need for designing and delivering these containerized applications on your desktop. Docker Desktop includes, and version synchronization to production Docker Engines. Docker Desktop allows you to leverage and your choice of languages and tools.
Development workflows leverage Docker Hub to extend your development environment to a secure repository for rapid auto-building, continuous integration, and secure collaboration.
![]() Comments are closed.
|
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
January 2023
Categories |