Replies: 1 comment · 7 replies
-
CentOS 7.4 is almost 6 years old as of this writing, so the following may or may not work: mkdir -p ~/tmp
# Download a modern statically-linked curl
curl -L -o ~/tmp/static-curl https://github.com/moparisthebest/static-curl/releases/download/v7.88.1/curl-amd64
chmod +x ~/tmp/static-curl
# Check that you can actually run this binary
~/tmp/static-curl --version
# See if Homebrew accepts it
HOMEBREW_CURL_PATH=${HOME}/tmp/static-curl brew config
# If so, install Homebrew curl with it...
HOMEBREW_CURL_PATH=${HOME}/tmp/static-curl brew install curl
# ...then see if Homebrew's happy to use its own curl
brew config |
Beta Was this translation helpful? Give feedback.
All reactions
-
👍 1
-
Yes, sorry I didn't show that. Here are the results. The first command seemed to run fine: dbarrowman@stark02-vm-lnode02:~ $ HOMEBREW_CURL_PATH=${HOME}/tmp/static-curl brew config Here are the tail results of the 2nd command showing the error. The run output was quite long so I couldn't include all of it. ==> Fetching curl Initializing Automake: READ THIS: https://docs.brew.sh/Troubleshooting /home/dbarrowman/.linuxbrew/Homebrew/Library/Homebrew/utils/github/api.rb:317:in from /home/dbarrowman/.linuxbrew/Homebrew/Library/Homebrew/brew.rb:138:in <main>' /home/dbarrowman/.linuxbrew/Homebrew/Library/Homebrew/formula.rb:2538:in block in system': Failed executing: ./configure --disable-debug --disable-dependency-tracking --disable-silent-rules --prefix=/home/dbarrowman/.linuxbrew/Cellar/xz/5.4.1 (BuildError)from /home/dbarrowman/.linuxbrew/Homebrew/Library/Homebrew/formula.rb:2474:in open' from /home/dbarrowman/.linuxbrew/Homebrew/Library/Homebrew/formula.rb:2474:in system'from /home/dbarrowman/.linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/xz.rb:30:in install' from /home/dbarrowman/.linuxbrew/Homebrew/Library/Homebrew/build.rb:177:in block (3 levels) in install'from /home/dbarrowman/.linuxbrew/Homebrew/Library/Homebrew/extend/kernel.rb:525:in with_env' from /home/dbarrowman/.linuxbrew/Homebrew/Library/Homebrew/build.rb:139:in block (2 levels) in install'from /home/dbarrowman/.linuxbrew/Homebrew/Library/Homebrew/formula.rb:1325:in block in brew' from /home/dbarrowman/.linuxbrew/Homebrew/Library/Homebrew/formula.rb:2705:in block (2 levels) in stage'from /home/dbarrowman/.linuxbrew/Homebrew/Library/Homebrew/extend/kernel.rb:525:in with_env' from /home/dbarrowman/.linuxbrew/Homebrew/Library/Homebrew/formula.rb:2704:in block in stage'from /home/dbarrowman/.linuxbrew/Homebrew/Library/Homebrew/resource.rb:158:in block (2 levels) in unpack' from /home/dbarrowman/.linuxbrew/Homebrew/Library/Homebrew/download_strategy.rb:116:in chdir'from /home/dbarrowman/.linuxbrew/Homebrew/Library/Homebrew/download_strategy.rb:116:in chdir' from /home/dbarrowman/.linuxbrew/Homebrew/Library/Homebrew/download_strategy.rb:103:in stage'from /home/dbarrowman/.linuxbrew/Homebrew/Library/Homebrew/resource.rb:154:in block in unpack' from /home/dbarrowman/.linuxbrew/Homebrew/Library/Homebrew/mktemp.rb:77:in block in run'from /home/dbarrowman/.linuxbrew/Homebrew/Library/Homebrew/mktemp.rb:77:in chdir' from /home/dbarrowman/.linuxbrew/Homebrew/Library/Homebrew/mktemp.rb:77:in run'from /home/dbarrowman/.linuxbrew/Homebrew/Library/Homebrew/resource.rb:266:in stage_resource' from /home/dbarrowman/.linuxbrew/Homebrew/Library/Homebrew/resource.rb:153:in unpack'from /home/dbarrowman/.linuxbrew/Homebrew/Library/Homebrew/resource.rb:127:in stage' from /home/dbarrowman/.linuxbrew/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.8_1/lib/ruby/2.6.0/forwardable.rb:230:in stage'from /home/dbarrowman/.linuxbrew/Homebrew/Library/Homebrew/formula.rb:2684:in stage' from /home/dbarrowman/.linuxbrew/Homebrew/Library/Homebrew/formula.rb:1318:in brew'from /home/dbarrowman/.linuxbrew/Homebrew/Library/Homebrew/build.rb:133:in block in install' from /home/dbarrowman/.linuxbrew/Homebrew/Library/Homebrew/extend/kernel.rb:525:in with_env'from /home/dbarrowman/.linuxbrew/Homebrew/Library/Homebrew/build.rb:128:in install' from /home/dbarrowman/.linuxbrew/Homebrew/Library/Homebrew/build.rb:229:in '
|
Beta Was this translation helpful? Give feedback.
All reactions
-
I set the environment variable: but then tried installing something and it still didn't work: dbarrowman@stark02-vm-lnode02:~ $ brew install tree
Error: tree: Failed to download resource "zlib_bottle_manifest" |
Beta Was this translation helpful? Give feedback.
All reactions
-
Tried setting HOMEBREW_FORCE_BREWED_CURL as well: dbarrowman@stark02-vm-lnode02:~ $ export HOMEBREW_FORCE_BREWED_CURL=1
Error: curl: Failed to download resource "zlib_bottle_manifest"
Error: tree: Failed to download resource "zlib_bottle_manifest" |
Beta Was this translation helpful? Give feedback.
All reactions
-
At this point, you'll have to ask yourself "how badly do I want Homebrew"? You'll be paying a very heavy price for not being able to install Homebrew in the officially sanctioned location. Some formulae have relocatable bottles (e.g. One alternative is to decide exactly what software you need, then download the source tarballs and build them from scratch. You can then configure them with exactly as many features as you require. (Homebrew Either way, you'll have to get comfortable with building from source, and fixing whatever issues crop up. |
Beta Was this translation helpful? Give feedback.
All reactions
-
Yes I agree with what you are saying. This all resulted from me just looking for a way to install certain software and trying to find a way to do that. So it's more of a general problem, and yes, I don't want to have some weird, unstable config that can constantly have issues. I have already installed some things from source so I have a general idea of how to do that. This has also been a good learning experience anyway. Something for the future that I can use for my home setup where I have more control and not this locked down work environment with an ancient Centos image and no root access. :) But I really appreciate you taking the time and effort to help me and you have definitely helped me at least learn some new things. |
Beta Was this translation helpful? Give feedback.
-
Additional Info
Output of
brew config
Output of
brew doctor
Description of issue
I guess I have a "chicken and the egg" problem. Unfortunately I'm on a system without root access. This is actually why I want to use Linux homebrew. The existing version of curl on the system is not current enough for brew. I did install a newer version of curl in my home directory and then pointed brew to that using HOMEBREW_CURL_PATH, but, that fails completely since the versions of curl and libcurl do not match. I don't think I can easily install or run my own version of libcurl?
Homebrew has the option to install curl as well, but, that install itself also needs an existing, new enough, version of curl, already on the system.
Thanks,
Dan
Beta Was this translation helpful? Give feedback.
All reactions