For those who have problems installing Octave on OSX Yosemite, this is a simple guide.

First of all you need HomeBrew

  1. Open a terminal and install homebrew :
    ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  1. Update and check if homebrew is working fine.
    brew update
    brew doctor
  1. Install XQuartz which is a X11 substitute for recent OSX distributions XQuartz

  2. Install Octave with Homebrew

    brew tap homebrew/science
    brew update
    brew install octave --with-x11

Install fltk for Gnuplot (used by Octave for graph visualization)

    brew install gnuplot --with-x11