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: Dushan Mitrovich
Subject: Re: path: octave 3.0.0 can't find itself
Date: Fri, 28 Dec 2007 15:22:14 -0700
User-agent: VSoup v1.2.9.48Beta [OS/2]

Ben Abbott <address@hidden> wrote:
> hmmm, so the insertion of the version is the path is related to Mac
> OSX, and is not limited to Fink.
>
> Any thoughts on how to fix that?

I don't know, Ben, but you were probably directing the question to
Thomas and/or John.

Thomas Treichl <address@hidden> wrote:
>Dushan Mitrovich schrieb:
>> Dushan Mitrovich <address@hidden> wrote:
>>> "John W. Eaton" <address@hidden> wrote:
>>>> 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
>
> I hope that nothing is missing but if you find out that some functions
> of Octave can't be found then let us know.

Hello Thomas,

After providing Octave with the version-specific paths to the /m direc-
tory, I haven't (at least so far) run across any functions that can't be
found.

>                                             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.

I took a look at both these files and noticed the path references to
    bin/octave-3.0.0
and lib/octave-3.0.0.  The reference to
include/octave-3.0.0 was commented out, but I didn't try to grok the
logic of whether these .cc and .h files were even needed for Octave's
operation.

>                            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?
 
Here's my .octaverc file, cosmetically modified so the path line shows
the paths on different lines (otherwise it would have been over 3000
characters long - just concatenate all those lines to get the original):

- Dushan

                          -------------------
                            .octaverc file
 
## Begin savepath auto-created section, do not edit
  path ('.:
         /Users/dushanm/Octave:
         /Applications/Octave.app/Contents/Resources/share/octave/site/m:
         
/Applications/Octave.app/Contents/Resources/share/octave/site/m/startup:
         
/Applications/Octave.app/Contents/Resources/libexec/octave/3.0.0/oct/i386-apple-darwin8.9.1:
         /Applications/Octave.app/Contents/Resources/share/octave/3.0.0/m:
         /Applications/Octave.app/Contents/Resources/share/octave/3.0.0/m/audio:
         
/Applications/Octave.app/Contents/Resources/share/octave/3.0.0/m/control:
         
/Applications/Octave.app/Contents/Resources/share/octave/3.0.0/m/control/base:
         
/Applications/Octave.app/Contents/Resources/share/octave/3.0.0/m/control/hinf:
         
/Applications/Octave.app/Contents/Resources/share/octave/3.0.0/m/control/obsolete:
         
/Applications/Octave.app/Contents/Resources/share/octave/3.0.0/m/control/system:
         
/Applications/Octave.app/Contents/Resources/share/octave/3.0.0/m/control/util:
         
/Applications/Octave.app/Contents/Resources/share/octave/3.0.0/m/deprecated:
         /Applications/Octave.app/Contents/Resources/share/octave/3.0.0/m/elfun:
         
/Applications/Octave.app/Contents/Resources/share/octave/3.0.0/m/finance:
         
/Applications/Octave.app/Contents/Resources/share/octave/3.0.0/m/general:
         
/Applications/Octave.app/Contents/Resources/share/octave/3.0.0/m/geometry:
         /Applications/Octave.app/Contents/Resources/share/octave/3.0.0/m/image:
         /Applications/Octave.app/Contents/Resources/share/octave/3.0.0/m/io:
         
/Applications/Octave.app/Contents/Resources/share/octave/3.0.0/m/linear-algebra:
         
/Applications/Octave.app/Contents/Resources/share/octave/3.0.0/m/miscellaneous:
         
/Applications/Octave.app/Contents/Resources/share/octave/3.0.0/m/optimization:
         /Applications/Octave.app/Contents/Resources/share/octave/3.0.0/m/path:
         /Applications/Octave.app/Contents/Resources/share/octave/3.0.0/m/pkg:
         /Applications/Octave.app/Contents/Resources/share/octave/3.0.0/m/plot:
         
/Applications/Octave.app/Contents/Resources/share/octave/3.0.0/m/polynomial:
         
/Applications/Octave.app/Contents/Resources/share/octave/3.0.0/m/quaternion:
         /Applications/Octave.app/Contents/Resources/share/octave/3.0.0/m/set:
         
/Applications/Octave.app/Contents/Resources/share/octave/3.0.0/m/signal:
         
/Applications/Octave.app/Contents/Resources/share/octave/3.0.0/m/sparse:
         
/Applications/Octave.app/Contents/Resources/share/octave/3.0.0/m/specfun:
         
/Applications/Octave.app/Contents/Resources/share/octave/3.0.0/m/special-matrix:
         
/Applications/Octave.app/Contents/Resources/share/octave/3.0.0/m/startup:
         
/Applications/Octave.app/Contents/Resources/share/octave/3.0.0/m/statistics:
         
/Applications/Octave.app/Contents/Resources/share/octave/3.0.0/m/statistics/base:
         
/Applications/Octave.app/Contents/Resources/share/octave/3.0.0/m/statistics/distributions:
         
/Applications/Octave.app/Contents/Resources/share/octave/3.0.0/m/statistics/models:
         
/Applications/Octave.app/Contents/Resources/share/octave/3.0.0/m/statistics/tests:
         
/Applications/Octave.app/Contents/Resources/share/octave/3.0.0/m/strings:
         
/Applications/Octave.app/Contents/Resources/share/octave/3.0.0/m/testfun:
         
/Applications/Octave.app/Contents/Resources/share/octave/3.0.0/m/time');
## End savepath auto-created section



reply via email to

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