Octave 2.9: Error when trying to plot with gnuplot installed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
octave2.9 (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: octave2.9
After manually installing gnuplot, in order to get around bug #141055, using the plot command still throws a (different) error:
octave:1> x=0:pi/1000:2*pi;
octave:2> plot(x, sin(x))
warning: broken pipe -- some output may be lost
warning: broken pipe -- some output may be lost
warning: broken pipe -- some output may be lost
warning: broken pipe -- some output may be lost
warning: broken pipe -- some output may be lost
warning: broken pipe -- some output may be lost
warning: broken pipe -- some output may be lost
warning: broken pipe -- some output may be lost
warning: broken pipe -- some output may be lost
warning: broken pipe -- some output may be lost
warning: broken pipe -- some output may be lost
warning: broken pipe -- some output may be lost
warning: broken pipe -- some output may be lost
warning: broken pipe -- some output may be lost
warning: broken pipe -- some output may be lost
warning: broken pipe -- some output may be lost
warning: broken pipe -- some output may be lost
warning: broken pipe -- some output may be lost
warning: broken pipe -- some output may be lost
warning: broken pipe -- some output may be lost
warning: broken pipe -- some output may be lost
warning: broken pipe -- some output may be lost
error: `have_newer_
error: evaluating binary operator `||' near line 333, column 27
error: if: error evaluating conditional expression
error: evaluating if command near line 333, column 4
error: evaluating switch command near line 245, column 7
error: evaluating for command near line 241, column 5
error: evaluating if command near line 29, column 3
error: called from `__go_draw_axes__' in file `/usr/share/
error: evaluating switch command near line 57, column 4
error: evaluating for command near line 55, column 2
error: evaluating if command near line 37, column 7
error: evaluating if command near line 30, column 5
error: evaluating if command near line 29, column 3
error: called from `__go_draw_
error: evaluating if command near line 61, column 6
error: evaluating if command near line 58, column 4
error: evaluating if command near line 56, column 2
error: evaluating for command near line 55, column 7
error: evaluating if command near line 38, column 5
error: called from `drawnow' in file `/usr/share/
Expected result: show a plot
description: | updated |
I got an email from Ingo Kresse, a debian user, with a simple fix that worked for me:
>I had the same problem as you had, and fixed it with
>
># dpkg-reconfigure octave
>
>(execute as root)
>
>I think, apt-get should have done that automatically. Anyway,
>that was my workaround.
>
>Cheers,
>Ingo
I probably should have tried that right away, but decided to pollute Launchpad instead :)
If the package could be coerced into doing this somehow. that would be good. The problem is that it needs to be done after gnuplot is installed, which is not necessarily at the same time as octave is installed, since gnuplot is a recommended, rather than dependent, package. (See the discussion in bug #141055)
Thanks,
-Gabriel