default path to oct files

John W. Eaton jwe at bevo.che.wisc.edu
Thu Jul 10 10:00:22 CDT 2008


On  9-Jul-2008, JF Cardoso wrote:

| Hello,
| 
| 
| With octave 3.0.0, the defaut path includes both:
|   /usr/local/libexec/octave/3.0.0/oct/i686-pc-linux-gnu
|   /usr/local/libexec/octave/site/oct/api-v32/i686-pc-linux-gnu
| 
| With octave 3.0.1, it only includes:
|   /usr/local/libexec/octave/3.0.1/oct/i686-pc-linux-gnu
| 
| This is a minor annoyance to me which I fixed by adding
|   addpath(octave_config_info.localapioctfiledir) ;
| to my ~/.octaverc file.
| 
| I am reporting this in case this change is unintentional (I cannot
| find mention of it in the Changelog, but I may be looking at the wrong
| places).

Does the /usr/local/libexec/octave/site/oct/api-v32/i686-pc-linux-gnu
directory exist on your system?

The load_path::do_initialize function in src/load-path.cc includes the
lines

  ...

  if (set_initial_path)
    {
      maybe_add_path_elts (sys_path, Vlocal_ver_oct_file_dir);
      maybe_add_path_elts (sys_path, Vlocal_api_oct_file_dir);
      maybe_add_path_elts (sys_path, Vlocal_oct_file_dir);
      maybe_add_path_elts (sys_path, Vlocal_ver_fcn_file_dir);
      maybe_add_path_elts (sys_path, Vlocal_api_fcn_file_dir);
      maybe_add_path_elts (sys_path, Vlocal_fcn_file_dir);
      maybe_add_path_elts (sys_path, Voct_file_dir);
      maybe_add_path_elts (sys_path, Vfcn_file_dir);
    }

  ...

and Vlocal_api_oct_file_dir should be set to the site/oct/APIVER/ARCH
directory, so I think it should be added to the path if it exists.

I see that it is not created by "make install", however, so I've fixed
that in my sources.

Thanks,

jwe


More information about the Octave-maintainers mailing list