-
Notifications
You must be signed in to change notification settings - Fork 368
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
opam init cannot find tools #5373
Comments
Ouch - something appears to be going very wrong with opam's permissions checking on commands, judging by the fact you can't even get |
This is on my employer's machine, running a custom linux distro based on debian testing.
Line 386 in 6875b92
From the
If |
Thanks for this! (I'm must confess to being disproportionately pleased to have correctly identified that The fix in opam I think will be to remove the manual permissions checking and use #include <stdio.h>
#include <unistd.h>
#include <limits.h>
int main (void) {
printf("sysconf(_SC_NGROUPS_MAX) = %ld\nNGROUPS_MAX = %d\n", sysconf(_SC_NGROUPS_MAX), NGROUPS_MAX);
} |
Yes, well done! :)
Turns out I have multiple The other For me personally, I can workaround by using version |
Indeed - having checked further, we build the binaries with Alpine and it turns out that has |
Thanks Kate! I'll try it out when I have a chance. |
Are we able to link it to any issue in musl? The other proposals are good improvements (and we should/will do it), but the bug was in the building of our release binaries, not in opam itself, so this is fixed. |
musl doesn't have a bug tracker, only a mailing-list and i can count at least two "tickets" about it on there: |
I asked around on IRC and @nekopsykose can do the liaison if anything changes on this issue in musl, while the devs setup a bugtracker we can point to. |
We've tried with the 2.1.5 release and still get this error. It was quite hard to track this down. Especially annoying because the check for Kind of insane that the issue is the number of groups. I don't know what exactly you're doing but have you considered that it's a bit over-engineered? Just try running |
Which binary did you use? Is that from a distribution or using the install.sh script? |
The one from GitHub Releases. We also tried the install script but I believe it uses the same binary. |
arf it looks like it was hotfixed to 2.1.4 but we forgot to merge #5383 so i believe we forgot about it in 2.1.5. That's embarrassing, sorry about that. While we figure this out, could you try the 2.1.4 release instead? |
Yep, 2.1.4 worked 👍🏻 |
All the 2.2.0 releases going forward have the fix. As soon as #5726 is merged you should be able to run and get a version that includes the fix:
|
I'm trying to run
opam init
for the very first time.However, I do have most (or all) of those tools.
Using
strace
I see thatopam
finds the corrcect path, but seems to reject it and continue the search.And indeed, there is a
/usr/bin/curl
binary which I can execute.Why doesn't
opam
find the tools on my system?Note that I'm able to run
lsb_release
.The text was updated successfully, but these errors were encountered: