Octave for Microsoft Windows: Difference between revisions

Jump to navigation Jump to search
(Remove note about Win XP and package installation issues, as we do no longer support that OS. Some minor improvement.)
(4 intermediate revisions by 2 users not shown)
Line 9: Line 9:
=Installers for Microsoft Windows=
=Installers for Microsoft Windows=


The easiest way to install GNU Octave on Microsoft Windows is by using [http://hg.octave.org/mxe-octave/ MXE] builds.  For the current release, both 32-bit and 64-bit installers and zip archived packages (.zip and .7z formats) can be found at https://ftp.gnu.org/gnu/octave/windows/.  
The easiest way to install GNU Octave on Microsoft Windows is by using [http://hg.octave.org/mxe-octave/ MXE] builds.  For the current release, both 32-bit and 64-bit installers and zip archived packages (.zip and .7z formats) can be found at https://www.gnu.org/software/octave/download.html under the Windows tab.  


* For executable installers: the user can simply run the downloaded file and follow the on-screen installation prompts.  It is recommended that the installation path does not include spaces or non-ASCII characters.  Shortcuts to the program will be created automatically.
* For executable (.exe) installers: the user can simply run the downloaded file and follow the on-screen installation prompts.  It is recommended that the installation path does not include spaces or non-ASCII characters.  Shortcuts to the program will be created automatically.


* For the 7z/zip archives:  
* For the 7z/zip archives:  
# Extract the file content to a directory on the harddrive (such as {{Path|C:\Octave}}). Spaces or non-ASCII characters in the path are discouraged and may cause program errors.
# Extract the file content to a directory on the harddrive (such as {{Path|C:\Octave}}). Spaces or non-ASCII characters in the path are discouraged and may cause program errors.
# Manually create a shortcut  to the {{Path|octave.vbs}} file in the main installation directory. (Right-click on the file, select 'Create Shortcut', and move the new shortcut to your desired location.)  
# Manually create a shortcut  to the {{Path|octave.vbs}} file in the main installation directory. (Right-click on the file, select 'Create Shortcut', and move the new shortcut to your desired location.)  
# If a command-line only instance of Octave is desired, the user can create a shortcut as stated above, right-click on the shortcut, select Properties, and add <code>--no-gui</code> to the end of the Target field.
# If a command-line only instance of Octave is desired, the user can create another shortcut as stated above, right-click on the shortcut, select Properties, and add <code>--no-gui</code> to the end of the Target field.
# Run the {{Path|post-install.bat}} file before running Octave the first time to reduce plot delays due to the Windows font cache and make the pre-installed packages visible to the system.
# IMPORTANT: Run the {{Path|post-install.bat}} file before running Octave the first time to reduce plot delays due to the Windows font cache and make the pre-installed packages visible to the system.


==Packages==
==Packages==


A selection of pre-built, [[Octave Forge]] packages are included with for all versions of the official Windows release.  If you following the installation directions above you can confirm the package list by typing the command below at the Octave command prompt:
A selection of pre-built, [[Octave Forge]] packages are included with for all versions of the official Windows release.  If you followed the installation directions above you can confirm the package list by typing the command below at the Octave command prompt:


   >> pkg list
   >> pkg list
Line 27: Line 27:
A typical output (for version {{Release}}) is:
A typical output (for version {{Release}}) is:
                                                                                              
                                                                                              
Package Name       | Version | Installation directory
    Package Name         | Version | Installation directory
--------------------+---------+-----------------------
    ---------------------+---------+-----------------------
    communications  |  1.2.1 | C:\Octave\OCTAVE~1.0-W\mingw64\share\octave\packages\communications-1.2.1
                  audio  |  2.0.0 | __OH__/share/octave/packages/audio-2.0.0
            control  |  3.1.0 | C:\Octave\OCTAVE~1.0-W\mingw64\share\octave\packages\control-3.1.0
        communications  |  1.2.2 | __OH__/share/octave/packages/communications-1.2.2
    data-smoothing  |  1.3.0 | C:\Octave\OCTAVE~1.0-W\mingw64\share\octave\packages\data-smoothing-1.3.0
                control  |  3.2.0 | __OH__/share/octave/packages/control-3.2.0
          database  |  2.4.3 | C:\Octave\OCTAVE~1.0-W\mingw64\share\octave\packages\database-2.4.3
        data-smoothing  |  1.3.0 | __OH__/share/octave/packages/data-smoothing-1.3.0
          dataframe  |  1.2.0 | C:\Octave\OCTAVE~1.0-W\mingw64\share\octave\packages\dataframe-1.2.0
              database  |  2.4.4 | __OH__/share/octave/packages/database-2.4.4
              dicom  |  0.2.1 | C:\Octave\OCTAVE~1.0-W\mingw64\share\octave\packages\dicom-0.2.1
              dataframe  |  1.2.0 | __OH__/share/octave/packages/dataframe-1.2.0
          financial  |  0.5.3 | C:\Octave\OCTAVE~1.0-W\mingw64\share\octave\packages\financial-0.5.3
                  dicom  |  0.2.2 | __OH__/share/octave/packages/dicom-0.2.2
              fits  |  1.0.7 | C:\Octave\OCTAVE~1.0-W\mingw64\share\octave\packages\fits-1.0.7
              financial  |  0.5.3 | __OH__/share/octave/packages/financial-0.5.3
fuzzy-logic-toolkit |  0.4.5 | C:\Octave\OCTAVE~1.0-W\mingw64\share\octave\packages\fuzzy-logic-toolkit-0.4.5
                  fits  |  1.0.7 | __OH__/share/octave/packages/fits-1.0.7
                ga  |  0.10.0 | C:\Octave\OCTAVE~1.0-W\mingw64\share\octave\packages\ga-0.10.0
    fuzzy-logic-toolkit |  0.4.5 | __OH__/share/octave/packages/fuzzy-logic-toolkit-0.4.5
            general  |  2.1.0 | C:\Octave\OCTAVE~1.0-W\mingw64\share\octave\packages\general-2.1.0
                    ga  |  0.10.1 | __OH__/share/octave/packages/ga-0.10.1
      generate_html  |  0.3.1 | C:\Octave\OCTAVE~1.0-W\mingw64\share\octave\packages\generate_html-0.3.1
                general  |  2.1.0 | __OH__/share/octave/packages/general-2.1.0
          geometry  |  3.0.0 | C:\Octave\OCTAVE~1.0-W\mingw64\share\octave\packages\geometry-3.0.0
          generate_html  |  0.3.1 | __OH__/share/octave/packages/generate_html-0.3.1
                gsl  |  2.1.1 | C:\Octave\OCTAVE~1.0-W\mingw64\share\octave\packages\gsl-2.1.1
              geometry  |  3.0.0 | __OH__/share/octave/packages/geometry-3.0.0
              image  |  2.10.0 | C:\Octave\OCTAVE~1.0-W\mingw64\share\octave\packages\image-2.10.0
                    gsl  |  2.1.1 | __OH__/share/octave/packages/gsl-2.1.1
instrument-control  |  0.3.1 | C:\Octave\OCTAVE~1.0-W\mingw64\share\octave\packages\instrument-control-0.3.1
                  image  |  2.10.0 | __OH__/share/octave/packages/image-2.10.0
          interval  |  3.2.0 | C:\Octave\OCTAVE~1.0-W\mingw64\share\octave\packages\interval-3.2.0
    instrument-control  |  0.4.0 | __OH__/share/octave/packages/instrument-control-0.4.0
                io  |  2.4.12 | C:\Octave\OCTAVE~1.0-W\mingw64\share\octave\packages\io-2.4.12
              interval  |  3.2.0 | __OH__/share/octave/packages/interval-3.2.0
    linear-algebra  |  2.2.2 | C:\Octave\OCTAVE~1.0-W\mingw64\share\octave\packages\linear-algebra-2.2.2
                    io  |  2.4.13 | __OH__/share/octave/packages/io-2.4.13
              lssa  |  0.1.3 | C:\Octave\OCTAVE~1.0-W\mingw64\share\octave\packages\lssa-0.1.3
        linear-algebra  |  2.2.3 | __OH__/share/octave/packages/linear-algebra-2.2.3
              ltfat  |  2.3.1 | C:\Octave\OCTAVE~1.0-W\mingw64\share\octave\packages\ltfat-2.3.1
                  lssa  |  0.1.3 | __OH__/share/octave/packages/lssa-0.1.3
            mapping  |  1.2.1 | C:\Octave\OCTAVE~1.0-W\mingw64\share\octave\packages\mapping-1.2.1
                  ltfat  |  2.3.1 | __OH__/share/octave/packages/ltfat-2.3.1
      miscellaneous  |  1.2.1 | C:\Octave\OCTAVE~1.0-W\mingw64\share\octave\packages\miscellaneous-1.2.1
                mapping  |  1.2.1 | __OH__/share/octave/packages/mapping-1.2.1
                nan  |  3.1.4 | C:\Octave\OCTAVE~1.0-W\mingw64\share\octave\packages\nan-3.1.4
          miscellaneous  |  1.3.0 | __OH__/share/octave/packages/miscellaneous-1.3.0
            netcdf  |  1.0.12 | C:\Octave\OCTAVE~1.0-W\mingw64\share\octave\packages\netcdf-1.0.12
                    nan  |  3.4.5 | __OH__/share/octave/packages/nan-3.4.5
              nurbs  |  1.3.13 | C:\Octave\OCTAVE~1.0-W\mingw64\share\octave\packages\nurbs-1.3.13
                netcdf  |  1.0.12 | __OH__/share/octave/packages/netcdf-1.0.12
                ocs  |  0.1.5 | C:\Octave\OCTAVE~1.0-W\mingw64\share\octave\packages\ocs-0.1.5
                  nurbs  |  1.3.13 | __OH__/share/octave/packages/nurbs-1.3.13
            odepkg  |  0.8.5 | C:\Octave\OCTAVE~1.0-W\mingw64\share\octave\packages\odepkg-0.8.5
                    ocs  |  0.1.5 | __OH__/share/octave/packages/ocs-0.1.5
              optim  |  1.5.3 | C:\Octave\OCTAVE~1.0-W\mingw64\share\octave\packages\optim-1.5.3
                odepkg  |  0.8.5 | __OH__/share/octave/packages/odepkg-0.8.5
        optiminterp  |  0.3.5 | C:\Octave\OCTAVE~1.0-W\mingw64\share\octave\packages\optiminterp-0.3.5
                  optim  |  1.6.0 | __OH__/share/octave/packages/optim-1.6.0
        quaternion  |  2.4.0 | C:\Octave\OCTAVE~1.0-W\mingw64\share\octave\packages\quaternion-2.4.0
            optiminterp  |  0.3.5 | __OH__/share/octave/packages/optiminterp-0.3.5
          queueing  |  1.2.6 | C:\Octave\OCTAVE~1.0-W\mingw64\share\octave\packages\queueing-1.2.6
            quaternion  |  2.4.0 | __OH__/share/octave/packages/quaternion-2.4.0
            signal  |  1.4.0 | C:\Octave\OCTAVE~1.0-W\mingw64\share\octave\packages\signal-1.4.0
              queueing  |  1.2.6 | __OH__/share/octave/packages/queueing-1.2.6
            sockets  |  1.2.0 | C:\Octave\OCTAVE~1.0-W\mingw64\share\octave\packages\sockets-1.2.0
                signal  |  1.4.1 | __OH__/share/octave/packages/signal-1.4.1
          sparsersb  |  1.0.6 | C:\Octave\OCTAVE~1.0-W\mingw64\share\octave\packages\sparsersb-1.0.6
                sockets  |  1.2.0 | __OH__/share/octave/packages/sockets-1.2.0
            specfun  |  1.1.0 | C:\Octave\OCTAVE~1.0-W\mingw64\share\octave\packages\specfun-1.1.0
              sparsersb  |  1.0.6 | __OH__/share/octave/packages/sparsersb-1.0.6
            splines  |  1.3.2 | C:\Octave\OCTAVE~1.0-W\mingw64\share\octave\packages\splines-1.3.2
                specfun  |  1.1.0 | __OH__/share/octave/packages/specfun-1.1.0
        statistics  |  1.4.0 | C:\Octave\OCTAVE~1.0-W\mingw64\share\octave\packages\statistics-1.4.0
                splines  |  1.3.3 | __OH__/share/octave/packages/splines-1.3.3
                stk  |  2.5.1 | C:\Octave\OCTAVE~1.0-W\mingw64\share\octave\packages\stk-2.5.1
            statistics  |  1.4.1 | __OH__/share/octave/packages/statistics-1.4.1
            strings  |  1.2.0 | C:\Octave\OCTAVE~1.0-W\mingw64\share\octave\packages\strings-1.2.0
                    stk  |  2.6.1 | __OH__/share/octave/packages/stk-2.6.1
            struct  |  1.0.15 | C:\Octave\OCTAVE~1.0-W\mingw64\share\octave\packages\struct-1.0.15
                strings  |  1.2.0 | __OH__/share/octave/packages/strings-1.2.0
            tisean  |  0.2.3 | C:\Octave\OCTAVE~1.0-W\mingw64\share\octave\packages\tisean-0.2.3
                struct  |  1.0.16 | __OH__/share/octave/packages/struct-1.0.16
                tsa  |  4.4.5 | C:\Octave\OCTAVE~1.0-W\mingw64\share\octave\packages\tsa-4.4.5
                tisean  |  0.2.3 | __OH__/share/octave/packages/tisean-0.2.3
              video  |  1.2.4 | C:\Octave\OCTAVE~1.0-W\mingw64\share\octave\packages\video-1.2.4
                    tsa  |  4.6.2 | __OH__/share/octave/packages/tsa-4.6.2
            windows  |  1.3.0 | C:\Octave\OCTAVE~1.0-W\mingw64\share\octave\packages\windows-1.3.0
                  video  |  1.2.4 | __OH__/share/octave/packages/video-1.2.4
            zeromq  |  1.3.0 | C:\Octave\OCTAVE~1.0-W\mingw64\share\octave\packages\zeromq-1.3.0
                windows  |  1.4.0 | __OH__/share/octave/packages/windows-1.4.0
                zeromq  |  1.5.0 | __OH__/share/octave/packages/zeromq-1.5.0
(__OH__) refers to the location of the OCTAVE_HOME environment variable.


If Octave was installed from a zip of 7z archive, you may need to run:
 
If Octave was installed from a zip of 7z archive and you did not run the {{Path|post-install.bat}} file, you may need to run:
    
    
   >> pkg rebuild
   >> pkg rebuild
Line 97: Line 100:


*'''Maintainer:''' Marco Atzeri  
*'''Maintainer:''' Marco Atzeri  
*'''Latest release:''' 2018-08-17
*'''Latest release:''' 2020-02-26


*Latest packages:
*Latest packages:


:octave-4.4.1-1
:octave-5.2.0-1
:Its announce on cygwin mailing list [https://www.cygwin.com/ml/cygwin-announce/2018-08/msg00021.html]
:Its announce on cygwin mailing list [https://cygwin.com/ml/cygwin-announce/2020-02/msg00028.html]


:Octave Forge packages have each a cygwin package.
:Octave Forge packages have each a cygwin package.
Line 131: Line 134:
* To build GNU Octave from cygwin source package, you need to install "cygport" and the relevant development libraries
* To build GNU Octave from cygwin source package, you need to install "cygport" and the relevant development libraries
:<syntaxhighlight lang="bash">
:<syntaxhighlight lang="bash">
tar -xf octave-4.4.1-1-src.tar.xz  
tar -xf octave-5.1.0-1-src.tar.xz  
cygport octave.cygport almostall
cygport octave.cygport almostall
</syntaxhighlight>
</syntaxhighlight>
22

edits

Navigation menu