Skip to content
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

Exec format error #8

Open
JeanMamelle opened this issue Sep 4, 2024 · 7 comments
Open

Exec format error #8

JeanMamelle opened this issue Sep 4, 2024 · 7 comments
Assignees
Labels
bug Something isn't working

Comments

@JeanMamelle
Copy link

Hey,

Thanks for your work, I'm trying to use this repo to automate an Affinity Install and encountered the following error:

nix run github:mrshmllow/affinity-nix#designer --impure NIXPKGS_ALLOW_UNFREE=1
       ... (builds)
       >
       > ***
       > Unfortunately, we cannot download file affinity-designer-msi-2.5.5.exe automatically.
       > Please go to https://store.serif.com/en-gb/update/windows/designer/2/ to download it yourself, and add it to the Nix store
       > using either
       >   nix-store --add-fixed sha256 affinity-designer-msi-2.5.5.exe
       > or
       >   nix-prefetch-url --type sha256 file:///path/to/affinity-designer-msi-2.5.5.exe
       >
       > ***
       >
       For full logs, run 'nix log /nix/store/v9alfcaly9adzwckap8rm9akq34v83yl-affinity-designer-msi-2.5.5.exe.drv'.

I did that and downloaded Affinity on my own (the MSI EXE NON-ARM version) but this happens:

error: unable to execute '/nix/store/yd76v406sg782rl09fxxv4vr7xir4v17-Affinity-Designer-2/bin/run-Affinity-Designer-2': Exec format error

Any suggestion ?

@JeanMamelle
Copy link
Author

dirty fix:

  • I added a XDG_DATA_HOME
  • I manually ran the installer and created the .desktop using the scripts written in the run-Affinity-Designer-2 file

@mrshmllow
Copy link
Owner

I am also experiencing this, executing that path manually works fine. May be a shebang thing? nix being weird

@mrshmllow mrshmllow added the bug Something isn't working label Sep 4, 2024
@mrshmllow mrshmllow self-assigned this Sep 4, 2024
@mrshmllow
Copy link
Owner

mrshmllow commented Sep 6, 2024

Both issues appear to of been fixed :) Lemme know if its still broken for you. You can add .desktop files with nix profile install, btw

@enesbala5
Copy link

I still have this issue. The flake is not working for me as of right now. I would really appreciate if you could take a look at it.

@mrshmllow mrshmllow reopened this Sep 23, 2024
@mrshmllow
Copy link
Owner

Are you experiencing the exact same error log?

@enesbala5
Copy link

Yes

@mrshmllow
Copy link
Owner

I cannot reproduce a Exec format error, make sure to use the latest version of this repo. Maybe your not on x86?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants
@mrshmllow @enesbala5 @JeanMamelle and others