How can I start octave from the command line and not the GUI?

后端 未结 5 2127
傲寒
傲寒 2021-02-05 02:16

I recently installed GNU Octave on my Mac using Homebrew and as soon as I typed octave into bash, it opened up the octave-gui window. The Octave GUI looks quite un

相关标签:
5条回答
  • 2021-02-05 02:28

    On MacOS, if installed Octave by dmg file, you can add alias to your ~/.bashrc file.

    alias octave-cli='/Applications/Octave-4.4.1.app/Contents/Resources/usr/bin/octave-cli'
    

    Then start octave-cli in command line by 'octave-cli'.

    0 讨论(0)
  • 2021-02-05 02:40

    for mac os

    alias octave-cli='/Applications/Octave-4.4.1.app/Contents/Resources/usr/bin/octave-octave-app --no-gui'
    

    https://octave.org/doc/v4.2.2/Command-Line-Options.html#Command-Line-Options

    0 讨论(0)
  • 2021-02-05 02:41

    I also install through brew I found that just run:

    octave-cli
    

    you will see the octave in terminal:

    GNU Octave, version 4.2.0-rc2
    Copyright (C) 2016 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
        ...
    octave:1>
    
    0 讨论(0)
  • 2021-02-05 02:43

    According to here :

    octave -W

    will force octave to open in CLI. It works for me.

    0 讨论(0)
  • 2021-02-05 02:52

    you can get the infomation from the wiki of octave http://wiki.octave.org/Octave_for_Microsoft_Windows:

    Octave-3.8.2

    The site that provide previous version of octave for windows of ver. 3.8.2 (unofficial build using mxe-octave) is closed. A mirrored binary can be downloaded at File list of Octave for Windows.

    If you got any problems while running Windows 8 or libstdc++-6.dll errors, try this octave-gui.bat file and place it into your Octave folder (e.g. C:/octave/octave-3.8.2).

    @echo off
    set PATH=%CD%\bin\
    start octave --force-gui -i --line-editing
    exit
    

    Simplely, you can just add the the C:\Octave\Octave-3.8.2\bin folder path to your Environment Variables , like this:

    0 讨论(0)
提交回复
热议问题