Difference between revisions of "Create a MacOS X App Bundle Using Homebrew"

From Octave
Jump to navigation Jump to search
Line 14: Line 14:
  
 
==Creating the App Bundle and Disk Image==
 
==Creating the App Bundle and Disk Image==
The [https://raw.githubusercontent.com/schoeps/octave_installer/master/install_octave.sh script] at github
+
The script "[https://raw.githubusercontent.com/schoeps/octave_installer/master/install_octave.sh install_octave.sh]" from the github repository
  
 
https://github.com/schoeps/octave_installer
 
https://github.com/schoeps/octave_installer
  
 
will ask some questions, e.g. regarding the installation path ({{Codeline|/Applications/Octave.app}} is recommended) or whether Octave should be compiled with or without graphical user interface and finally whether a disk image should be created or not. If you choose to install to the Applications folder then the script needs to run with administration rights.
 
will ask some questions, e.g. regarding the installation path ({{Codeline|/Applications/Octave.app}} is recommended) or whether Octave should be compiled with or without graphical user interface and finally whether a disk image should be created or not. If you choose to install to the Applications folder then the script needs to run with administration rights.
 +
 +
The script installs all necessary dependencies of octave via [http://brew.sh homebrew]; it's using [http://www.openblas.net openblas] instead of Apple's native implementation.
  
 
==Known limitations==
 
==Known limitations==

Revision as of 06:13, 16 May 2016

Introduction

This tutorial explains how to build Octave.app (version >4) using Homebrew. It is recommended that users either

or use a package manager as described here. The former App bundle (version <=3.8) was created using Macports and called Octave from /usr/opt/local which is problematic with recent OS X (>=10.10). Therefore Octave.app is now installed in /Applications/Octave.app using homebrew. It does not interfere with local installations or package managers.

Prerequisites

  • Install Xcode via the Mac App Store.
  • Install the command line tools by xcode-select --install.
  • Optional: install XQuartz, e.g. if you want to use Gnuplot with X11 backend.

Creating the App Bundle and Disk Image

The script "install_octave.sh" from the github repository

https://github.com/schoeps/octave_installer

will ask some questions, e.g. regarding the installation path (/Applications/Octave.app is recommended) or whether Octave should be compiled with or without graphical user interface and finally whether a disk image should be created or not. If you choose to install to the Applications folder then the script needs to run with administration rights.

The script installs all necessary dependencies of octave via homebrew; it's using openblas instead of Apple's native implementation.

Known limitations

Plotting should work with gnuplot and qt backends. However, sometimes it takes a long time to initialize.