No se puede iniciar Octave 3.8.0 en modo GUI

Instalé Octave 3.8.0 usando homebrew. Las preguntas frecuentes oficiales de Octave dicen que puedo usar --force-guila opción para iniciar octave con la GUI.

Pero cuando uso octave --force-guiel comando en la terminal, nada sucede de manera diferente. Es decir, Octave todavía se inicia en la interfaz de línea de comandos.

¿Cómo puedo arreglar eso?

¿Cómo instalaste Octave?
@MatthieuRiegler Si te refieres al comando específico que usé en homebrew, fue brew install octave.

Respuestas (2)

Tuve un problema similar con Octave 4.0.0, cuando lo instalé como sugirió hadi, recibí este mensaje:

The graphical user interface is disabled by default since it is still buggy on
OS X; use brew with the option --with-gui to enable it.


Octave was compiled with gnuplot; enable it via graphics_toolkit('gnuplot').
All graphics terminals can be used by setting the environment variable GNUTERM
in ~/.octaverc, and building gnuplot with the corresponding options.

setenv('GNUTERM','qt')    # Requiers QT; install gnuplot --with-qt
setenv('GNUTERM','x11')   # Requires XQuartz; install gnuplot --with-x11
setenv('GNUTERM','wxt')   # Requires wxmac; install gnuplot --with-wxmac
setenv('GNUTERM','aqua')  # Requires AquaTerm; install gnuplot --with-aquaterm

You may also set this variable from within Octave. For printing the cairo backend
is recommended, i.e., install gnuplot with --with-cairo, and use

print -dpdfcairo figure.pdf


When using the the qt or fltk toolkits then invisible figures do not work because
osmesa does currently not work with the Mac's OpenGL implementation. The usage of
gnuplot is recommened.

Lo que funcionó para mí fue agregar --with-gui:

brew install octave --with-qt --with-fltk --with-gui

O reinstalando:

brew reinstall octave --with-qt --with-fltk --with-gui
No estoy seguro de si esto sigue siendo válido, brew se queja: Advertencia: homebrew/science/octave: ¡esta fórmula no tiene la opción --with-fltk, por lo que será ignorada! Advertencia: homebrew/science/octave: esta fórmula no tiene la opción --with-gui, por lo que será ignorada. Advertencia: homebrew/science/octave: esta fórmula no tiene la opción --with-qt, por lo que será ignorada.
Tenga en cuenta que ninguna de esas opciones existe más en la fórmula Homebrew.

Encontré la respuesta y la publicaré aquí para cualquier otra persona que la necesite.

Octave gui requiere el qtpaquete (ver la respuesta de bpabbot aquí ). Entonces, para usar la interfaz gráfica de usuario, octave debe instalarse con este comando:

brew install octave --with-qt --with-fltk

O si ya lo ha instalado sin qt, puede reinstallhacerlo:

brew reinstall octave --with-qt --with-fltk

Sin embargo, tal como está actualmente, la fórmula para la versión 3.8.0 de octava tiene un problema y no se instala --with-qt. Se ha informado de un error y se corregirá para la versión 3.8.1. Puedes ver más detalles aquí .