WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
HOMEBREW_VERSION: 4.4.24
ORIGIN: https://github.com/Homebrew/brew
HEAD: 2f6db3757e6c8533750264c0d397c3671665e2f4
Last commit: 9 days ago
Branch: stable
Core tap JSON: 18 Mar 13:04 UTC
HOMEBREW_PREFIX: /home/linuxbrew/.linuxbrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_DISPLAY: :1
HOMEBREW_MAKE_JOBS: 16
Homebrew Ruby: 3.3.7 => /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/portable-ruby/3.3.7/bin/ruby
CPU: 16-core 64-bit zen4
Clang: N/A
Git: 2.43.0 => /bin/git
Curl: 8.5.0 => /bin/curl
Kernel: Linux 6.11.0-19-generic x86_64 GNU/Linux
OS: KDE neon 6.3 (noble)
Host glibc: 2.39
/usr/bin/gcc: 13.3.0
/usr/bin/ruby: 3.2.3
glibc: N/A
gcc@11: N/A
gcc: 14.2.0_1
xorg: N/A
Output of brew doctor
Your system is ready to brew.
Description of issue
I'm having some conflicts caused by dependencies of programs installed through brew, where other programs & scripts attempting to call their dependencies are getting something from Homebrew when they should not, due to Homebrew putting itself at the beginning of my $PATH. If I could move Homebrew's directories to the end of $PATH instead of the beginning, it should solve this. I have figured out how to fix this permanently for my shell by just editing its config files, but that only applies to the shell, not to the rest of my system, so conflicts still happen outside of my shell. I've done some research & everything seems to point to rearranging directories in /etc/environment, but the Homebrew directories aren't even in there. What file is Homebrew adding its directories to to put itself in my $PATH? How can I make Homebrew's directories append to my $PATH instead of prepend?
I've searched through the discussions & found someone with a similar, but not identical, problem, & I believe a solution to their problem would solve mine too, since the conflicts I'm getting are mostly due to dependencies being in $PATH.
Homebrew sets all its environment variables at the point in your shell startup that you run eval "$(/path/to/brew shellenv)". You can move that line to before your other PATH-setting statements.
Homebrew sets all its environment variables at the point in your shell startup that you run eval "$(/path/to/brew shellenv)". You can move that line to before your other PATH-setting statements.
I had that before, but no other path setting statements. My config.fish is pretty much empty. I think what happened is that also exported $PATH, so it applied to more than just the shell. After removing that line from my config.fish, I restarted the computer for an update & my $PATH was as if Homebrew was never installed. I thought I was going insane until I realized what I did. Instead of putting that line back, I instead added export PATH="all:the:default:paths:/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin", & now all of the conflicts are gone! I was just about to comment & close this with that. Thank you for the help again!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Homebrew sets all its environment variables at the point in your shell startup that you run
eval "$(/path/to/brew shellenv)". You can move that line to before your other PATH-setting statements.