-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
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
Homebrew not finding newer git from $PATH #6274
Comments
I created Linuxbrew for this reason, so you're in good company. |
Try these (untested) alternative alternative (alternative²) installation instructions using mkdir -p /home/linuxbrew/.linuxbrew/bin
curl -L https://github.com/Homebrew/brew/archive/2.1.6.tar.gz | tar zx -C /home/linuxbrew/.linuxbrew/Homebrew
ln -s ../Homebrew/bin/brew /home/linuxbrew/.linuxbrew/bin
eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv) |
A couple of options to try to use your local |
Lines 201 to 204 in 6418230
|
Once you get it working, I'd be most happy to review a PR that makes the installation smoother on older distributions. Here's a wiki with installation instructions on for CentOS 6. Feel free to edit it: https://github.com/Linuxbrew/brew/wiki/CentOS6 |
|
I tried the |
Written up at https://joseph-long.com/writing/linuxbrew-with-ancient-git/ for posterity, as the wiki page you linked is archived. If there's another good place to put it, I can copy it over! |
Nice write up! I've tweeted your article here: https://twitter.com/linuxbrew/status/1146457021174054918
😂 This issue still mystifies me. Dealing with a ten year old operating system consumes so much time. It's absolutely insane. Docker and Singularity should help a lot. My site won't use Docker because of security concerns, but they're excited about Singularity. |
That's me! Also, I graduated last month! I have a photo of me wearing a silly hat to prove it. 🎓 Would you mind linking to my web site? https://sjackman.ca |
Hmm. Yes, I forgot about that. Do you have the time and inclination to submit a PR to improve the installation of Homebrew on older distributions? This would largely amount to detecting when |
Here's some of the relevant code: Lines 114 to 128 in 895467a
Lines 151 to 159 in 895467a
Lines 161 to 168 in 895467a
It seems some of this should be happening already. |
In the command output above, you can see brew following the "force brewed git" (and curl) path, but other parts of Homebrew are supplying arguments to git that are too new, and the attempt to install its own I'm not sure if I should go through and make those invocations of |
It's only really |
brew
command and reproduced the problem with multiple formulae? If it's a problem with a single, official formula (not cask) please file this issue at Homebrew/homebrew-core: https://github.com/Homebrew/homebrew-core/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 config
andbrew doctor
and included their output with your issue?What you were trying to do (and why)
brew update
a new install of LinuxBrew to/extra/josephlong/.linuxbrew
.What happened (include command output)
Despite the existence of a newer
git
on$PATH
:Homebrew appears to use system
git
, which is much older:which results in the following errors:
Command output
What you expected to happen
I expected
brew update
to complete without errors.Step-by-step reproduction instructions (by running
brew
commands)brew doctor
brew config
The text was updated successfully, but these errors were encountered: