help-octave
[Top][All Lists]
Advanced

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

Re: path: octave 3.0.0 can't find itself


From: Thomas Treichl
Subject: Re: path: octave 3.0.0 can't find itself
Date: Fri, 28 Dec 2007 15:56:26 +0100
User-agent: Thunderbird 2.0.0.9 (Macintosh/20071031)

Dushan Mitrovich schrieb:
Dushan Mitrovich <address@hidden> wrote:
"John W. Eaton" <address@hidden> wrote:
On 27-Dec-2007, Ben Abbott wrote:

| The solution that worked for me was to delete the .octaverc file
| altogether. I doubt this is a desirable solution for all cases, but
| if you don't have any information that is local to your setup, I'd
| recommend deleting the .octaverc file.

Why is there any version-specific path info in your ~/.octaverc file?
Did you add it by hand?  If so, why?
That's puzzled me too.  I don't know the answer, but here's my best
guess: When muddling thru my initial setup of Octave on my still-un-
familiar OSX, I had done some un-necessary steps that tripped me up
on this occasion.  What that means is that I have still got unneeded
references (to 3.0.0) in .octaverc that do no harm now but are poised
to trip me on the next go-around.  I'll try deleting all these refe-
rences in the file and see what happens.  And I'll also try deleting
the file altogether, starting Octave, then re-specifying the location
of my personal Octave files.

I now tried both these approaches, and determined that the version-
specific references seem to be necessary:

# After deleting the .octaverc file, Octave runs but doesn't know where
  my personal files are.

# If I retain the .octaverc file but shorn of all version-specific refe-
  rences, Octave runs and knows where my personal files are, but can't
  find its own files, e.g. 'repmat'.  As Ben pointed out, the .dmg file
  I downloaded from octave.org has the following version-specific direc-
  tory organization in OSX:

    /Applications
            /Octave.app
                    /Contents
                            /Resources
                                    /include
                                            /octave-3.0.0
                                    /lib
                                            /octave-3.0.0
                                    /libexec
                                            /octave
                                                    /3.0.0
                                    /share
                                            /octave
                                                    /3.0.0

  (There are a lot more directories in Octave.app, but they are not
  version-specific.)  The Octave .m files are in the /m directory under
  the last listed path above, which is included in the .octaverc file.
  But the first three paths are not included, making me wonder what, if
  anything, is missing when I use Octave.

- Dushan

Dushan,

I hope that nothing is missing but if you find out that some functions of Octave can't be found then let us know. The startup procedure of Octave.app is that if you double-click the icon then

  /Applications/Octave.app/Contents/Resources/script

is evaluated (have a look into that file if you want to know what is exactly done). After that (or if you call Octave directly) the script

  /Applications/Octave.app/Contents/Resources/bin/octave

is evaluated - a modified shell-script file that differs to startup files of other platforms. After that Octave starts up and then it looks into your .octaverc file and probably will overwrite some settings that we correctly have been made before (in 'script' or 'octave'). Can you send your .octaverc file so that we can have a look what is going on?

  Thomas


reply via email to

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