Binary versions of Gnuplot for macOS: Difference between revisions

From csml-wiki.northwestern.edu
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 16: Line 16:
<br />
<br />


<b>[mailto:erik.luijten@gmail.com Please report any problems.]</b>
Details (no need to read unless you experience issues and/or are curious):


<b>Details</b> (no need to read unless you experience issues and/or are curious):


<ul>
<ul>
Line 23: Line 26:


<li>Older versions below all require the X11 library and hence are not recommended. Gnuplot versions 5.4.1 and 5.4.0 were compiled on OS X 10.15.6 (Catalina) and Gnuplot versions up to 5.2.8 were compiled on OS X 10.11.6 (El Capitan). All these versions were confirmed to work also on macOS 10.13 (High Sierra), 10.14 (Mojave), and 10.15 (Catalina).</li>
<li>Older versions below all require the X11 library and hence are not recommended. Gnuplot versions 5.4.1 and 5.4.0 were compiled on OS X 10.15.6 (Catalina) and Gnuplot versions up to 5.2.8 were compiled on OS X 10.11.6 (El Capitan). All these versions were confirmed to work also on macOS 10.13 (High Sierra), 10.14 (Mojave), and 10.15 (Catalina).</li>

<li><b>Prior to installing any of the older versions, you MUST install [http://xquartz.macosforge.org/landing/ X11/XQuartz].</b> Do not forget to reboot your computer after the installation, or the X11 terminal within Gnuplot will not work.</li>

<li>Note for users of the "png" terminal: On some versions of OS X, such as Catalina, the "Arial" font has been moved and you will receive an error message when you do "set terminal png". To fix this, issue the following command before starting gnuplot:

<tt>
export GDFONTPATH=/Library/Fonts:/Library/Fonts/Microsoft:/System/Library/Fonts:/System/Library/Fonts/Supplemental
</tt>
</li>


<li>All versions provided here include the GNU Readline library.</li>
<li>All versions provided here include the GNU Readline library.</li>
Line 40: Line 34:
<li>Simply download the package from one of the links below and install. You can then invoke gnuplot from a terminal window via <tt>/usr/local/bin/gnuplot</tt></li>
<li>Simply download the package from one of the links below and install. You can then invoke gnuplot from a terminal window via <tt>/usr/local/bin/gnuplot</tt></li>
-->
-->

<li>[mailto:erik.luijten@gmail.com Please report any problems.]</li>


<li><b>Current version (recommended):</b>
<li><b>Current version (recommended):</b>
Line 52: Line 44:
</li>
</li>


<li>Older versions. Please note that prior to installing any of the older versions, you MUST install [http://xquartz.macosforge.org/landing/ X11/XQuartz].</b> Do not forget to reboot your computer after the installation, or the X11 terminal within Gnuplot will not work.</li>
<li>Older versions (versions prior to 5.2.5 do not include the PNG, JPEG and GIF terminals)
</li>
<ul>
<ul>
<li>[https://pergamon.ms.northwestern.edu/Download/Gnuplot/gnuplot-5.4.1.pkg 5.4.1] (December 15, 2020)</li>
<li>[https://pergamon.ms.northwestern.edu/Download/Gnuplot/gnuplot-5.4.1.pkg 5.4.1] (December 15, 2020)</li>
Line 61: Line 52:
<li>[https://pergamon.ms.northwestern.edu/Download/Gnuplot/gnuplot-5.2.6.pkg 5.2.6] (January 1, 2019)</li>
<li>[https://pergamon.ms.northwestern.edu/Download/Gnuplot/gnuplot-5.2.6.pkg 5.2.6] (January 1, 2019)</li>
<li>[https://pergamon.ms.northwestern.edu/Download/Gnuplot/gnuplot-5.2.5.pkg 5.2.5] (October 7, 2018)</li>
<li>[https://pergamon.ms.northwestern.edu/Download/Gnuplot/gnuplot-5.2.5.pkg 5.2.5] (October 7, 2018)</li>
<li>[https://pergamon.ms.northwestern.edu/Download/Gnuplot/gnuplot-5.2.4.pkg 5.2.4]</li>
<li>[https://pergamon.ms.northwestern.edu/Download/Gnuplot/gnuplot-5.2.4.pkg 5.2.4] (does not include PNG, JPEG, and GIF terminal)</li>
<li>[https://pergamon.ms.northwestern.edu/Download/Gnuplot/gnuplot-5.2.3.pkg 5.2.3]</li>
<li>[https://pergamon.ms.northwestern.edu/Download/Gnuplot/gnuplot-5.2.3.pkg 5.2.3] (does not include PNG, JPEG, and GIF terminal)</li>
<li>[https://pergamon.ms.northwestern.edu/Download/Gnuplot/gnuplot-5.2.2.pkg 5.2.2]</li>
<li>[https://pergamon.ms.northwestern.edu/Download/Gnuplot/gnuplot-5.2.2.pkg 5.2.2] (does not include PNG, JPEG, and GIF terminal)</li>
</ul>
</ul>


</ul>
<li>Information for the technically inclined: to facilitate installation and improve portability, the gnuplot binary was statically linked to the readline, gd, png16, freetype, fontconfig, and PDFlib-lite libraries.</li>

Trouble-shooting
<ul>


<li>If you receive an error message "dyld: Library not loaded: /opt/X11/lib/libfontconfig.1.dylib", please make sure you have installed the most recent version of [http://xquartz.macosforge.org/landing/ X11/XQuartz].</li>
<li>If you receive an error message "dyld: Library not loaded: /opt/X11/lib/libfontconfig.1.dylib", please make sure you have installed the most recent version of [http://xquartz.macosforge.org/landing/ X11/XQuartz].</li>

<li>Note for users of the "png" terminal: On some versions of OS X, such as Catalina, the "Arial" font has been moved and you will receive an error message when you do "set terminal png". To fix this, issue the following command before starting gnuplot:

<tt>
export GDFONTPATH=/Library/Fonts:/Library/Fonts/Microsoft:/System/Library/Fonts:/System/Library/Fonts/Supplemental
</tt>
</li>


</ul>
</ul>

Revision as of 13:48, 20 January 2025

Binary versions of Gnuplot for macOS.

One-step installation for ARM-based Macs: Download Gnuplot 6.0.2 and install. No additional libraries required.


One-step installation for Intel-based Macs: Coming soon! Meanwhile please download Gnuplot 5.4.1 below. Note that this also requires the installation of XQuartz.


Please report any problems.


Details (no need to read unless you experience issues and/or are curious):

  • The version for ARM processors was compiled on macOS 15.2 (Sequoia) but was confirmed to work on older macOS versions as well, including macOS 11.2.3 (Big Sur).
  • Older versions below all require the X11 library and hence are not recommended. Gnuplot versions 5.4.1 and 5.4.0 were compiled on OS X 10.15.6 (Catalina) and Gnuplot versions up to 5.2.8 were compiled on OS X 10.11.6 (El Capitan). All these versions were confirmed to work also on macOS 10.13 (High Sierra), 10.14 (Mojave), and 10.15 (Catalina).
  • All versions provided here include the GNU Readline library.
  • Current version (recommended):
  • Older versions. Please note that prior to installing any of the older versions, you MUST install X11/XQuartz. Do not forget to reboot your computer after the installation, or the X11 terminal within Gnuplot will not work.
    • 5.4.1 (December 15, 2020)
    • 5.4.0 (September 23, 2020)
    • 5.2.8 (December 2, 2019)
    • 5.2.7 (May 31, 2019)
    • 5.2.6 (January 1, 2019)
    • 5.2.5 (October 7, 2018)
    • 5.2.4 (does not include PNG, JPEG, and GIF terminal)
    • 5.2.3 (does not include PNG, JPEG, and GIF terminal)
    • 5.2.2 (does not include PNG, JPEG, and GIF terminal)

Trouble-shooting

  • If you receive an error message "dyld: Library not loaded: /opt/X11/lib/libfontconfig.1.dylib", please make sure you have installed the most recent version of X11/XQuartz.
  • Note for users of the "png" terminal: On some versions of OS X, such as Catalina, the "Arial" font has been moved and you will receive an error message when you do "set terminal png". To fix this, issue the following command before starting gnuplot: export GDFONTPATH=/Library/Fonts:/Library/Fonts/Microsoft:/System/Library/Fonts:/System/Library/Fonts/Supplemental