Binary versions of Gnuplot for OS X: Difference between revisions

From csml-wiki.northwestern.edu
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(32 intermediate revisions by the same user not shown)
Line 1: Line 1:
Binary versions of Gnuplot for OS X/macOS. These are primarily intended for users who normally work on Linux and wish to replicate their tools on a Macintosh.
Binary versions of Gnuplot for OS X/macOS. These are primarily intended for users who normally work on Linux and wish to replicate their tools on a Macintosh.

<div style="background-color: cyan; border-style: solid;">
<b>
== Quick two-step summary:==

<ol style="font-size:18px">
<li>Install [https://xquartz.macosforge.org/landing/ X11/XQuartz]. (Note: A reboot is required after this step.)</li>
<li>Install [https://pergamon.ms.northwestern.edu/Download/Gnuplot/gnuplot-5.4.1.pkg Gnuplot]</li>
</ol>
</b>

</div>

<br />

<div style="background-color: orange; border-style: solid;">

<b>
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:
</b>

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

</div>

Details:


<ul>
<ul>


<li>Compiled on OS X 10.11.6 (El Capitan). Confirmed to work also on macOS 10.13 (High Sierra).</li>
<li>Compiled on OS X 10.15.6 (Catalina).<br>
Versions up to 5.2.8 were compiled on OS X 10.11.6 (El Capitan) and were confirmed to work also on macOS 10.13 (High Sierra), 10.14 (Mojave), and 10.15 (Catalina).</li>


<li>Prior to installing this, you need to install X11/XQuartz (http://xquartz.macosforge.org/landing/).</li>
<li><b>Prior to installing this, you need to 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>The versions provided here include the GNU Readline library.</li>
<li>The versions provided here include the GNU Readline library.</li>
Line 11: Line 40:
<li>In addition to the standard terminals, the PDF terminal is included as well, which uses the [http://www.pdflib.com/download/free-software/pdflib-lite-7 PDFLlib Lite] library. To my understanding, this link to the source code satisfies the [http://www.pdflib.com/fileadmin/pdflib/pdf/license/PDFlib-Lite-license.pdf PDFlib Lite license requirements]. Note: you do <b>NOT</b> need to download this library to use the gnuplot packages below.</li>
<li>In addition to the standard terminals, the PDF terminal is included as well, which uses the [http://www.pdflib.com/download/free-software/pdflib-lite-7 PDFLlib Lite] library. To my understanding, this link to the source code satisfies the [http://www.pdflib.com/fileadmin/pdflib/pdf/license/PDFlib-Lite-license.pdf PDFlib Lite license requirements]. Note: you do <b>NOT</b> need to download this library to use the gnuplot packages below.</li>


<li>In version 5.2.5, I also included the GIF, JPEG and PNG terminals. All libraries needed are included; please [mailto:erik.luijten@gmail.com let me know] if you encounter difficulties.</li>
<li>In version 5.2.5 and up, I have also included the GIF, JPEG and PNG terminals. All libraries needed are included; please [mailto:erik.luijten@gmail.com let me know] if you encounter difficulties.</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>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 download problems.]</li>


<li><b>Current version (recommended):</b>
<li><b>Current version (recommended):</b>
<!--<div style="background-color: orange; border-style: solid;">
<b>Note: In the most recent versions of Chrome, you must right-click and choose "Save Link As..."</b>
</div>-->
<ul>
<ul>
<li>[http://ariadne.ms.northwestern.edu/Download/Gnuplot/gnuplot-5.2.5.pkg 5.2.5]</li>
<li><b>[https://pergamon.ms.northwestern.edu/Download/Gnuplot/gnuplot-5.4.1.pkg 5.4.1] (December 15, 2020)</b></li>
</ul>
</ul>
</li>
</li>


<li>Older versions (versions prior to 5.2.5 do not include the PNG, JPEG and GIF terminals)
<li>Older versions:
</li>
</li>
<ul>
<ul>
<li>[http://ariadne.ms.northwestern.edu/Download/Gnuplot/gnuplot-5.2.2.pkg 5.2.2]</li>
<li>[https://pergamon.ms.northwestern.edu/Download/Gnuplot/gnuplot-5.4.0.pkg 5.4.0] (September 23, 2020)</li>
<li>[http://ariadne.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.8.pkg 5.2.8] (December 2, 2019)</li>
<li>[http://ariadne.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.7.pkg 5.2.7] (May 31, 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.4.pkg 5.2.4]</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.2.pkg 5.2.2]</li>
</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>

<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>

</ul>
</ul>


<!--
<!--
<li>Installation procedure is not very sophisticated, but the resulting installation will be correct. First download [http://ariadne.ms.northwestern.edu/Download/Gnuplot/gnuplot_osx_501.zip gnuplot_osx_501.zip] and save to <tt>/tmp</tt>. Then:
<li>Installation procedure is not very sophisticated, but the resulting installation will be correct. First download [http://pergamon.ms.northwestern.edu/Download/Gnuplot/gnuplot_osx_501.zip gnuplot_osx_501.zip] and save to <tt>/tmp</tt>. Then:
<pre>
<pre>
cd /usr/local
cd /usr/local
Line 40: Line 84:
<li>Note: Older version still available: [http://ariadne.ms.northwestern.edu/Download/Gnuplot/gnuplot_osx_465.zip version 4.6.5], compiled on OS X 10.9.3 (Mavericks)</li>
<li>Note: Older version still available: [http://ariadne.ms.northwestern.edu/Download/Gnuplot/gnuplot_osx_465.zip version 4.6.5], compiled on OS X 10.9.3 (Mavericks)</li>
-->
-->

[mailto:erik.luijten@gmail.com Report problems in downloading.]

Latest revision as of 19:22, 5 December 2021

Binary versions of Gnuplot for OS X/macOS. These are primarily intended for users who normally work on Linux and wish to replicate their tools on a Macintosh.

Quick two-step summary:

  1. Install X11/XQuartz. (Note: A reboot is required after this step.)
  2. Install Gnuplot


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

Details:

  • Compiled on OS X 10.15.6 (Catalina).
    Versions up to 5.2.8 were compiled on OS X 10.11.6 (El Capitan) and were confirmed to work also on macOS 10.13 (High Sierra), 10.14 (Mojave), and 10.15 (Catalina).
  • Prior to installing this, you need to install X11/XQuartz. Do not forget to reboot your computer after the installation, or the X11 terminal within Gnuplot will not work.
  • The versions provided here include the GNU Readline library.
  • In addition to the standard terminals, the PDF terminal is included as well, which uses the PDFLlib Lite library. To my understanding, this link to the source code satisfies the PDFlib Lite license requirements. Note: you do NOT need to download this library to use the gnuplot packages below.
  • In version 5.2.5 and up, I have also included the GIF, JPEG and PNG terminals. All libraries needed are included; please let me know if you encounter difficulties.
  • Simply download the package from one of the links below and install. You can then invoke gnuplot from a terminal window via /usr/local/bin/gnuplot
  • Please report download problems.
  • Current version (recommended):
    • 5.4.1 (December 15, 2020)
  • Older versions (versions prior to 5.2.5 do not include the PNG, JPEG and GIF terminals)
  • 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.
  • 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.