{"id":190,"date":"2010-03-25T13:37:22","date_gmt":"2010-03-25T12:37:22","guid":{"rendered":"http:\/\/www.miscdebris.net\/blog\/?p=190"},"modified":"2010-09-22T19:28:43","modified_gmt":"2010-09-22T18:28:43","slug":"install-gnuplot-4-4-0-on-mac-os-x","status":"publish","type":"post","link":"http:\/\/www.miscdebris.net\/blog\/2010\/03\/25\/install-gnuplot-4-4-0-on-mac-os-x\/","title":{"rendered":"Install Gnuplot 4.4.0 on Mac OS X"},"content":{"rendered":"<p>In a former <a href=\"http:\/\/www.miscdebris.net\/blog\/2009\/09\/16\/install-gnuplot-on-mac-os-x\/\" target=\"_self\">post<\/a> I showed how Gnuplot 4.2.6 could be easily installed on Mac OS X. In the meantime Gnuplot 4.4.0 was released and although the wxWidgets terminal still doesn&#8217;t work on Mac OS X, there are the new cairo based terminals which provide png and pdf output. These terminals replace the gd terminals (<a href=\"http:\/\/www.libgd.org\/Main_Page\" target=\"_blank\">libgd<\/a> is not easily installed due it&#8217;s dependencies) and the old pdf terminal (which depends on the not-very-free <a href=\"http:\/\/www.pdflib.com\/\" target=\"_blank\">pdflib<\/a>). Since gif and jpeg (libgd terminal) shouldn&#8217;t be used for plots anyways, this is no loss. Since these formats are the ones which I need mainly, I show in this post how we could compile and install Gnuplot with little effort, providing X11, png and pdf terminal (and others which are compiled in anyway).<!--more--><\/p>\n<p>First we need to download and install the GTK Framework, which was described <a href=\"http:\/\/www.miscdebris.net\/blog\/2010\/02\/19\/gtk-framework-for-mac-os-x-as-well-as-cairo-pango\/\" target=\"_self\">in this post<\/a>. \u00c2\u00a0Basically you need to:<\/p>\n<ol>\n<li>Download the <a href=\"http:\/\/r.research.att.com\/libs\/GTK_2.18.5-X11.pkg\" target=\"_blank\">GTK_2.18.5-X11.pkg<\/a> package from <a href=\"http:\/\/r.research.att.com\/\" target=\"_blank\">http:\/\/r.research.att.com\/<\/a> and install it<\/li>\n<li>Add to your .profile file in the home directory:\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nexport PATH=\/Library\/Frameworks\/GTK+.framework\/Resources\/bin:$PATH\r\n<\/pre>\n<\/li>\n<li>(Re)start Terminal.app and see if <code>pkg-config cairo --libs<\/code> works.<\/li>\n<\/ol>\n<p>Then download Gnuplot 4.4.0, untar, configure and compile it:<\/p>\n<ol>\n<li>Download Gnuplot 4.4.0 from <a href=\"http:\/\/sourceforge.net\/projects\/gnuplot\/files\/gnuplot\/4.4.0\/gnuplot-4.4.0.tar.gz\/download\" target=\"_blank\">Sourceforge<\/a>.<\/li>\n<li><code>tar xzf gnuplot-4.4.0.tar.gz<\/code><\/li>\n<li><code>cd gnuplot-4.4.0<\/code><\/li>\n<li><code>mkdir build &amp;&amp; cd build<\/code><\/li>\n<li><code>..\/configure --with-readline=bsd --disable-wxwidgets<br \/>\n<\/code>In the configure output you should find something like<\/p>\n<pre>  wxt terminal: no (requires C++, wxWidgets&gt;2.6, cairo&gt;0.9, pango&gt;1.10)\r\n  cairo-based pdf and png terminals: yes<\/pre>\n<\/li>\n<li><code>make<\/code><\/li>\n<li><code>sudo make install<\/code><\/li>\n<\/ol>\n<p>Gnuplot will be installed in \/usr\/local\/bin and should be ready to be used (if \/usr\/local\/bin is in your path). pngcairo and pdfcairo are the new terminals you can use now. Gnuplot 4.4 has some <a href=\"http:\/\/www.gnuplot.info\/announce.4.4.0\" target=\"_blank\">major improvements<\/a> so it may worth to install Gnuplot following these instructions.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In a former post I showed how Gnuplot 4.2.6 could be easily installed on Mac OS X. In the meantime Gnuplot 4.4.0 was released and although the wxWidgets terminal still doesn&#8217;t work on Mac OS X, there are the new cairo based terminals which provide png and pdf output. These terminals replace the gd terminals &hellip; <a href=\"http:\/\/www.miscdebris.net\/blog\/2010\/03\/25\/install-gnuplot-4-4-0-on-mac-os-x\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Install Gnuplot 4.4.0 on Mac OS X<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false},"version":2}},"categories":[10,4],"tags":[],"class_list":["post-190","post","type-post","status-publish","format-standard","hentry","category-macosx","category-research"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p6pnj-34","_links":{"self":[{"href":"http:\/\/www.miscdebris.net\/blog\/wp-json\/wp\/v2\/posts\/190"}],"collection":[{"href":"http:\/\/www.miscdebris.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.miscdebris.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.miscdebris.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.miscdebris.net\/blog\/wp-json\/wp\/v2\/comments?post=190"}],"version-history":[{"count":5,"href":"http:\/\/www.miscdebris.net\/blog\/wp-json\/wp\/v2\/posts\/190\/revisions"}],"predecessor-version":[{"id":231,"href":"http:\/\/www.miscdebris.net\/blog\/wp-json\/wp\/v2\/posts\/190\/revisions\/231"}],"wp:attachment":[{"href":"http:\/\/www.miscdebris.net\/blog\/wp-json\/wp\/v2\/media?parent=190"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.miscdebris.net\/blog\/wp-json\/wp\/v2\/categories?post=190"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.miscdebris.net\/blog\/wp-json\/wp\/v2\/tags?post=190"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}