Re: Installing Octave via Home-brew on MacOS

Andrew Janke <[email protected]>
Newsgroups gmane.comp.gnu.octave.general
Message-ID <[email protected]>

On 11/16/20 6:42 PM, oleg efimov wrote:
> Dear Octave,
> 
> We are trying to install Octave on macOS into the usr/bin
> 
> And this is via the home brew.
 > [...]
> [...] >

Hi Oleg,

Is there a particular reason you're installing Octave into /usr instead 
of Homebrew's default location of /usr/local? /usr/bin is a 
system-controlled directory and is going to be protected using macOS's 
special access controls. You should not install anything there. Using 
Homebrew to install to /usr instead of /usr/local is not recommended or 
supported.

 >  GUI version is very nice. Although we are just running another open 
source scripts that are dependent on the terminal command we would just 
have to have Octave in its default directory to be installed on the system.

There is no single default directory for Octave: if you build from 
source it goes into /usr/local or wherever you point it; Homebrew puts 
it in /usr/local or whatever your $PREFIX is; MacPorts puts it in /opt 
or something like that; Snap and Flatpak put it wherever they put it; 
and Linux distributions put it in /usr. If your project requires the 
`octave` command, it should either use $PATH to locate it, or search in 
several locations for it. I'd suggest adding a specific 
$MYAPP_OCTAVE_HOME environment variable to your project so users can 
point it to wherever they have Octave installed. 'Tis the nature of Unix.

You can also install the Octave 6 release candidate with:

$ brew install octave-app/octave-app/[email protected]

Cheers,
Andrew
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.