M HYPE SPLASH
// updates

I'm getting «exec format error» when I try to run an executable

By Michael Henderson

I installed Trusty (daily build) a couple days ago and, though overall I'm pleased, I've run into some problems running some standalone apps (not installed) that used to work just fine in 13.10 before the upgrade.

For instance, when I tried to run eclipse standard through the launcher, nothing happened. I tried to double click the executable, and nothing happened. When I attempted to run it the terminal, I got:

~ ❯❯❯ '/home/ecc/Apps/eclipseStandard/eclipse'
zsh: exec format error: /home/joaolopes/Apps/eclipseStandard/eclipse

This behavior is occuring to other apps, like Sublime Text 2 and other versions of eclipse. Do you have any ideia what's going on?

Edit to add: I'm using zsh and the file has the necessary perms.

2 Answers

Run

uname -m

and check if the programs you're trying to execute have the appropriate architecture. ie., 32 vs 64 bit.

1

Note that this error can also occur if, from within zsh, you attempt to directly execute an executable that has zero bytes (such as might happen when you accidentally truncate an executable shell script or never initialize it; by contrast, if you pass such a script as an argument to zsh, the error does not occur).

Observed on zsh 5.0.2.

Note that bash, ksh, dash do not exhibit this problem - they simply silently ignore such invocations.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy