Setenv ( "GNUTERM", "X11" ) # below is optional changes the prompt to two chevron # and gets rid of the long Octave x.x.x > prompt octaverc file and paste the following: # ~/.octaverc So, in your home directory, create a new. octaverc file to get gnuplot to play nicely with Octave. HOW TO INSTALL OCTAVE ON MAC SIERRA INSTALL# install some Octave dependencies # the update/upgrade command below could take a whileīrew install gcc # or 'brew reinstall gcc' if you have an older gcc without gfortran in it # You may also need to install mactex (see ) # The download here takes a while.īrew install octave -with-x11 you might need to install legacy Java 6 runtime usr/bin/ruby -e "$(curl -fsSL )" # tap the science formulae Next, open up a Terminal and do the following: # install Homebrew if you don't already have it You’ll also need to install XQuartz, so go ahead and download and install that now. Once you’ve installed Xcode, you can install Command Line Tools in Xcode > Preferences > Downloads. If you haven’t already, you’ll need to install Xcode (free in the Mac App Store) and the Command Line Tools. Instead of using the Octave installation package as recommended in the course notes (this results in the problems we’re trying to avoid), I’ll be installing Octave via Homebrew, which fixed a lot of my initial install problems. (Most of this comes from Octave’s wiki with help from a StackOverflow post or two.) This should give you a working Octave install that plays nice with Gnuplot. After twice wasting an hour or so installing Octave for the Stanford Machine Learning class, I decided I should jot this down for posterity or anyone else in a similar position.
0 Comments
Leave a Reply. |
AuthorCarlitos ArchivesCategories |