rambo
rambo copied to clipboard
Issue with running ranbo
When I run rambo:
Rambo.run("ls", ["-l", "-a"])
I am seeing this error:
sh: line 0: exec: /project/_build/dev/lib/rambo/priv/rambo: cannot execute: No such file or directory {:error, "rambo exited with 126"}
What operating system are you using? That smells like the rambo executable is missing..
@OnigiriJack I have noticed this exact error message when attempting to include #13 in my project here https://github.com/etalab/transport-site/pull/2524/files.
I believe it is caused by the lack of compilation of the rust wrapper.
I will open a more detailed issue with my findings.
Hi 👋 this is affecting me on my dev machine (has Apple Silicone, too). There appears to be a /project/_build/dev/lib/rambo/priv/rambo-linux
file. If I manually rename that file to /project/_build/dev/lib/rambo/priv/rambo
everything works as expected.
Edit: So I was able to diagnose this to an issue with using docker buildx
improperly. I fixed my issue and things are working now. You can disregard this.
@iautom8things can you tell us what was your issue? I'm hitting that problem building without docker and have that exact issue.
@iautom8things - any update on your fix? we're running into this now.
Update:
I got it working by:
- referencing the lastest commit in our mix.exs 2f8da3b2bf7814329868c78a1c80153275183735
- installing rust compiler on my machine
- running
mix compile.rambo
to get the correct binary available
Hope that helps someone else.
@emarchak (And @palmobar very sorry for my delayed response!)
Unfortunately it's been so long I forget the exact details. But I remember I was mucking around with docker buildx
and multi arch builds. And I believe I just switched the docker buildx use
back to default
and it started working again.