Installation and configuration of gnuplot in Mac OS X (images such as set term PNG cannot be output)

Source: Internet
Author: User

Today, gitstats is used to analyze the activity information of git Repo. It finds that gnuplot is used internally, and PNG images cannot be generated. The shell that enters gnuplot finds that PNG output cannot be set. As follows:

Gnuplot> set term PNG ^ unknown or ambiguous terminal type; type just 'set Terminal' for a list

Or do not change the type to unknown.

This is because OS x is not pre-installed with X11 now (see the official message http://support.apple.com/kb/HT5293), and then I used the following method to install successfully.

1. Install X11

Http://xquartz.macosforge.org/landing/

DMG package. Download and install it.

2. Install gnuplot

Http://www.miscdebris.net/blog/2009/09/16/install-gnuplot-on-mac-os-x/

Download and drag the DMG package

Finally, use gitstats to generate a webpage (to be honest, this webpage is really ugly)

Installation and configuration of gnuplot in Mac OS X (images such as set term PNG cannot be output)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.