Results 1 to 2 of 2

Thread: octave complains about gnuplot not being installed

  1. #1
    Join Date
    Nov 2006

    octave complains about gnuplot not being installed [Solved]

    I get this error when trying the example at:

    octave:1> x = -2:0.1:2;
    octave:2> [xx,yy] = meshgrid(x,x);
    octave:3> z = sin(xx.^2-yy.^2);
    octave:4> mesh(x,x,z);

    error: you must have gnuplot installed to display graphics; if you have gnuplot installed in a non-standard location, see the 'gnuplot_binary' function

    I've done an apt-get remove -purge gnuplot octave followed
    by a subsequent install and still get the same message. Any thoughts? I'm using Jaunty.

    For some reason the reinstall with octave was not installing gnuplot

    I tried apt-get install gnuplot and it went through and THOUGHT it was there, but when I did a which gnuplot it didn't show up.

    I then went through and apt-cache search | grep gnuplot

    and systematically install gnuplot-X11 and python-gnuplot.

    I then did a aptitude reinstall gnuplot and things work ...
    Last edited by petersk; May 16th, 2009 at 07:49 PM.

  2. #2
    Join Date
    Apr 2009

    Re: octave complains about gnuplot not being installed

    sudo aptitude reinstall gnuplot
    also just worked for me while trying to compile octave 3.6.0 on Ubuntu 10.04. It is building now. Strange, as I had just installed it for the first time prior to this.



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts