Last active
July 5, 2019 14:57
-
-
Save Danilo-Araujo-Silva/a5a463e62be79eb7105441d88463cc91 to your computer and use it in GitHub Desktop.
Install Octave with gui and gnuplot on macOS Mojave
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install homebrew, if is not already installed: | |
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
# Update and upgrade homebrew, if needed: | |
brew update && brew upgrade | |
# Install XCode (it is a long download, it is an Octave dependency) | |
# Go to Apple Store and install. | |
# Install Aquaterm | |
# Download and install it from: https://sourceforge.net/projects/aquaterm/ | |
# Install gnuplot with some extra parameters | |
brew install gnuplot --with-aquaterm --with-qt | |
# Finally install octave | |
brew install octave --with-qt | |
# Add the following some configurations in your ~/.octaverc file: | |
cat <<EOT >> ~/.octaverc | |
setenv('GNUTERM','qt') | |
graphics_toolkit("gnuplot") | |
EOT | |
# Finanlly we are done! Ufa ;) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It could be related to this post that the Homebrew devs wrote. I've been trying to use "--with-qt"
but I believe that doesn't work either for the same reasons.
Here's a link to the post:Homebrew/homebrew-core#31510