{"id":19,"date":"2007-04-27T14:16:38","date_gmt":"2007-04-27T13:16:38","guid":{"rendered":"http:\/\/www.miscdebris.net\/blog\/?p=19"},"modified":"2010-03-03T17:11:23","modified_gmt":"2010-03-03T16:11:23","slug":"install-gnuplot-on-ubuntu","status":"publish","type":"post","link":"http:\/\/www.miscdebris.net\/blog\/2007\/04\/27\/install-gnuplot-on-ubuntu\/","title":{"rendered":"Install gnuplot on Ubuntu"},"content":{"rendered":"<p><strong>I once again updated these instructions for Gnuplot 4.4.0 RC1 and newer Ubuntu versions. Find these instructions <a href=\"http:\/\/www.miscdebris.net\/blog\/2010\/03\/03\/install-gnuplot-4-4-0-rc1-on-ubuntu-linux\/\" target=\"_self\">in this post<\/a>.<\/strong><\/p>\n<p><strong>There is an updated <a href=\"http:\/\/www.miscdebris.net\/blog\/2008\/01\/23\/install-gnuplot-on-ubuntu-gutsy-gibbon\/\">Howto<\/a> for Ubuntu Gutsy Gibbon available. <\/strong><\/p>\n<p>Though there is gnuplot available in the Ubuntu\/Debian repositories, there are reasons to compile gnuplot &#8211; first and most important gnu readline support! I don&#8217;t know why Debian maintainers don&#8217;t compile the GNU readline support into GNUplot &#8211; it&#8217;s some license issues &#8211; but it&#8217;s like that and this makes gnuplot practically unusable. Second having the pdf and wxWidgets terminal is not that bad at all \ud83d\ude42<\/p>\n<p>So here are the instructions:<!--more--><\/p>\n<p>First we compile and install wxWidgets<\/p>\n<ul>\n<li>Download <a href=\"http:\/\/prdownloads.sourceforge.net\/wxwindows\/wxGTK-2.8.3.tar.gz\">wxWidgets GTK 2.8.3<\/a><\/li>\n<li>Untar it somewhere: tar xzf wxGTK-2.8.3.tar.gz<\/li>\n<li>cd cd wxGTK-2.8.3\/<\/li>\n<li>mkdir buildgtk<\/li>\n<li>cd buildgtk<\/li>\n<li>..\/configure<\/li>\n<li>make<\/li>\n<li>sudo paco -lp wxGTK-2.8.3 make install (or just make install if you don&#8217;t use paco)<\/li>\n<li>sudo ldconfig (you may need to add \/usr\/local\/lib to the file \/etc\/ld.so.conf before)<\/li>\n<\/ul>\n<p>Than we are going to install the PDFlib lite<\/p>\n<ul>\n<li>Download <a href=\"http:\/\/www.pdflib.com\/en\/download\/free-software\/pdflib-lite\/\" target=\"_blank\">PDFlib Lite<\/a><\/li>\n<li>tar xzf PDFlib-Lite-7.0.1.tar.gz<\/li>\n<li>cd PDFlib-Lite-7.0.1<\/li>\n<li>.\/configure<\/li>\n<li>make<\/li>\n<li>sudo paco -lD make install<\/li>\n<li>sudo ldconfig<\/li>\n<\/ul>\n<p>Than we compile gnuplot<\/p>\n<ul>\n<li>Download <a href=\"http:\/\/sourceforge.net\/project\/showfiles.php?group_id=2055\" target=\"_blank\">gnuplot 4.2<\/a><\/li>\n<li>tar xzf gnuplot-4.2.0.tar.gz<\/li>\n<li>cd gnuplot-4.2.0<\/li>\n<li>.\/configure &#8211;with-readline=gnu (check if we have the lines &#8220;pdf terminal: yes&#8221; and &#8220;wxt terminal: yes (EXPERIMENTAL)&#8221;, if you miss the jpeg, png and gif terminal install the libgd2-xpm-dev package; also check if you find &#8220;Readline library: GNU readline library with  -lncurses&#8221;, if it says only minimal readline support than install the libreadline5-dev package; you need also the libx11-dev and libxt-dev package for the X11 terminal &#8211; libxt-dev package is normally not installed by default (at the <a href=\"http:\/\/ftp.debian.org\/debian\/pool\/main\/g\/gnuplot\/gnuplot_4.2.0-2.dsc\" target=\"_blank\">debian page about gnuplot<\/a> one can find the packages necessary to build gnuplot))<\/li>\n<li>make (if you have problems here with some latex errors than disable the latex tutorial during the configure stage with &#8220;&#8211;without-tutorial&#8221;, if you get a &#8220;103: makeinfo: not found&#8221; error message than install the texinfo package)<\/li>\n<li>sudo paco -lD make install<\/li>\n<\/ul>\n<p>Than you have gnuplot installed with nice readline support (command line like in bash), a nice new wxWidgets terminal and a pdf terminal.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I once again updated these instructions for Gnuplot 4.4.0 RC1 and newer Ubuntu versions. Find these instructions in this post. There is an updated Howto for Ubuntu Gutsy Gibbon available. Though there is gnuplot available in the Ubuntu\/Debian repositories, there are reasons to compile gnuplot &#8211; first and most important gnu readline support! I don&#8217;t &hellip; <a href=\"http:\/\/www.miscdebris.net\/blog\/2007\/04\/27\/install-gnuplot-on-ubuntu\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Install gnuplot on Ubuntu<\/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":[4],"tags":[],"class_list":["post-19","post","type-post","status-publish","format-standard","hentry","category-research"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p6pnj-j","_links":{"self":[{"href":"http:\/\/www.miscdebris.net\/blog\/wp-json\/wp\/v2\/posts\/19"}],"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=19"}],"version-history":[{"count":2,"href":"http:\/\/www.miscdebris.net\/blog\/wp-json\/wp\/v2\/posts\/19\/revisions"}],"predecessor-version":[{"id":153,"href":"http:\/\/www.miscdebris.net\/blog\/wp-json\/wp\/v2\/posts\/19\/revisions\/153"}],"wp:attachment":[{"href":"http:\/\/www.miscdebris.net\/blog\/wp-json\/wp\/v2\/media?parent=19"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.miscdebris.net\/blog\/wp-json\/wp\/v2\/categories?post=19"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.miscdebris.net\/blog\/wp-json\/wp\/v2\/tags?post=19"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}