-
-
Notifications
You must be signed in to change notification settings - Fork 11.3k
(10.10) not recognizing /usr/local/bin before /usr/bin #29843
Comments
Note that you have a path without a leading Can you confirm your |
@adamv fixed the path, issue still persists.
|
Just to sanity-check, is your PATH exported? |
@mistydemeo yes it is. |
Looking at how the doctor checks work, I want to rewrite them to be work more like the audit checks. |
I'm still having issues, even after reinstall with command line tools. |
The doctor checks for PATH share some |
It looks like that Ruby is executed in a new shell or something, but without the PATH set.. |
To keep the discussion centralized I'll respond to @adamv here:
Yeah sure, but OSX's |
I actually also have problems with git due to the PATH not being set properly. This is unrelated to Homebrew of course, but could maybe help in tackling this problem. $ git pull
/Applications/Xcode.app/Contents/Developer/usr/libexec/git-core/git-pull: line 11: git-sh-setup: No such file or directory |
@koenpunt I'm having the same git issue as well. |
Someone on 10.10 should edit the doctor check to print out |
@adamv here's what it prints:
I've got |
Another thing: running |
|
Running
My path after running
|
@koenpunt I believe it is actually set in if superenv?
# superenv stopped adding brew's bin but generally user's will want it
ENV['PATH'] = ENV['PATH'].split(File::PATH_SEPARATOR).insert(1, "#{HOMEBREW_PREFIX}/bin").join(File::PATH_S>
end |
pretty sure it's done |
@koenpunt https://github.com/jarinudom/homebrew/tree/yosemite |
Looking at the build environment setup isn't going to solve this problem, unfortunately. Can someone having this issue please point me at their (up to date) dotfiles? |
Without invoking |
Is everyone encountering this problem using iTerm2? |
I'm using iTerm2. Edit: So apparently I'm only getting this in iTerm2 and not the default Terminal. |
Ok here's a workaround. Put the following in
Then open a new terminal and everything should work. Not sure why Source: http://www.gnu.org/software/bash/manual/html_node/Bash-Startup-Files.html |
@jarinudom This did not work for me, still the same issue. |
Same |
Never mind, it stopped working after maybe the 3rd or 4th time restarting iTerm2. During that time, I ran |
Strangely, I haven't had any of the problems discussed in this thread despite using iTerm2 since day one of 10.10 DP1. I did do a clean install of 10.10 DP1, so perhaps that's why I didn't have the issue. Did everyone else here update straight on top of Mavericks? |
If you are having this problem, please try this build of iTerm2: It sets the environment up in a slightly different way, although I doubt that will fix the bug. It also logs a bunch of stuff to Console.app. If you can reproduce the bug with this build, please post the log lines that look like:
|
@gnachman your build fixes the issue for me left is currently released iTerm, right is your special build. |
@gnachman thank you, thank you, THANK YOU!!! no more running zsh though bash! this build is fixing this problem for me! › brew doctor
Your system is ready to brew. |
@gnachman This fixed it for me as well. |
@DomT4 I did an upgrade rather than a clean install |
That works for me! |
If the link I posted above works for you, can you confirm that the nightly build (http://iterm2.com/nightly/latest) is broken? I want to be sure the fix is really what I think it is. The nightly build is substantially different than the betas, so I'm concerned that some other difference between beta and nightly was responsible for the fix. |
@gnachman The nightly build is indeed broken for me. |
@gnachman the nightly is also broken for me. |
I'm on Build 1.0.0.20140617-nightly. Haven't been having this issue though. I tried to reproduce the issue but just can't, which has left me rather puzzled. Hopefully this fix works for everyone else though and can be pushed to iTerm2 to fold into the next nightly. |
Seems to be fixed in the DP2. Anyhow, I did solve the double PATH entry in the
|
Presumably those with (legal) access to the 10.10 beta also have access to Apple's bug reporting facilities, no? Isn't the whole idea of the beta to find and fix bugs? Has anyone tried filing a bug report with Apple? In the meantime, I'm leaning towards closing this since it is not something that Homebrew can address. |
Yes. I have already reported it. I just wanted to give an easy temporary solution to the people that need it. |
This should definitely be closed. It is not a homebrew issue. |
I think it's already been submitted as a bug report to Apple by several people. I can always do it again for volume, but I'd presume Apple are at least aware of the situation at this point. No issues with this being closed though. |
same shit in 10.10 final :( |
@idoo this is a bug in iTerm. Please update and your issues will go away. |
@pilif i have Build 2.9.20141027-nightly |
Im on |
but i think v 2.9.20141027-nightly is better (later) |
I recommend not running nightly builds and reporting this to iTerm. |
Homebrew is not recognizing my path. Running
brew doctor
reveals:My path is set as:
The text was updated successfully, but these errors were encountered: