-
Notifications
You must be signed in to change notification settings - Fork 19
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
Escript Troubles #35
Comments
FYI I posted a simple Elixir repo which recreates the issue. See https://github.com/andyl/zing |
I'm, unfortunately, not a user of Escripts so I don't know. I had the impression that libraries that supplied port binaries were incompatible with Escripts, but that doesn't sound like the error that you're running into. Hopefully someone lurking can provide a clue. |
Just a thought, but does |
Yeah I think the issue is that Although another alternative is to modify muontrap so it doesn't depend on But for a partial example of what the calling code for that would look like you can take a look at how I handled it for erlexec: A third alternative would be use erlexec (or its exexec wrapper) directly since it fulfills a similar goal to muontrap, unless what you needed was the cgroup support. |
+1 to use Burrito instead of Escripts. That will work since you'll be making and running an OTP release. That's an interesting workaround to Escripts for erlexec. If the only change to |
From my Linux dev box I couldn't get Burrito to cross compile. I expect because Burrito is new and not yet fully tested. Other than that Burrito runs MuonTrap as expected & looks like a good workaround! The MuonTrap / Burrito demo is at https://github.com/andyl/mt_demo MuonTrap is super nice! Thanks again for the tips. |
Thanks for the update! Burrito is actively being worked on so, I expect it to get better. I really like the Burrito approach for this so I'm going to close this. Let me know if you have any other issues. |
Using Muontrap in :dev and :test - all good.
When running in an Escript, I get an error
ArgumentError unknown application :muontrap
.This comes from
MuonTrap.Port#muontrap_path/0
:Application.app_dir(:muontrap, ["priv", "muontrap"])
When I look in the
_build
directory I can see the/priv/muontop
executable...Does anyone have an idea of why this is failing in an Escript?
The text was updated successfully, but these errors were encountered: