Octave for Microsoft Windows: Difference between revisions

Jump to navigation Jump to search
m
(Updated for 4.2.0, general download link added to top of page.)
(6 intermediate revisions by 3 users not shown)
Line 10: Line 10:
= Installers for Microsoft Windows =
= Installers for Microsoft Windows =


===Octave-4.2.0===
===Octave-4.2.1===
The easiest way to install GNU Octave on Microsoft Windows is using [http://hg.octave.org/mxe-octave/ MXE] builds. For the current 4.2.0 release both 32-bit and 64-bit installers and zip archived packages can be found at [https://ftp.gnu.org/gnu/octave/windows/ ftp.gnu.org/gnu/octave/windows/].  
The easiest way to install GNU Octave on Microsoft Windows is using [http://hg.octave.org/mxe-octave/ MXE] builds. For the current 4.2.1 release both 32-bit and 64-bit installers and zip archived packages can be found at [https://ftp.gnu.org/gnu/octave/windows/ ftp.gnu.org/gnu/octave/windows/].  


For executable installers the user can simply run the downloaded file and follow the onscreen installation prompts.  It is recommended that the installation path not include spaces or non-ASCII characters. Shortcuts to the program will be automatically created.  
For executable installers the user can simply run the downloaded file and follow the onscreen installation prompts.  It is recommended that the installation path not include spaces or non-ASCII characters. Shortcuts to the program will be automatically created.  
Line 24: Line 24:
If you instead installed Octave from the .zip archive, you need to first rebuild the package list on your local machine. (The command above will produce a blank output and packages will be inaccessible before rebuilding.) Do this by typing the following command:
If you instead installed Octave from the .zip archive, you need to first rebuild the package list on your local machine. (The command above will produce a blank output and packages will be inaccessible before rebuilding.) Do this by typing the following command:


  >> pkg rebuild
  >> pkg rebuild
 
Packages can be updated by running
 
  >> pkg update
 
Other packages can be installed by running


''A bug in the Windows builds currently prevents Octave from automatically retrieving packages from the website for installation or updates. This will be fixed in the next Octave release. Until then, manual package installation is necessary to update or install new packages on Windows.''
  >> pkg install -forge <package name>


To manually install a new or updated package version, the package file can be downloaded from the [https://octave.sourceforge.io/packages.php Octave-Forge website]to the working directory and can be installed using:
To manually install a new or updated package version, the package file can be downloaded from the [https://octave.sourceforge.io/packages.php Octave-Forge website]to the working directory and can be installed using:
Line 32: Line 38:
   >> pkg install package_file_name.tar.gz
   >> pkg install package_file_name.tar.gz


Detailed instruction of installing Octave-Forge packages is shown at [http://wiki.octave.org/Octave-Forge Octave-Forge]
For detailed instruction of installing Octave-Forge packages is shown at [http://wiki.octave.org/Octave-Forge Octave-Forge]
 
 
''Note that a security related issue in Windows XP currently prevents Octave from automatically retrieving packages from the website for installation or updates when running under that Operating System, and manual package installation is necessary to update or install new packages.''
 
== Octave 4.2.1 on cygwin==
 
*'''Web-Site:''' http://cygwin.com
*'''Maintainer:''' Marco Atzeri
*'''Latest release:''' 2017-04-06
 
*Latest packages:
 
:octave-4.2.1-1
:Its announce on cygwin mailing list [https://cygwin.com/ml/cygwin-announce/2017-04/msg00017.html]
 
:octave-forge packages have each  a cygwin package
:Its announce on cygwin mailing list [https://cygwin.com/ml/cygwin-announce/2017-01/msg00078.html]
: Full cygwin package list is available here [https://cygwin.com/packages/]
: At today 2017-04-06, 64 forge packages are available.
 
*To install :
:  run cygwin setup-x86.exe (for cygwin 32 bit) or  setup-x86_64.exe (for cygwin 64 bit) and select them in the Math category.
:  All the package dependencies will be also installed.
 
:Graphics is based on X and to plot you will need to start octave within xterm (or similar).
:  I recommend to install "xinit", "xlaunch" and "gnuplot". These packages will pull all the functional Xserver.
:  Otherwise the only graphics will be ASCII art ;-)
 
===Notes===
 
*When building from development source (default branch)
:    "make check"
:passes almost all the tests. Only, and not substantial, failures are:
    <nowiki>
    /pub/hg/octave/src/data.cc : 8 failures due to different handling of complex Inf on sort
    /pub/hg/octave/src/syscalls.cc: 1 failure on fork. This disappears when octave is installed
    /pub/hg/octave/scripts/sparse/svds.m: 1 failure due to test sensitivity on starting point. See
    https://mailman.cae.wisc.edu/pipermail/octave-maintainers/2011-September/024715.html</nowiki>


*To build from cygwin source package, you need to install "cygport" and the relevant development libraries
    <nowiki>
    $ tar -xf octave-4.2.0-1-src.tar.xz
    $ cygport octave.cygport almostall</nowiki>


:see cygport documentation for further info.


=Older version instructions=
=Older version instructions=
Line 40: Line 89:


==Older MXE builds==  
==Older MXE builds==  
===Octave-4.2.0===
The instructions for Octave 4.2.0 are the same as for Octave 4.2.1 above. However, note that version 4.2.0 has a bug that prevents it from automatically retrieving packages from the [https://octave.sourceforge.io/packages.php Octave-Forge website] for installation or updates. Manual package installation is necessary with this version to update or install new packages on Windows.
To manually install a new or updated package version, the package file can be downloaded from the [https://octave.sourceforge.io/packages.php Octave-Forge website] to the working directory and can be installed using:
  >> pkg install package_file_name.tar.gz
Detailed instruction of installing Octave-Forge packages is shown at [http://wiki.octave.org/Octave-Forge Octave-Forge]


===Octave-4.0.3===
===Octave-4.0.3===
Line 90: Line 149:


You can of course describe it in .octaverc.
You can of course describe it in .octaverc.
== Octave 4.0.3 on cygwin==
*'''Web-Site:''' http://cygwin.com
*'''Maintainer:''' Marco Atzeri
*'''Latest release:''' 2016-07-12
*Latest packages:
:octave-4.0.3-1
:Its announce on cygwin mailing list [https://www.cygwin.com/ml/cygwin-announce/2016-07/msg00024.html]
:octave-forge packages have each  a cygwin package
:Its announce on cygwin mailing list [http://cygwin.com/ml/cygwin-announce/2015-06/]
: Full cygwin package list is available here [https://cygwin.com/packages/]
: At today 2016-07-12, 63 forge packages are available.
*To install :
:  run cygwin setup-x86.exe (for cygwin 32 bit) or  setup-x86_64.exe (for cygwin 64 bit) and select them in the Math category.
:  All the package dependencies will be also installed.
:Graphics is based on X and to plot you will need to start octave within xterm (or similar).
:  I recommend to install "xinit", "xlaunch" and "gnuplot". These packages will pull all the functional Xserver.
:  Otherwise the only graphics will be ASCII art ;-)
===Notes===
*When building from development source (default branch)
:    "make check"
:passes almost all the tests. Only, and not substantial, failures are:
    <nowiki>
    /pub/hg/octave/src/data.cc : 8 failures due to different handling of complex Inf on sort
    /pub/hg/octave/src/syscalls.cc: 1 failure on fork. This disappears when octave is installed
    /pub/hg/octave/scripts/sparse/svds.m: 1 failure due to test sensitivity on starting point. See
    https://mailman.cae.wisc.edu/pipermail/octave-maintainers/2011-September/024715.html</nowiki>
*To build from cygwin source package, you need to install "cygport" and the relevant development libraries
    <nowiki>
    $ tar -xf octave-4.0.3-1-src.tar.xz
    $ cygport octave.cygport almostall</nowiki>
:see cygport documentation for further info.


==Older MinGW ports==
==Older MinGW ports==
153

edits

Navigation menu