简体   繁体   English

使用 GUI 启动 Octave

[英]Launch Octave with GUI

I downloaded octave version 4.2.1 as instructed here http://wiki.octave.org/Octave_for_macOS , and I am able to run Octave from the terminal.我按照http://wiki.octave.org/Octave_for_macOS 的说明下载了 Octave 版本 4.2.1,并且我能够从终端运行 Octave。 However, I cannot launch Octave using GUI.但是,我无法使用 GUI 启动 Octave。 When I add the command --force-gui , nothing happens.当我添加命令--force-gui ,没有任何反应。

I have tried brew reinstall octave --with-qt --with-fltk --with-gui , which does not help.我试过brew reinstall octave --with-qt --with-fltk --with-gui ,这没有帮助。

Any ideas?有什么想法吗?

Thank you谢谢

I had the same problem.我有同样的问题。 Tried qt, flk but nothing happens with homebrew.试过 qt, flk 但自制软件没有任何反应。

I do this:我这样做:

  • Remove octave from homebrew : brew uninstall octave从自制软件中删除八度: brew uninstall octave
  • Installed MacPort ( https://guide.macports.org )安装的 MacPort ( https://guide.macports.org )
  • Install octave by macport : sudo port install octave通过 macport 安装八度: sudo port install octave

The repository homebrew/science is dead.存储库自制软件/科学已死。 Now Octave is available on dpo/homebrew-openblas现在 Octave 在 dpo/homebrew-openblas 上可用

Just type:只需输入:

brew tap dpo/openblas

Next pin the repository:接下来固定存储库:

brew tap-pin dpo/openblas

Then install the dev snapshot with Java and the GUI然后使用 Java 和 GUI 安装开发快照

 brew install dpo/openblas/octave --HEAD --with-qt --devel --with-java

You may also install Octave via MacPorts by executing您也可以通过MacPorts执行安装 Octave

sudo port install octave

in the terminal.在终端。 By default MacPorts will install Octave with the following options: +accelerate +app +docs +gfortran +graphicsmagick +qt5 +sound +sundials.默认情况下,MacPorts 将使用以下选项安装 Octave:+accelerate +app +docs +gfortran +graphicsmagick +qt5 +sound +sundials。 It is qt5, that is necessary for the GUI backend.它是 qt5,这是 GUI 后端所必需的。 To view available options prior the installation you may execute:要在安装之前查看可用选项,您可以执行:

port variants octave

To install Octave with the options you like list the options at the end of the command:要使用您喜欢的选项安装 Octave,请在命令末尾列出选项:

sudo port install octave +atlas +gcc10

Finally, to view the options with which Octave was installed, execute:最后,要查看安装 Octave 的选项,请执行:

port installed | grep octave

And to launch Octave with GUI run:并使用 GUI 运行 Octave:

octave --gui &

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

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