简体   繁体   English

在树莓派上安装Octave

[英]Installing Octave on raspberry pi

I'm using Linux Debian on Raspberry PI and have installed Octave. 我在Raspberry PI上使用Linux Debian并安装了Octave。 Here is Octave startup : 这是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'.

When attempt to run Octave GUI such as : 尝试运行Octave GUI时,例如:

plot(3,3) the output is displayed on command line : plot(3,3)输出显示在命令行上:

在此处输入图片说明

Message "octave: disabling GUI features" (as part of startup output above) indicates cannot use GUI features. 消息“八度:禁用GUI功能”(作为上述启动输出的一部分)指示无法使用GUI功能。 What version of Linux should I install on PI and version of Octave in order to GUI plot such as : 我应该在PI和Octave的版本上安装什么版本的Linux,以便进行GUI图形显示,例如:

在此处输入图片说明

As I can guess from your first screenshot, you are using putty from a windows machine to ssh into your raspberry pi. 从我的第一个屏幕截图中可以猜到,您正在使用Windows机器上的腻子将树莓派ssh放入。 You have to enable X11 forwarding in Putty (Connections->SSH->X11) and install a X11 server on the windows side like Xming ( http://sourceforge.net/projects/xming/ ). 您必须在Putty(Connections-> SSH-> X11)中启用X11转发,并在Windows侧安装X11服务器,例如Xming( http://sourceforge.net/projects/xming/ )。 Or the easiest way: Plug a monitor to your RaspberryPI and use GNU/Linux and Octave directly. 或最简单的方法:将监视器插入RaspberryPI,然后直接使用GNU / Linux和Octave。

Connect a screen and execute command 连接屏幕并执行命令

startx 运行startx

to start X server, then open a terminal and try installing from the terminal. 启动X服务器,然后打开终端并尝试从终端安装。 If you don't have a screen then do X11 forwarding as mentioned by @Andy. 如果您没有屏幕,请按照@Andy的说明进行X11转发。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM