Changes

Jump to navigation Jump to search
Make it easier for a user to identify the three recommended ways of obtaining an up to date Octave release.
GNU Octave is primarily developed on GNU/Linux and other [https:''For unofficial builds //en.wikipedia.org/wiki/POSIX POSIX] conform systems. The ports of GNU Octave to Microsoft Windows use different approaches to get most of the current 3original Octave and adapt it to Microsoft Windows idiosyncrasies (e.8g.x releasedynamic libraries, see file paths, permissions, environment variables, GUI system, etc). Bear this in mind and don't panic if you get unexpected results. There are a lot of suggestions on the mailing lists for tuning your Octave installation. GNU Octave standalone ports for Windows are independently compiled using either the [http://mxeoctave.osuvmingw.de hereorg MinGW]''or Microsoft Visual Studio development environments.
GNU Octave is primarily developed on GNU/Linux and other POSIX conformal systems. The ports of GNU Octave to Windows use different approaches to get most of the original Octave and adapt it to = Installers for Microsoft Windows idiosyncrasies (eg: dynamic libraries, file paths, permissions, environment variables, GUI system, etc). Bear this in mind and don't panic if you get unexpected results. There are a lot of suggestions on the mailing lists for tuning your Octave installation.=
About version numbers#MXE Builds (unofficial, but recommended):#* [http://mxeoctave.osuv.de GNU Octave 3.8.2]#[https://cygwin.com Cygwin] package (requires Cygwin to be installed first):#* [https://cygwin.com/packages/x86/octave GNU Octave 3.8.2 Cygwin package]#[http://mingw.org MinGW] + Visual studio (official):#*The [http://sourceforge.net/projects/octave/files/Octave%20Windows%20binaries/ GNU Octave 3.6.4 and Octave Forge Packages] <br><span style="color:#555; background-color:#e3f7fc; margin:10px; padding:10px; margin:10px; border-radius:10px; border:1px solid #8ed9f6;">'''NOTICE:''' GNU Octave 3.8.x are 2 is the current stable release. Detailed instructions for individual releasescan be found below.</span><br><br>About older version numbers:
*The 3.6.x are previous releases.
*The 3.4.x are very old releases.
*The 3.2.x are very, very old releases.
<br>
GNU Octave standalone ports for Windows are independently compiled using either the MinGW or Microsoft Visual Studio development environments. The latest versions can be downloaded from the Octave Forge Project at SourceForge.net and are often, but not always, up to date with the latest version of the GNU Octave source code.  [http://sourceforge.net/projects/octave/files/Octave%20Windows%20binaries/ Octave Forge - GNU Octave Program and Packages Download page]__TOC__
=Detailed instructions for individual releases can be found below.=
=Octave 3.8 =MXE Builds==
Untouched [http://hg.octave.org/mxe-octave/ MXE] builds for the current 3.8.x release can be found
The plot command also doesn't work well in case of Windows 8 system.
=Building from source=Instructions are available from the Octave-Forge repository, see See [[http://sourceforgeWindows_Installer]] for building instructions.net/projects/octave/files/Octave%20Windows%20binaries/] 
==MinGW ports==
For build instructions see [[Octave_for_MinGW]] or the Octave-Forge repository [http://sourceforge.net/projects/octave/files/Octave%20Windows%20binaries/].
===Octave-3.6.4-mingw + octaveforge pkgs===
====Files for manual installation====
#Octave-3.6.4-mingw binaries tree
#*'''Latest update:''' 2013-03-31
====Manual installation instructions====
#Create an installation directory of which doesn't have space chars (i.e. C:\Octave\Octave3.6.4_gcc4.6.2\). This directory is referred hereafter as <your_install_dir>.
#Extract the complete directories tree from Octave3.6.4_gcc4.6.2_20130329.7z to the installation directory keeping the original directory structure as in the archive (you can use 7-zip tool from http://www.7-zip.org/). Note that the archive contains Octave3.6.4_gcc4.6.2 folder, so you want to extract to the *parent* of <your_install_dir>.
#:*# libblas.dll.altas-3.8.4_corei5 - ATLAS based libblass, tuned for older core i5 cpu (compiled by Tatsuro Matsuka)
====Manual installation instructions for the Octave-forge packages====
#Extract the complete directories tree from Octave3.6.4_gcc4.6.2_pkgs_20130331.7z to the installation directory (<your_install_dir>) keeping the original directory structure as in the archive (you can use 7zip tool from http://www.7-zip.org/).
#In order to update octave_packages database with your installation tree and auto-load most packages (excluding 'ad' and 'windows' which may crash octave when loaded and 'clear all' is executed), launch Octave and execute the following five rebuild commands from the octave console:
pkg uninstall <pkg_name>
====Optional installation of Notepad++ as an editor (recommended)====
#Download recent Notepad++ installation package from http://notepad-plus-plus.org/ and install it on your system.
#Edit <your_install_dir>\share\octave\site\m\startup\octaverc and un-comment the line which sets octave default editor:
: Note: You may adjust the above line for the location of notepad++.exe as installed on your system.
====Troubleshooting====
Upon launching, some warnings may be displayed. These warnings can be ignored.
*Following warnings are about missing external tools which may reduce some of the functions of some packages. These external tools are not provided by the 7z archives in sourceforge.
warning: function C:\Octave\3.6.4_gcc-4.6.2\share\octave\packages\statistics-1.2.0\fstat.m shadows a core library function
===Octave-3.6.2-mingw + octaveforge pkgs===
====Files for manual installation====
#Octave-3.6.2-mingw binaries tree
#: It can be downloaded from [http://sourceforge.net/projects/octave/files/Octave%20Windows%20binaries/Octave%203.6.2%20for%20Windows%20MinGW%20installer/ Octave Forge]
===Octave-3.6.1-mingw + octaveforge pkgs===
====Files for manual installation====
#Octave-3.6.1-mingw binaries tree
#*'''Latest update:''' 2012-03-03
====Manual installation instructions====
#Create an installation directory of which doesn't have space chars (i.e. C:\Octave\Octave3.6.1_gcc4.6.2\). This directory is referred hereafter as <your_install_dir>.
#Extract the complete directories tree from Octave3.6.1_gcc4.6.2_20120303.7z to the installation directory keeping the original directory structure as in the archive (you can use 7-zip tool from http://www.7-zip.org/). Note that the archive contains Octave3.6.1_gcc4.6.2 folder, so you want to extract to the *parent* of <your_install_dir>.
#:*# libblas.dll.altas-3.8.4_corei5 - ATLAS based libblass, tuned for older core i5 cpu (compiled by Tatsuro Matsuka)
====Manual installation instructions for the Octave-forge packages====
#Extract the complete directories tree from Octave3.6.1_gcc4.6.2_pkgs_20120303.7z to the installation directory (<your_install_dir>) keeping the original directory structure as in the archive (you can use 7zip tool from http://www.7-zip.org/).
#In order to update octave_packages database with your installation tree and auto-load most packages (excluding 'ad' and 'windows' which may crash octave when loaded and 'clear all' is executed), launch Octave and execute the following 3 rebuild commands from the octave console:
: d. To completely uninstall a package
pkg uninstall <pkg_name>
====Optional installation of Notepad++ as an editor (recommended)====
#Download recent Notepad++ installation package from http://notepad-plus-plus.org/ and install it on your system.
#Edit <your_install_dir>\share\octave\site\m\startup\octaverc and un-comment the line which sets octave default editor:
: Note: You may adjust the above line for the location of notepad++.exe as installed on your system.
====Troubleshooting====
Upon launching, some warnings may be displayed. These warnings can be ignored.
*Following warnings are about missing external tools which may reduce some of the functions of some packages. These external tools are not provided by the 7z archives in sourceforge.
warning: function C:\Octave\3.6.1_gcc-4.6.2\share\octave\packages\statistics-1.1.0\fstat.m shadows a core library function
===Octave-3.6.0-mingw + octaveforge pkgs===
====Files for manual installation====
#Octave-3.6.0-mingw binaries tree
#*'''Latest update:''' 2012-01-28
====Manual installation instructions====
#Create an installation directory of which doesn't have space chars (i.e. C:\Octave\Octave3.6.0_gcc4.6.2\). This directory is referred hereafter as <your_install_dir>.
#Extract the complete directories tree from Octave3.6.0_gcc4.6.2_20120129.7z to the installation directory keeping the original directory structure as in the archive (you can use 7-zip tool from http://www.7-zip.org/).
#: a. Launch and use octave by double-clicking the copied octave3.6.0_gcc4.6.2.lnk
#: b. Access and browse the documentation files by double-clicking the copied octave3.6.0_gcc4.6.2_docs.lnk
====Manual installation instructions for the Octave-forge packages====
#Extract the complete directories tree from Octave3.6.0_gcc4.6.2_pkgs_20120128.7z to the installation directory (<your_install_dir>) keeping the original directory structure as in the archive (you can use 7zip tool from http://www.7-zip.org/).
#In order to update octave_packages database with your installation tree and auto-load most packages (excluding 'ad' and 'windows' which may crash octave when loaded and 'clear all' is executed), launch Octave and execute the following 3 rebuild commands from the octave console:
: d. To completely uninstall a package
pkg uninstall <pkg_name>
====Optional installation of Notepad++ as an editor (recommended)====
#Download recent Notepad++ installation package from http://notepad-plus-plus.org/ and install it on your system.
#Edit <your_install_dir>\share\octave\site\m\startup\octaverc and un-comment the line which sets octave default editor:
: Note: You may adjust the above line for the location of notepad++.exe as installed on your system.
====Troubleshooting====
Upon launching, some warnings may be displayed. These warnings can be ignored.
*Following warnings are about missing external tools which may reduce some of the functions of some packages. These external tools are not provided by the 7z archives in sourceforge.
warning: function C:\Octave\3.6.0_gcc-4.6.2\share\octave\packages\statistics-1.1.0\fstat.m shadows a core library function
===Octave-3.4.3-mingw + octaveforge pkgs===
#Octave-3.4.3-mingw (without pkgs)
*Octave Binaries are built using Tatsuro Matsuka OctaveLibs.zip and gplibs.zip (http://www.tatsuromatsuoka.com/octave/Eng/Win/)
====Troubleshooting====
Upon launching, some warnings may be displayed. The following warnings can be ignored:
*Following warning is about interpretation of logical operators (on scalars) in octave which is slightly different than matlab's interpretation.
warning: function C:\Octave\3.4.3_gcc-4.5.2\share\octave\packages\statistics-1.0.10\fstat.m shadows a core library function
===Octave-3.4.2-mingw + octaveforge pkgs===
#Octave-3.4.2-mingw (without pkgs)
#:Octave3.4.2_gcc4.5.2_20110914.7z - MD5:4AA0DD4C97F73B2E9E0F7370CD8AD719 - http://www.multiupload.com/TCUHKNNH9S
*Octave manual (<code>octave-3.4.2.pdf.zip, octave-3.4.2.html.zip</code>) can be downloaded from http://www.tatsuromatsuoka.com/octave/Eng/Win/
====Installation====
The installation instructions are the same as for the 3.4.3 version, above.
====Notes====
For details, please see http://old.nabble.com/Octave-3.4.2-mingw-%2B-octaveforge-pkgs-to32394771.html
===Octave 3.2.4 for Windows MinGW32===
*'''Download:''' [http://sourceforge.net/projects/octave/files/Octave%20Windows%20binaries/Octave%203.2.4%20for%20Windows%20MinGW32%20Installer/Octave-3.2.4_i686-pc-mingw32_gcc-4.4.0_setup.exe/download Octave-3.2.4_i686-pc-mingw32_gcc-4.4.0_setup.exe]
*'''Latest release:''' 2010-03-25
====Includes====
*GNU Octave, version 3.2.4 (i686-pc-mingw32)
**zenity-0.5.7
====Notes====
*Although there are some remaining known issues, some bugs reported to the octave-3.2.3 have been corrected. In addition, useful octave-forge packages are added (Java, Jhandles, ....). Please see [http://sourceforge.net/projects/octave/files/Octave%20Windows%20binaries/Octave%203.2.4%20for%20Windows%20MinGW32%20Installer/RELEASE_NOTES-3.2.4.txt/download RELEASE_NOTES.txt] for details:
*Default Octave install folder changed to e.g. <code>C:\Octave\3.2.4_gcc-4.4.0\</code>.
*From gnuplot-4.4.0, the default terminal of gnuplot for windows is the wxt terminal. Some users may set the GNUTERM environmental variable for the windows terminal being default. The gnuplot for windows allows to set GNUTERM to 'win' (abbreviated form) but octave does not recognize the abbreviated form for terminal name. If one would like set GNUTERM to windows terminal, one should specify it as 'windows' (full form) but not 'win' (abbreviated form). In detail see the following thread: http://old.nabble.com/flicking-problem-again-Octave-3.2.4-mingw32-td28038688.html
==Octave on Cygwin===== Octave 3.8.2 on cygwin===
*'''Web-Site:''' http://cygwin.com
: Otherwise the only graphics will be ASCII art ;-)
====Notes====
*When building from development source (default branch)
:see cygport documentation for further info.
==Octave with Visual Studio==
Octave binaries compiled with Microsoft Visual Studio are available for download from [http://sourceforge.net/projects/octave/files/Octave%20Windows%20binaries/Octave%203.6.4%20for%20Windows%20Microsoft%20Visual%20Studio/ Octave-Forge site]. These binaries come in the form of an easy-to-use installer (created with [http://nsis.sourceforge.net/ NSIS]) and are provided in 2 flavors: pre-compiled version for Visual Studio 2008 and for Visual Studio 2010.
Note that if you already installed other software on your system, there is a possibility that these runtime libraries are already present. Search for a files named msvcr90.dll (Visual Studio 2008) or msvcr100.dll (Visual Studio 2010) in the %WINDIR% directory (usually C:\WINDOWS).
===Installation===
The pre-compiled versions for Visual Studio come in the form of a self-installing executable. Simply download the executable, run it and follow the installer instructions. To avoid possible problems with white spaces in the octave paths, it is '''strongly recommended''' to install octave in a directory that do not contain any white spaces.
Octave-Forge packages are not installed by default. To install packages, expand the section "Octave Forge" in the component selection page of the installer and select the packages you wish to install. Note that installed packages are not loaded by default. To use the packages, you still need to load them into octave.
===Printing (installing Ghostscript)===
In order to use the {{Codeline|print}} command ghostscript must be installed.
or Octave's {{Codeline|<nowiki>~/.octaverc</nowiki>}} file.
===Using the Visual C++ compiler with Octave===
As of version 3.6.1, the Microsoft Visual C++ compiler is not automatically detected. If you need to use it from octave (for instance to compile a MEX, OCT file, and building packages), then you must configure your system by updating the appropriate environment variables: '''%PATH%''', '''%INCLUDE%''' and '''%LIB%'''. One way to achieve this easily is to call the vcvarsall.bat script (from the Visual C++ installation directory) prior executing octave. You can for instance automate this by creating a batch script with the following content (adapt paths to your actual installation):
"C:\Octave-3.6.1\bin\octave.exe"
===Octave 3.6.4===
====Download====
[http://sourceforge.net/projects/octave/files/Octave%20Windows%20binaries/Octave%203.6.4%20for%20Windows%20Microsoft%20Visual%20Studio/ Octave-Forge]
====Content====
* Octave 3.6.4
* OpenBLAS-0.2.2 (dynamic architectures, up to 4 threads)
* 82 packages from Octave-Forge (Must be installed through the Octave installer, see README: 3. Content)
===Octave 3.6.2===
====Download====
[http://sourceforge.net/projects/octave/files/Octave%20Windows%20binaries/Octave%203.6.2%20for%20Windows%20Microsoft%20Visual%20Studio/ Octave-Forge]
====Content====
* Octave 3.6.2
* OpenBLAS-0.1.1 (dynamic architectures, up to 4 threads)
* 72 packages from Octave-Forge (see README: 3. Content)
===Octave 3.6.1===
====Download====
[http://sourceforge.net/projects/octave/files/Octave%20Windows%20binaries/Octave%203.6.1%20for%20Windows%20Microsoft%20Visual%20Studio/ Octave-Forge]
====Content====
* Octave 3.6.1
* ATLAS 3.8.4 single-threaded (SSE/SSE2/SSE3) and multi-threaded (SSE3, 2 threads)
* 72 packages from Octave-Forge
==MXE==
 
How to build [[Windows_Installer]] using linux.
===Alternative===
In addition to the instructions provided in the Octave manual and Octave-Forge repository, a basic toolkit for building Octave in windows using the MSVC compiler has been produced by Michael Goffioul. It consists of a set of scripts that can be used to compile Octave and its dependencies.
Note that this is not a enterprise-level SDK, so don't try to start an enterprise with it.
 
 
[[Category:Installation]]
[[Category:Building]]
[[Category:Microsoft Windows]]

Navigation menu