Closed MoeweX closed 6 years ago
Aha: looks like this might be a simple shell configuration problem:
Warning: Homebrew's sbin was not found in your PATH but you have installed
formulae that put executables in /usr/local/sbin.
Consider setting the PATH for example like so
echo 'export PATH="/usr/local/sbin:$PATH"' >> ~/.bash_profile
Try doing that.
This works fine, but I thought homebrew is not supposed to install formula binaries at sbin?
It is, actually. The issue I was referring to on discourse — what happened to me when I tried to install mosquitto
— is that brew
should ensure that the sbin
directory exists first, probably creating it if necessary, and not error out due to a missing directory there. I had assumed that this was the problem for you too, but looking at this longer doctor
output, it seems like your installation worked correctly, and you just need your $PATH
configured.
Alright, then thanks!
Note to self and other maintainers: it looks like my /usr/local/sbin
directory disappeared during my upgrade to 10.12 or 10.13; it wasn't overlooked by the brew
installer. Maybe should add a check for its existence into doctor
; which currently intentionally ignores missing sbin
dirs.
I believe there is a dot file you can add to an empty dir to tell the macOS installer to back off. Perhaps we should add that to the install script for brew.
.com.apple.installer.keep
may be the one you're looking for.
Yeah that. Probably any file woks so that dir is non-empty but just a guess.
I have the same issue macOS 10.13.4 (17E202)
brew install mosquito
==> Downloading https://homebrew.bintray.com/bottles/mosquitto-1.4.14_2.high_sierra.bottle.tar.gz
Already downloaded: /Users/doutdex/Library/Caches/Homebrew/mosquitto-1.4.14_2.high_sierra.bottle.tar.gz
==> Pouring mosquitto-1.4.14_2.high_sierra.bottle.tar.gz
Error: The brew link
step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink sbin/mosquitto
/usr/local/sbin is not writable.
Directory "/usr/local/sbin" doesn't exist!
Please note we will close your issue without comment if you delete, do not read or do not fill out the issue checklist below and provide ALL the requested information. If you repeatedly fail to use the issue template, we will block you from ever submitting issues to Homebrew again.
brew install
(orupgrade
,reinstall
) a single, official formula (not cask)? If it's a generalbrew
problem please file this issue at Homebrew/brew: https://github.com/Homebrew/brew/issues/new/choose. If it's abrew cask
problem please file this issue at https://github.com/Homebrew/homebrew-cask/issues/new/choose. If it's a tap (e.g. Homebrew/homebrew-php) problem please file this issue at the tap.brew update
and can still reproduce the problem?brew doctor
, fixed all issues and can still reproduce the problem?brew gist-logs <formula>
(where<formula>
is the name of the formula that failed) and included the output link?Error: No logs.
brew gist-logs
didn't work: ranbrew config
andbrew doctor
and included their output with your issue?To help us debug your issue please explain:
What you were trying to do (and why) I tried to install mosquitto with
brew install mosquitto
What happened (include command output) It appears to install everything correctly.
To have launchd start mosquitto now and restart at login: brew services start mosquitto Or, if you don't want/need a background service you can just run: mosquitto -c /usr/local/etc/mosquitto/mosquitto.conf ==> Summary 🍺 /usr/local/Cellar/mosquitto/1.4.14_2: 33 files, 629.8KB