我在Raspberry PI上使用Linux Debian,并且已经安装了Octave。下面是Octave启动:
pi@pi1 ~ $ octave
octave: X11 DISPLAY environment variable not set
octave: disabling GUI features
GNU Octave, version 4.0.0
Copyright (C) 2015 John W. Eaton and others.
This is free software; see the source code for copying conditions.
There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. For details, type 'warranty'.
Octave was configured for "arm-unknown-linux-gnueabihf".
Additional information about Octave is available at http://www.octave.org.
Please contribute if you find this software useful.
For more information, visit http://www.octave.org/get-involved.html
Read http://www.octave.org/bugs.html to learn how to submit bug reports.
For information about changes from previous versions, type 'news'.当尝试运行Octave GUI时,例如:
plot(3,3)输出显示在命令行上:

消息"octave: disabling GUI feature“(作为上述启动输出的一部分)指示无法使用GUI功能。为了进行GUI绘图,我应该在PI和Octave上安装什么版本的Linux,例如:

发布于 2015-07-27 22:23:22
我可以从你的第一个截图中猜到,你正在使用windows机器上的putty ssh到你的raspberry pi中。您必须在Putty中启用X11转发(连接->SSH-> X11 ),并在windows端安装X11服务器,如Xming (http://sourceforge.net/projects/xming/)。或者最简单的方法:将显示器连接到您的RaspberryPI,并直接使用GNU/Linux和Octave。
发布于 2015-07-27 22:33:49
连接屏幕并执行命令
startx
要启动X服务器,请打开一个终端并尝试从该终端进行安装。如果你没有屏幕,那么就像@Andy提到的那样进行X11转发。
https://stackoverflow.com/questions/31597139
复制相似问题