New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
zsh in CakeBrew doesn't find 'brew' command #65
Comments
Same error on OS X 10.9 and zsh 5.0.2 |
Have you changed your default shell using |
I believe that I changed it using the 'Advanced Options...' on my account in System Prefs, but the global nature of the effect is the same: $ sudo dscl /Search -read "/Users/$USER" UserShell | awk '{print $2}'
/usr/local/bin/zsh
$ cat /etc/shells
# List of acceptable shells for chpass(1).
# Ftpd will not allow users to connect who are not using
# one of these shells.
/bin/bash
/bin/csh
/bin/ksh
/bin/sh
/bin/tcsh
/bin/zsh
/usr/local/bin/zsh I do note that zsh has two instances. |
Can you please paste the output of the command |
$ echo $SHELL;
/usr/local/bin/zsh |
Can you please run the doctor on this debug build and paste the output here? It prints extra information from the environment variables. |
User Shell: /usr/local/bin/zsh
Command: /usr/local/bin/zsh -l -c brew doctor
The Doctor output is going to be different if run from Xcode!!
zsh:1: command not found: brew
Task finished at 2014-06-05 3:50 PM! |
I honestly don't know what else I can do. I know of people using Cakebrew with |
one thing from that issue: "Actually what the app does is find out the used shell, check if it is present in the /etc/shells (you can add it there manually), call the used shell with the arguments -l -c echo $PATH; echo $HOME; and grab the output. " $ /usr/local/bin/zsh -l -c echo $PATH; does not produce any output on my system $ sudo /Applications/Cakebrew.app/Contents/MacOS/Cakebrew although 'brew doctor' in CakeBrew complains: $rvm_path (/usr/local/rvm) does not exist.Your system is ready to brew.
Task finished at 2014-06-05 4:50 PM! |
With me and without the sudo mode, Cakebrew can update the brew database and any formula but I can't launch brew doctor. The log :
I have executed this command but it's change nothing : |
According to zsh guide http://zsh.sourceforge.net/Guide/zshguide02.html the login shell start up files are ~/.zprofile and ~/.zlogin |
Thank you very much for this information. I think I will need to create a wiki for people to setup their zsh shells properly... |
Related problem with zsh, while trying to upgrade brew formulaes in Cakebrew: |
Closing as this issue is a month old and the OP didn't come back with updated info. |
Not sure if this is still an issue, but hopefully I can shed some light on where to look for solutions. OSX/MacOS (at least since 10.9 when I switched from Windows 🙊) ships with the following # system-wide environment settings for zsh(1)
if [ -x /usr/libexec/path_helper ]; then
eval `/usr/libexec/path_helper -s`
fi As described here and in the man page for
which can then be Startup files are loaded in this order: So these are the files that are being loaded by Cakebrew, if Cakebrew is in fact opening a non-interactive login shell:
It seems like @jonphipps and the user in #107 have issues in one of these files, or in |
Adding: export PATH="/opt/homebrew/bin:$PATH" ...to |
In Cakebrew:
In terminal:
# jonphipps in ~ [10:34:17] $ brew update Updated Homebrew from c6d35b4d to 775680fb. ... $ which brew /usr/local/bin/brew $ brew doctor Your system is ready to brew.
In system log:
OS X 10.8.5
Also all Formulae counts are 0.
The text was updated successfully, but these errors were encountered: