The recommended approach to installing Octave on a Mac is to use a package manager. There are three package managers which support Octave. They are Fink, Macports, and Homebrew.
Octave is a programming language for scientific computing. Prerequisite You might need homebrew-cask, if you don't have it refer to. Installation Homebrew Octave.app is a project to distribute GNU Octave as a native Mac GUI application, to make it easier to install and use Octave on macOS. Note this is not an official GNU or GNU Octave project.
As this distibutes a compiled version of Octave, installation will be much faster. To run: $ brew tap octave-app/octave-app $ brew cask install octave-app Homebrew official You can also install Octave from the offical homebrew source using the method below. Import the scientific computing packages and install necessary packages: $ brew tap homebrew/science $ brew install gcc $ brew install octave Note: If brew complains about not having a formula for Octave, the following command should fix it: $ brew tap --repair The command below upgrades Octave and its dependencies to the latest Homebrew-supported versions: $ brew update && brew upgrade Octave has many dependencies which will be downloaded and installed prior to Octave. The entire installation process can take a few hours.
Note: On Snow Leopard, Octave requires a X server. If you install without, Homebrew will guide you to the where you can download this. You might find that you need to add: setenv ('GNUTERM', 'X11') to your octaverc file, normally located at /usr/local/share/octave/site/m/startup.
MUSC 208 Octave Install Mac MUSC 208 Lab 2 - Macintosh Install Octave software Updated text in bold green font. Install TextWrangler Then from the TextWrangler menu choose Install Command Line Tools Install Octave Macintosh 10.7 10.8 10.9 - Octave 3.6.4 1. Download and Install XCode 5.02 After the install completes you need to install the XCode command line tools from Preferences, Download Tab 2. Install XQuartz 2.7.5 at 3. Install Homebrew Copy this ruby commnd found on the Homebrew page. Open Terminal, paste the ruby command, and type enter. Homebrew should install itself.
![Sierra Sierra](https://m.eet.com/media/1204173/GNU_Octave_fig1.jpg)
Continue following the instructions at: You've already done steps 1 and 2. Brew tap homebrew/science brew install octave Do step 4. Brew install gnuplot DO NOT do step 5. Instead do this. 5a) Copy the text of ' into a new TextWrangler document. Save it to the Desktop as playsamples.m. Important: for this next command to work you must have saved playsamples.m to the Desktop.
Double check. Execute this command in the Terminal cp ~/Desktop/playsamples.m /usr/local/Cellar/octave/3.6.4/share/octave/site/api-v48+/m 5b) Copy the text of ' into a new TextWrangler document.
Save it to the Desktop as octaverc (no.extension) Important: for this next command to work you must have saved octaverc to the Desktop. Double check.
Execute this command in the Terminal cp ~/Desktop/octaverc /usr/local/Cellar/octave/3.6.4/share/octave/site/m/startup Do Step 6. Reboot Do Step 7 Test playsamples Open Terminal Type octave. At the octave prompt execute this command TextWrangler should open with a new document. Delete all existing text and copy/paste the following text into musc208ocataveTest.m.
SR = 44100; T = 1/SR; f = 440; n = 0: SR-1; nT = n*T; wav = sin( 2 * pi * f * nT ); plot ( wav ( 1: 500 ) ); playsamples( wav ); Save and test. You should hear the sound and see the plot.