-
Notifications
You must be signed in to change notification settings - Fork 83
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
glibc version not found #104
Comments
I'm facing the same issue on my RHEL v8.9 machine.
The glibc version provided with RHEL v8.9 seems to be 2.28:
Any chance to get |
Hi, thanks for reporting. I'll try to get it running on my Fedora box and report back (so far I have only tested on my OSX machine) |
Same issue for Ubuntu 20.04.6 LTS in Windows WSL |
#102 This was my issue and had to downgrade. Is it possible for the Homebrew formula to be updated to compile similar to the kubernetes-cli one? This would hopefully avoid the binaries being built with different libc? |
Do you have a link to the kubernetes-cli homebrew formula where I could see how they do it? Thanks! |
I was able to get this to work. class Switcher < Formula
desc "Providing the binary executable for the 'switch' script."
homepage "https://github.com/danielfoehrKn/kubeswitch"
url "https://github.com/danielfoehrKn/kubeswitch.git",
tag: "0.9.1",
revision: "9f82b5f75bbc51615d97d006df86f1b9939123fd"
license "Apache-2.0"
head "https://github.com/danielfoehrKn/kubeswitch.git", branch: "master"
depends_on "bash" => :build
depends_on "coreutils" => :build
depends_on "go" => :build
def install
rm_rf ".brew_home"
ldflags = %W[
-w
-X github.com/danielfoehrkn/kubeswitch/cmd/switcher.version=#{version}
-X github.com/danielfoehrkn/kubeswitch/cmd/switcher.buildDate=#{time.iso8601}
]
ENV.prepend_path "PATH", Formula["coreutils"].opt_libexec/"gnubin" # needs GNU date
system "go", "build", *std_go_args(ldflags:), "./cmd/main.go"
generate_completions_from_executable(bin/"switcher", "completion", base_name: "switcher")
end
def caveats
<<~EOS
To setup shell integration, add this to your shell configuration:
# bash
source <(switcher init bash)
# zsh
source <(switcher init zsh)
# fish
switcher init fish | source
EOS
end
test do
system "#{bin}/switcher", "-h"
end
end After that I didn't end up putting anything in bashrc since the completions were done. switcher works... now if you want to use s or switch then you could do Hope this helps? |
|
https://github.com/Homebrew/homebrew-core/blob/master/Formula/k/kubernetes-cli.rb |
Totally had forgotten you have 2 Homebrew formulas so I'm curious if the other |
Thanks! I will have to try this out before putting it in the formula. |
@danielfoehrKn I had to make one change for this to work when using a specific version of the formula like when extracting. https://github.com/cdenneen/homebrew-taps/blob/main/Formula/switcher.rb So that would work for latest and when you extract out a specific version like: It's still works. |
same for me on Ubuntu 20.04 LTS
i had to rollback to version 0.7.2: |
I've tried to download the switcher binary directly instead of using a package manager. It returned an error about a missing glibc version. Are there any steps that I've missed? I (perhaps naively) thought that Go apps didn't ever have external dependencies.
produces this output
linux machine
The text was updated successfully, but these errors were encountered: