First you should have homebrew installed on your mac. How to install homebrew
Before installing gnuplot, you should install Aqua first. Go here to download the AquaTerm-1.1.1.dmg then install it.
If you have ever installed gnuplot before, please uninstall it first.
$ brew uninstall gnuplot
$ brew update && brew upgrade
$ brew tap homebrew/science
$ brew info gnuplot
gnuplot: stable 5.0.3 (bottled), HEAD
Command-driven, interactive function plotting
http://www.gnuplot.info
Not installed
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/gnuplot.rb
==> Dependencies
Build: pkg-config ✘
Required: fontconfig ✔, jpeg ✔, libpng ✔, libtiff ✔, readline ✔
Recommended: gd ✔, lua ✔
Optional: pdflib-lite ✘, qt ✘, wxmac ✘
==> Options
--with-aquaterm
Build with AquaTerm support
--with-cairo
Build the Cairo based terminals
--with-pdflib-lite
Build with pdflib-lite support
--with-qt
Build with qt support
--with-test
Verify the build with make check
--with-tex
Build with LaTeX support
--with-wxmac
Build wxmac support. Need with-cairo to build wxt terminal
--with-x11
Build with x11 support
--without-gd
Build without gd support
--without-lua
Build without the lua/TikZ terminal
--HEAD
Install HEAD version
Finally, install gnuplot like this:
$ brew install gnuplot --with-aquaterm --with-qt4 --with-test
Hi!
I tried
brew install gnuplot --with-aquaterm --with-qt
and i got the following error:Error: invalid option: --with-aquaterm
. Do you know why? I am using Mac OS Mojave.Thank you very much :)
PM