| ReadMe.OS2 |
In this document you find a detailed description how to install
Octave for OS/2. It also tells you where to find other files of
interest and gives you more information about the OS/2 port.
|
This document is organized in the following way:
You can find the files on the following sites:
| ftp://ftp.cdrom.com, ftp://hobbes.nmsu.edu and | ftp://wotan.ikp.physik.tu-darmstadt.de, ftp://ftp.che.wisc.edu | |
| The binary distribution of Octave 2.0.17 | octa20Hb.zip | octave-2.0.17-b??.zip |
| The patches. | octa20Hp.zip | octave-2.0.17-p??.zip |
| The patched sources (including info, kpathsea, iostream, readline and pnm). | octa20Hs.zip | octave-2.0.17-s??.zip |
| less252-2.zip | The less pager ported by Kai Uwe Rommel. (I know there is a newer version, but i forgot the number :-)) |
| gp315os2b.zip | GNUPLOT 3.6 (beta 315). This file is called gp315os2.zip on
ftp://wotan.ikp.physik.tu-darmstadt.de. |
| gnufutil.zip | The GNU file utilities ftp://wotan.ikp.physik.tu-darmstadt.de. |
| BEFORE APPLYING A PATCH MAKE SURE THAT THE PATCH IS FOR YOUR INSTALLED OCTAVE VERSION (CHECK THE TIMESTAMPS OF THE FILES). |
| DO NOT INSTALL AN OLDER PATCH OVER A NEWER VERSION OF OCTAVE! |
updt-octave
inst-octave /clean
inst-octave /installThe script make changes in the config.sys, .octaverc, .emacs and dir. It unzips the scriptfiles, removes older emx-dlls, copies the info-files to the INFO directory and creates an object on the desktop! For all modified or deleted files it will create backups in the current directory.
| BEFORE REBOOTING CONFIRM THE CHANGES THIS SCRIPT WILL HAVE DONE IN YOUR CONFIG.SYS! |
| IF THERE IS SOMETHING WRONG PLEASE SEND ME A NOTE! |
inst-octave /cleanAll the files you don't need for running octave are deleted. All backup files are also removed.
The setup script modify the following parts of the config.sys, if necessary:
PATH=...;h:\apps\science\octave; LIBPATH=...;h:\apps\science\octave\dll; SET OCTAVE_HOME=c:/octave SET TERM=ansi SET TERMCAP=h:/apps/science/octave/etc/termcap.dat SET HOME=h:/. SET OCTAVE_INITFILE=octave.ini SET INFOPATH=.;h:/apps/science/octave/doc SET GNUPLOT=h:/apps/science/gnuplot
extproc octave -q
or
EXTPROC octave -q.
This is the same as using Octave -q file.cmd.
SET GNUPLOT=h:/apps/science/gnuplot
You must use the beta of GNUPLOT because it supports multiple plots.
(setq load-path (append '("h:/apps/science/octave/lisp") load-path))
(autoload 'octave-mode "octave-mode" "Enter Octave mode." t)
(setq auto-mode-alist (cons '("\\.[Mm]$" . octave-mode) auto-mode-alist))
(defun my-octave-mode-hook ()
(setq fill-column 76)
(auto-fill-mode 1))
(setq octave-mode-hook 'my-octave-mode-hook)
(setq octave-prog-filename "h:/apps/science/octave/octave.exe")
to your .emacs.
(autoload 'octave-tmp-mode "octave-tmp-mode" "Enter Octave's tmp mode." t)
(setq auto-mode-alist
(cons '("[Oo][Cc][Tt]-....\\.[Tt][Mm][Pp]$" . tmp-mode)
auto-mode-alist))
The tmp mode is the normal text mode with one exception: If you finished editing by pressing C-x # the buffer is killed. So Octave can delete the file.
(require 'octave)
(setq load-path (append '("h:/apps/science/octave/lisp") load-path))
(require 'octave)
(autoload 'octave-mode "octave-mode" "Enter Octave mode." t)
(setq auto-mode-alist (cons '("\\.[Mm]$" . octave-mode) auto-mode-alist))
(defun my-octave-mode-hook ()
(setq fill-column 76)
(auto-fill-mode 1))
(setq octave-mode-hook 'my-octave-mode-hook)
(autoload 'octave-tmp-mode "octave-tmp-mode" "Enter Octave's tmp mode." t)
(setq auto-mode-alist
(cons '("[Oo][Cc][Tt]-....\\.[Tt][Mm][Pp]$" . octave-tmp-mode)
auto-mode-alist))
For example:
cd dlfcn\examples make-octfile hello.cc
and add the path .../dlfcn/examples to Octave's LOADPATH; start Octave and type hello (1,2,3). You can find examples in the directories .../dlfcn/examples and scripts/image/codecs.
For example:
SET OCTAVE_IMAGE_VIEWER=c:\pmview\pmview.exe SET OCTAVE_IMAGE_VIEWER_OPT=/WPos(,,,,ForAct)
For loading and saving images Octave uses now the DLFCN feature. Octave can read and write BMP, PNM, IMG formats and write Postscript.
For example:
1) Start octave.
2) Open an OS/2 window.
3) Run mkfifo \PIPE\TEST
4) Type 'echo abcdef >\PIPE\TEST' in the OS/2 window
5) In Octave execute the following commands:
fid = fopen ("/PIPE/TEST", "r");
fgets (fid)
fclose (fid);
6) Run mkfifo -d \PIPE\TEST in the OS/2 window
To speed up the execution of the first mkfifo command you can add the following in your STARTUP.CMD:
detach [DRIVE:]\[PATH]\nmpserv --noexit
INTERNET:
gebhkla@t-online.de
CompuServe:
100114,1371