Octave for Microsoft Windows: Difference between revisions

m (trim a little more)
Line 6: Line 6:


=Standalone ports=
=Standalone ports=
==Octave-3.6.0-mingw + octaveforge pkgs==
===Files for manual installation===
#Octave-3.6.0-mingw binaries tree
#: Octave3.6.0_gcc4.6.2_20120129.7z - MD5:53E4823B0DC5F2923C4CBCB8B60FC1B6
#: 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)
#:
#: Currently, it can be downloaded as two parts:
#:
#: Octave3.6.0_gcc4.6.2_20120129_7z_2_parts.7z.001 - MD5:BF7E855F180BF1575D5448F4FCFD2516
#: http://www.file-upload.net/download-4071214/Octave3.6.0_gcc4.6.2_20120129_7z_2_parts.7z.001.html
#:
#: Octave3.6.0_gcc4.6.2_20120129_7z_2_parts.7z.002 - MD5:6945F03AB4E449BD4889752DD1A95D9B
#: http://www.file-upload.net/download-4071324/Octave3.6.0_gcc4.6.2_20120129_7z_2_parts.7z.002.html
#: These two parts can be combined (open first file and extract its content) by 7-zip archiving tool (http://www.7-zip.org)
#:
#: The archive include:
#:* octave-3.6.0 including PDF documentation (built by Tatsuro Matsuka http://www.tatsuromatsuoka.com/octave/Eng/Win/)
#:* 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-01-29
#Octaveforge pkgs, built for Octave-3.6.0-mingw
#: Octave3.6.0_gcc4.6.2_pkgs_20120128.7z - MD5:93CC6207EED411BCE747193D3A8B6625
#: http://www.file-upload.net/download-4070172/Octave3.6.0_gcc4.6.2_pkgs_20120128.7z.html
#:
#: 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.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
#:* 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
#:
#*'''Maintainer:''' Nitzan Arazi
#*'''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/).
#Copy octave3.6.0_gcc4.6.2.lnk to any convenient location and edit its properties respectively to point to <your_install_dir>\bin\octave.exe and <your_install_dir>\share\octave\3.6.0\imagelib\octave-logo.ico as an icon
#Copy octave3.6.0_gcc4.6.2_docs.lnk to any convenient location and edit its properties respectively to point to <your_install_dir>\doc\octave and <your_install_dir>\share\octave\3.6.0\imagelib\octave-logo.ico as an icon.
#:At this point you can:
#: 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:
    pkg rebuild -auto
    pkg rebuild -noauto ad windows
    pkg rebuild -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.
#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>
: b. To disable auto-load for specific pkg <pkg_name>
pkg rebuild -noauto <pkg_name>
: c. To enable auto-load for specific pkg <pkg_name>
pkg rebuild -auto <pkg_name>
: 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:
EDITOR('C:\Program Files\Notepad++\notepad++.exe');
: 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. The following 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
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 + octaveforge pkgs==


Line 19: Line 173:
*Packages are archived by 7zip. 7zip software can be download from http://www.7-zip.org/
*Packages are archived by 7zip. 7zip software can be download from http://www.7-zip.org/
*Octave Binaries are built using Tatsuro Matsuka OctaveLibs.zip and gplibs.zip (http://www.tatsuromatsuoka.com/octave/Eng/Win/)
*Octave Binaries are built using Tatsuro Matsuka OctaveLibs.zip and gplibs.zip (http://www.tatsuromatsuoka.com/octave/Eng/Win/)
===Installation===
Please see the [https://sourceforge.net/projects/octave/files/Octave_Windows%20-%20MinGW/Octave%203.4.3%20for%20Windows%20MinGW%20Installer/ sourceforge page] for detailed install instructions.


===Troubleshooting===
===Troubleshooting===
Line 161: Line 311:
       pkg load oct2mat  
       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 <code>..\Octave\3.2.4_gcc-4.4.0\share\octave\packages\plot-1.0.7</code>, 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-on-Octave-3.2.4-mingw32-to28093888.html  
*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 <code>..\Octave\3.2.4_gcc-4.4.0\share\octave\packages\plot-1.0.7</code>, 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-on-Octave-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  
*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 on Cygwin=
Anonymous user