Skip to content
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

Error message during macOS / Darwin install: ldd: command not found #44

Closed
sumbach opened this issue Nov 28, 2023 · 0 comments · Fixed by #41
Closed

Error message during macOS / Darwin install: ldd: command not found #44

sumbach opened this issue Nov 28, 2023 · 0 comments · Fixed by #41

Comments

@sumbach
Copy link
Contributor

sumbach commented Nov 28, 2023

During chezmoi installation on macOS, I see the following disconcerting (but ultimately harmless?) message:

$ asdf install chezmoi latest
/Users/samumbach/.asdf/plugins/chezmoi/lib/utils.bash: line 54: ldd: command not found
* Downloading chezmoi release 2.42.0...
chezmoi 2.42.0 installation was successful!

$ uname -a
Darwin macbach-pro 16.7.0 Darwin Kernel Version 16.7.0: Sun Jun  2 20:26:31 PDT 2019; root:xnu-3789.73.50~1/RELEASE_X86_64 x86_64

This appears to be related to the detect_variant() function added for musl libc; see also:

I can see two potentially simple fixes:

  1. Discard all stderr from ldd (which will hide this error, but may obscure other potentially useful error output).
  2. Explicitly detect when ldd is present; assume -musl variant is not necessary when ldd missing.

I'll open a branch/PR for latter, but please let me know if you'd rather go with the first.

Thanks for the plugin @joke !!! 😄

sumbach added a commit to sumbach/asdf-chezmoi that referenced this issue Nov 28, 2023
Signed-off-by: Sam Umbach <samumbach@gmail.com>
@joke joke closed this as completed in 9e7d152 Nov 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant