default path to oct files

JF Cardoso cardoso at enst.fr
Thu Jul 10 11:22:11 CDT 2008


John W. Eaton wrote:
> 
> Does the /usr/local/libexec/octave/site/oct/api-v32/i686-pc-linux-gnu
> directory exist on your system?

Yes it does, but maybe it has been created not at octave install time
but when I installed my own oct files there: this is done via a
Makefile with the following relevant lines:

=====================================================================
InstallDir     := $(shell octave-config --print LOCALAPIOCTFILEDIR)
install:
	echo Oct files will be installed in $(InstallDir)
	install -d $(InstallDir)
	install $(fits_objects) $(InstallDir)
=====================================================================

so the directory will be created by the Makefile if it does not exist
yet.  However, I see:


$ stat   /usr/local/libexec/octave/site/oct/api-v32/i686-pc-linux-gnu
Access: 2008-07-09 18:37:29.000000000 +0200
Modify: 2008-07-09 18:35:08.000000000 +0200
Change: 2008-07-09 18:35:08.000000000 +0200


$ stat   /usr/local/libexec/octave/site/oct/api-v32
Access: 2008-07-10 18:01:08.000000000 +0200
Modify: 2008-04-02 12:38:30.000000000 +0200
Change: 2008-04-02 12:38:30.000000000 +0200


$ ls -l  /usr/local/libexec/octave
drwxr-xr-x 5 root root 4096 2008-04-02 12:36 3.0.0
drwxr-xr-x 5 root root 4096 2008-04-28 17:19 3.0.1
-rw-r--r-- 1 root root 3216 2008-04-28 17:19 ls-R
drwxr-xr-x 4 root root 4096 2008-04-02 12:38 site

So it looks like /usr/local/libexec/octave/site/oct/api-v32 has been
created at install time of octave-3.0.0 and not recreated at install
time of octave-3.0.1

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

Seems consistent.

Cheers, JF


More information about the Octave-maintainers mailing list