Skip to content

Conversation

@IstiakAR
Copy link

Added README instructions for Arch (tested), Fedora, and Ubuntu (untested).

@ThatOtherAndrew
Copy link
Owner

Oops, does the executable not launch on non-NixOS systems? This is news to me, and is also a major screwup if so 😭

@IstiakAR
Copy link
Author

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.

@ThatOtherAndrew
Copy link
Owner

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!!

@cilginc
Copy link
Contributor

cilginc commented Oct 15, 2025

Oops, does the executable not launch on non-NixOS systems? This is news to me, and is also a major screwup if so 😭

It seems that the compiled binary may not work properly on every system.
For now, I recommend users to compile it themselves (I'll rewrite the build workflow without Nix soon).

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!
My PRs are coming soon.

@ThatOtherAndrew
Copy link
Owner

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!

@ThatOtherAndrew
Copy link
Owner

Closing this in favour of improving the build system (e.g. #7).

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 this pull request may close these issues.

3 participants