Skip to content

Instantly share code, notes, and snippets.

@scuxiayiqian
Last active June 3, 2021 18:40
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save scuxiayiqian/c8ea9452f86dc1918de92b136e772c80 to your computer and use it in GitHub Desktop.
Save scuxiayiqian/c8ea9452f86dc1918de92b136e772c80 to your computer and use it in GitHub Desktop.
Install gnuplot and aquaterm on OSX 10.11

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

@Prototypemax
Copy link

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

@Yuya-Nakata
Copy link

I see same problem.
i don't know what resolve it...

@richardj311
Copy link

The Brew implementation of gnuplot is not really usable because it no longer supports the necessary terminals (e.g., you can no longer provide --with-aquaterm or --with-x11 during installation).

However, the MacPorts package manager has a usable install for gnuplot (it's safe to have both Brew and MacPorts installed). https://www.macports.org/

After installing AquaTerm, I used the following to install gnuplot, and all is working as expected:

sudo port install gnuplot +aquaterm

I'm using macOS Mojave 10.14.4.

@sndik16
Copy link

sndik16 commented Dec 19, 2019

Thank you richardj311, this solution worked for me
I am on El Capitain

@tlegen-k
Copy link

The Brew implementation of gnuplot is not really usable because it no longer supports the necessary terminals (e.g., you can no longer provide --with-aquaterm or --with-x11 during installation).

However, the MacPorts package manager has a usable install for gnuplot (it's safe to have both Brew and MacPorts installed). https://www.macports.org/

After installing AquaTerm, I used the following to install gnuplot, and all is working as expected:

sudo port install gnuplot +aquaterm

I'm using macOS Mojave 10.14.4.

Thanks a lot. That worked on macOS Catalina 10.15.4

@gasilva
Copy link

gasilva commented Jun 3, 2021

The Brew implementation of gnuplot is not really usable because it no longer supports the necessary terminals (e.g., you can no longer provide --with-aquaterm or --with-x11 during installation).

However, the MacPorts package manager has a usable install for gnuplot (it's safe to have both Brew and MacPorts installed). https://www.macports.org/

After installing AquaTerm, I used the following to install gnuplot, and all is working as expected:

sudo port install gnuplot +aquaterm

I'm using macOS Mojave 10.14.4.

The problem is that gd2 did not install. It stops when configuring.

@gasilva
Copy link

gasilva commented Jun 3, 2021

The Brew implementation of gnuplot is not really usable because it no longer supports the necessary terminals (e.g., you can no longer provide --with-aquaterm or --with-x11 during installation).

However, the MacPorts package manager has a usable install for gnuplot (it's safe to have both Brew and MacPorts installed). https://www.macports.org/

After installing AquaTerm, I used the following to install gnuplot, and all is working as expected:

sudo port install gnuplot +aquaterm

I'm using macOS Mojave 10.14.4.

I am using BigSur

The gd2 was not installing at all. There was problem when configuring.
So I could not install gnuplot with macports

I solved it by doing

sudo rm -rf /Library/Developer/CommandLineTools
sudo xcode-select --install

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment