Conversation
|
Oops, does the executable not launch on non-NixOS systems? This is news to me, and is also a major screwup if so 😭 |
|
The dynamic loader (ELF interpreter, e.g., ld-linux-x86-64.so.2) can differ between distributions, so a binary built on one distro may fail to execute on another. To run it on a different system, you either need to patch the binary to use your system’s loader or build it from source. |
|
I've done some research (https://antithesis.com/blog/madness/ was a great read) and think I understand what's going on now. I'd much rather do the heavy lifting on the build side of things rather than defer the ld fiddling to the end user, so I'll look into whether Hexecute can be statically compiled or not. Worst case scenario, I can either AppImage it or pop patchelf into the build process (or both). Thank you for your help!! |
It seems that the compiled binary may not work properly on every system. Also, I’ve created an AUR package: hexecute. Feel free to add this link to the README if you’d like. Really love the project, by the way! |
|
Thank you for your contribution!! I'll give it a test and update the README as soon as I'm done with my coursework I'm chewing through right now :p But yeah, doing more digging, it seems like trying to make a one-size-fits-all binary is a bad idea outside of Flatpak. I'll just do it Properly:tm: and build DEBs and whatnot! |
|
Closing this in favour of improving the build system (e.g. #7). |
Added README instructions for Arch (tested), Fedora, and Ubuntu (untested).