Professional Documents
Culture Documents
Octave For Windows HowToInstall
Octave For Windows HowToInstall
Contents
1 Standalone ports
1.1 Octave-3.6.1-mingw + octaveforge pkgs
1.1.1 Files for manual installation
1.1.2 Manual installation instructions
1.1.3 Manual installation instructions for the Octave-forge packages
1.1.4 Optional installation of Notepad++ as an editor (recommended)
1.1.5 Troubleshooting
1.2 Octave-3.6.0-mingw + octaveforge pkgs
1.2.1 Files for manual installation
1.2.2 Manual installation instructions
1.2.3 Manual installation instructions for the Octave-forge packages
1.2.4 Optional installation of Notepad++ as an editor (recommended)
1.2.5 Troubleshooting
1.3 Octave-3.4.3-mingw + octaveforge pkgs
1.3.1 Troubleshooting
1.4 Octave-3.4.2-mingw + octaveforge pkgs
1.4.1 Installation
1.4.2 Notes
1.5 Octave 3.2.4 for Windows MinGW32
1.5.1 Includes
1.5.2 Notes
2 Octave on Cygwin
2.1 Octave 3.6.1 on cygwin
2.1.1 Notes
3 Octave with Visual Studio
3.1 Installation
3.2 Using the Visual C++ compiler with Octave
3.3 Octave 3.6.1
3.3.1 Download
3.3.2 Content
11/03/2012
Pagina 2 di 18
Standalone ports
Octave-3.6.1-mingw + octaveforge pkgs
Files for manual installation
1. Octave-3.6.1-mingw binaries tree
Octave3.6.1_gcc4.6.2_20120303.7z - MD5:294B99B5E4D47CAA83E8940EB2918D10
This is a 7z archive which includes a directory tree of all the binaries and libraries
required for a complete octave installation (excluding octaveforge packages)
It can be downloaded from Ocatve Forge
(http://sourceforge.net/projects/octave/files/Octave%20Windows%20binaries/Octave%
203.6.1%20for%20Windows%20MinGW%20installer/)
The archive include:
octave-3.6.1 including PDF documentation (built by Tatsuro Matsuka
http://www.tatsuromatsuoka.com/octave/Eng/Win/)
OpenBLAS-r0.1alpha2.5 and ATLAS-3.8.4 based libblas altenatives
mingw32 + msys tool chain
gnuplot-4.4.4
fig2dev-3.2.5c
ghostscript-9.0.4
pstoedit-3.60
Maintainer: Nitzan Arazi
Latest update: 2012-03-03
2. Octaveforge pkgs, built for Octave-3.6.1-mingw
Octave3.6.1_gcc4.6.2_pkgs_20120303.7z MD5:44A85F26A8925FEC5E1F0856408C9DD5
It can be downloaded from Ocatve Forge
(http://sourceforge.net/projects/octave/files/Octave%20Windows%20binaries/Octave%
203.6.1%20for%20Windows%20MinGW%20installer/)
This is a 7z archive which includes additional binaries and libraries for a set of
octaveforge packages.
The included packages are:
actuarial-1.1.0
ad-1.0.6_patched
audio-1.1.4
benchmark-1.1.1
bim-1.0.2
bioinfo-0.1.2
civil-engineering-1.0.7
combinatorics-1.0.9
communications-1.1.0_svn20120127_patched
control-2.2.5
11/03/2012
Pagina 3 di 18
data-smoothing-1.3.0
dataframe-0.9.1
econometrics-1.0.8
fenv-0.1.0
financial-0.3.2
fpl-1.2.0
fuzzy-logic-toolkit-0.3.0
ga-0.9.8
general-1.2.2
generate_html-0.1.3
geometry-1.4.0
gnuplot-1.0.1
gpc-0.1.7
gsl-1.0.8
ident-1.0.7
image-1.0.15
informationtheory-0.1.8
integration-1.0.7_svn20120128
io-1.0.17
irsa-1.0.7
java-1.2.8_patched
linear-algebra-2.1.0_svn20120225
mapping-1.0.7
mechanics-1.2.0
miscellaneous-1.0.11_svn20120127
missing-functions-1.0.2
msh-1.0.2
multicore-0.2.15
nan-2.5.2
nlwing2-1.2.0
nnet-0.1.13
nurbs-1.3.5
ocs-0.1.3_svn20120128_patched
octclip-1.0.0
octgpr-1.2.0
odebvp-1.0.6
odepkg-0.8.0_svn20120127
optim-1.0.17_patched
optiminterp-0.3.4_svn20120128_patched
outliers-0.13.9
physicalconstants-0.1.7
plot-1.1.0
quaternion-1.0.0
queueing-1.0.0
secs1d-0.0.8
secs2d-0.0.8
secs3d-0.0.1
signal-1.1.2
simp-1.1.0
sockets-1.0.7_svn20120128_patched
specfun-1.1.0
special-matrix-1.0.7
spline-gcvspl-1.0.8
11/03/2012
Pagina 4 di 18
splines-1.0.7
statistics-1.1.0_svn20120128
strings-1.0.7
struct-1.0.9
symband-1.0.10
symbolic-1.1.0
tcl-octave-0.1.8
time-1.0.9
tsa-4.1.1
video-1.0.2_patched
vrml-1.0.12_svn20111014_patched
windows-1.1.0
xraylib-1.0.8
zenity-0.5.7
11/03/2012
Pagina 5 di 18
rebuild
rebuild
rebuild
rebuild
rebuild
1.
-auto
-noauto ad windows
-noauto nan % shadows many statistics functions
-noauto gsl % shadows some core functions
-auto java
Last pkg rebuild command is required in order for the java pkg entry to be moved to the
top of <your_install_dir>\share\octave\octave_packages db file - thus java pkg is loaded
before io pkg is loaded, and io pkg related jars are added to java class path.
2. You can optionally adjust your installed packages status per your specific needs and usage by
executing the following commands:
a. To interactively load or unload a package
pkg load <pkg_name>
or
pkg unload <pkg_name>
11/03/2012
Pagina 6 di 18
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: gmsh does not seem to be present some functionalities will be disabled
warning: dx does not seem to be present some functionalities will be disabled
Following warning is about fstat function of the statistics package that overloads the old (to be
deprecated) fstat function of octave-3.6.1
11/03/2012
Pagina 7 di 18
actuarial-1.1.0
ad-1.0.6_patched
audio-1.1.4
benchmark-1.1.1
bim-1.0.2
bioinfo-0.1.2
civil-engineering-1.0.7
combinatorics-1.0.9
communications-1.1.0_svn20120127_patched
control-2.2.4
data-smoothing-1.2.3
dataframe-0.8.2
econometrics-1.0.8
fenv-0.1.0
financial-0.3.2
fpl-1.2.0
fuzzy-logic-toolkit-0.3.0
ga-0.9.8
general-1.2.2
generate_html-0.1.3
geometry-1.4.0
gnuplot-1.0.1
gpc-0.1.7
11/03/2012
Pagina 8 di 18
gsl-1.0.8
ident-1.0.7
image-1.0.15
informationtheory-0.1.8
integration-1.0.7_svn20120128
io-1.0.16
irsa-1.0.7
java-1.2.8_patched
linear-algebra-2.1.0_svn20120127
mapping-1.0.7
mechanics-1.2.0
miscellaneous-1.0.11_svn20120127
missing-functions-1.0.2
msh-1.0.2
multicore-0.2.15
nlwing2-1.2.0
nnet-0.1.13
nurbs-1.3.5
ocs-0.1.3_svn20120128_patched
octclip-1.0.0
octgpr-1.2.0
odebvp-1.0.6
odepkg-0.8.0_svn20120127
optim-1.0.17_patched
optiminterp-0.3.4_svn20120128_patched
outliers-0.13.9
physicalconstants-0.1.7
plot-1.1.0
quaternion-1.0.0
secs1d-0.0.8
secs2d-0.0.8
secs3d-0.0.1
signal-1.1.2
simp-1.1.0
sockets-1.0.7_svn20120128_patched
specfun-1.1.0
special-matrix-1.0.7
spline-gcvspl-1.0.8
splines-1.0.7
statistics-1.1.0_svn20120128
strings-1.0.7
struct-1.0.9
symband-1.0.10
symbolic-1.1.0
tcl-octave-0.1.8
time-1.0.9
tsa-4.1.1
video-1.0.2_patched
vrml-1.0.12_svn20111014_patched
windows-1.1.0
xraylib-1.0.8
zenity-0.5.7
11/03/2012
Pagina 9 di 18
1.
Last pkg rebuild command is required in order for the java pkg entry to be moved to the
top of <your_install_dir>\share\octave\octave_packages db file - thus java pkg is loaded
before io pkg is loaded, and io pkg related jars are added to java class path.
2. You can optionally adjust your installed packages status per your specific needs and usage by
executing the following commands:
a. To interactively load or unload a package
pkg load <pkg_name>
or
pkg unload <pkg_name>
11/03/2012
Pagina 10 di 18
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: gmsh does not seem to be present some functionalities will be disabled
warning: dx does not seem to be present some functionalities will be disabled
Following warning is about fstat function of the statistics package that overloads the old (to be
deprecated) fstat function of octave-3.6.0
11/03/2012
Pagina 11 di 18
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: C:\Octave\3.4.3_gcc-4.5.2\share\octave\packages\integration-1.0.7\PKG_ADD: possible Matlab-style short
at line 9, column 32
Following messages are from java package about loading of java classes that have been found
and how to manually run a statement which will display its capabilities.
io PKG_ADD: java classes has been found and added in C:\Octave\3.4.3_gcc-4.5.2\bin
io PKG_ADD: run chk_spreadsheet_support([],3) to view io support
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: gmsh does not seem to be present some functionalities will be disabled
warning: dx does not seem to be present some functionalities will be disabled
Following warning is about fstat function of the statistics package that overloads the old (to be
deprecated) fstat function of octave-3.4.3
11/03/2012
Pagina 12 di 18
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-pkgsto32394771.html
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: C:\Octave\Octave3.4.2_gcc4.5.2\share\octave\packages\integration-1.0.7\PKG_ADD: possible Matlab
short-circuit operator at line 9, column 32
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: gmsh does not seem to be present some functionalities will be disabled
warning: dx does not seem to be present some functionalities will be disabled
Following warning is about fstat function of the statistics package that overloads the old (to be
deprecated) fstat function of octave-3.4.3
11/03/2012
Pagina 13 di 18
Includes
11/03/2012
Pagina 14 di 18
nnet-0.1.10
nurbs-1.0.3 (New!)
ocs-0.0.4 (New!)
oct2mat-1.0.7 (New!)
octcdf-1.0.17 (updated 1.0.17+)
octgpr-1.1.5 (New!)
odebvp-1.0.6
odepkg-0.6.10 (updated)
optim-1.0.12 (updated)
optiminterp-0.3.2
outliers-0.13.9
physicalconstants-0.1.7
plot-1.0.7
quaternion-1.0.0
signal-1.0.10
simp-1.1.0 (New!)
sockets-1.0.5
specfun-1.0.8
special-matrix-1.0.7
spline-gcvspl-1.0.8 (New!)
splines-1.0.7
statistics-1.0.9
strings-1.0.7
struct-1.0.7
symband-1.0.10 (New!)
symbolic-1.0.9
time-1.0.9
video-1.0.2 (New!)
windows-1.0.8(updated to 1.0.8+)
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 RELEASE_NOTES.txt (http://sourceforge.net/projects/octave/files/Octave%
20Windows%20binaries/Octave%203.2.4%20for%20Windows%20MinGW32%
20Installer/RELEASE_NOTES-3.2.4.txt/download) for details:
Default Octave install folder changed to e.g. C:\Octave\3.2.4_gcc-4.4.0\.
If you have installed octave in a folder where the path name has whitespace, for
example, C:\Program Files\, 'pkg install (package name)' command will fail: See
http://sourceforge.net/mailarchive/message.php?
msg_name=4A1AF9EF.1000005@hotmail.com for details
Additional important topics found after the release:
It is reported that the oct2mat octave-forge package affects plot related commands. The
purpose of the package is to convert m-file into matlab-compatible coding style. Please see the
documentation of the octave-forge (oct2mat - freetb4matlab) from
http://octave.sourceforge.net/functions_by_package.php)
Report for this problem: http://old.nabble.com/Re:-Octave-3.2.4-mingw32-availablep28053703.html
11/03/2012
Pagina 15 di 18
at the octave prompt and then restart octave. The operation results in the oct2mat
package not to be auto-loaded in startup. When you want to use oct2mat, execute
pkg load oct2mat
The plot octave-forge package still have ginput code although the ginput function is now
merge into octave itself. Therefore conflict occur if the plot package is installed. To avoid this
problem, rename 'ginput.m' in the folder ..\Octave\3.2.4_gcc-4.4.0
\share\octave\packages\plot-1.0.7, for example ginput.ob.m. In some computers which
has one core CPU, response of ginput is very slow. In the case, modify
'__gnuplot_ginput__.m' according to the following thread. http://old.nabble.com/ginput-onOctave-3.2.4-mingw32-to28093888.html
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.6.1 on cygwin
Web-Site: http://cygwin.com
Maintainer: Marco Atzeri
Latest release: 2012-02-27
Latest packages:
octave-3.6.1-1
octave-forge-20120224-1
To install : run cygwin setup.exe and select them in the Math category .
On Cygwin 1.7.9-1 the communication between octave and gnuplot is broken due to a cygwin
bug.
Please use version cygwin 1.7.11-1 or later.
Notes
11/03/2012
Pagina 16 di 18
Not needed anymore, but just in case you want to try one cygwin snapshot.
HOWTO install a cygwin snapshot:
download cygwin1-20120227.dll.bz2 (current last) from http://cygwin.com/snapshots/
bunzip2 cygwin1-20120227.dll.bz2
cp cygwin1-20120227.dll cygwin1.dll
cp /bin/cygwin1.dll /bin/cygwin1.dll_backup
Graphics is based on X, so to plot you need to start octave within xterm (or similar).
A new fltk graphics_toolkit is available, and the crash on "print" issue was solved starting
from 3.4.2-3 using the patch proposed here: https://savannah.gnu.org/bugs/index.php?31641
If a dlls collision arise, the correct invocation of the rebase utility within dash shell is:
rebaseall -s "dll|so|oct"
as octave dll's use unexpected ".oct" suffix for its own extension.
For general build notes, see etc/README.Cygwin.
When building from development source (default branch)
"make check"
To build from cygwin source package, you need to install "cygport" and the relevant
development libraries
$ tar -xvjf octave-3.6.1-1-src.tar.bz2
gl2ps-print.patch
octave-3.6.1-1.cygport
octave-3.6.1-1.cygwin.patch
octave-3.6.1-1.src.patch
octave-3.6.1.tar.bz2
11/03/2012
Pagina 17 di 18
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.
11/03/2012
Pagina 18 di 18
Octave 3.6.1
Download
Octave-Forge (http://sourceforge.net/projects/octave/files/Octave%20Windows%
20binaries/Octave%203.6.1%20for%20Windows%20Microsoft%20Visual%20Studio/)
Content
Octave 3.6.1
ATLAS 3.8.4 single-threaded (SSE/SSE2/SSE3) and multi-threaded (SSE3, 2 threads)
All required libraries
QtHandles (https://github.com/goffioul/QtHandles)
Octave GUI (experimental, compiled from development sources)
Gnuplot 4.4.4
72 packages from Octave-Forge
11/03/2012