[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Installing Octave via Home-brew on MacOS
From: |
Andrew Janke |
Subject: |
Re: Installing Octave via Home-brew on MacOS |
Date: |
Tue, 17 Nov 2020 06:21:57 -0500 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:78.0) Gecko/20100101 Thunderbird/78.4.3 |
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/octave@6.0.90
Cheers,
Andrew