help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Path?/dispatch error on starting Octave but path works


From: Paul Kienzle
Subject: Re: Path?/dispatch error on starting Octave but path works
Date: Fri, 28 May 2004 19:01:23 -0400

Maybe the solution is to put the following function in octave-forge/main/miscellaneous/dispatch.m:

function dispatch(name,to,given), warning("dispatch unavailable: use %s %s(%s)",to,name,given); end

That way, if dispatch is unavailable, at least the user knows about it.

For now you could put it in your ~/.octaverc file. Hopefully packages use the internal name internally so that they will still work without dispatch, but I haven't checked.

Paul Kienzle
address@hidden

On May 28, 2004, at 6:21 PM, Henry F. Mollet wrote:

I found that I had all octave-forge functions on my desktop and there was no need to download them, e.g. rat.m. Therefore, I've added a recursive path
using two slashes at the end and rat.m in the directory
/many/many/directories/octave-forge/general was *indeed found*. However, my Octave 2.1.46, on start-up, now complains with a dispatch error. It does not like the two slashes but won't do a recursive search with only one slash.
What is the problem?
Henry

GNU Octave, version 2.1.46 (powerpc-apple-darwin6.6).
Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 John W. Eaton.

error: `dispatch' undefined near line 2 column 1
error: near line 2 of file
`/Users/mollet/Desktop/usr/local/share/octave/2.1.55/site/m/octave- forge/com
m//PKG_ADD'
error: evaluating assignment expression near line 2, column 10
error: near line 2 of file `/Users/mollet/.octaverc'

octave:1> path
LOADPATH contains the following directories:
  /sw/share/doc/octave/examples
  /Users/mollet/CandO/epstk2
/Users/mollet/Desktop/usr/local/share/octave/2.1.55/site/m/octave- forge//

octave:2> x=rand
x = 0.38021
octave:3> [n,d]=rat(x)
n =   73
d =   192

[~] tcsh:29> vi .octaverc
      1 %% My octaverc
      2 LOADPATH = [LOADPATH,
":/sw/share/doc/octave/examples:/Users/mollet/CandO/epstk2:/User
s/mollet/Desktop/usr/local/share/octave/2.1.55/site/m/octave-forge//"];

N.B. I believe that the first ":" is a default path which was supplied when
using Fink for the installation of Octave and must include /sw/bin, the
location of "octave", alias for the octave-2.1.46 application, so that my octave application will get loaded when I type "octave" at the shell prompt.



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------




-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]