This Page is Out of Date
Blink is now an upstream dependency of Actually Portable Executable. We're not shipping release binaries at the moment. You need to build from source to get the latest and greatest features, such as reverse debugging and JIT compilation.
605k - PE+ELF+MachO+ZIP+SH executable
5.7mb - ELF debug symbols and DWARF data (optional)
curl https://justine.lol/blinkenlights/hello.elf >hello.elf curl https://justine.lol/blinkenlights/blinkenlights-latest.com >blinkenlights.com chmod +x blinkenlights.com ./blinkenlights.com -? # show help ./blinkenlights.com -t hello.elf # launch tui w/ example program
If you get an error like "unable to find an interpreter" or "err:module:import_dll Library" then your system has likely been tuned to use binfmt-misc. You can safely restore the default Linux behavior for just Actually Portable Executables by running the following command:
sudo sh -c "echo ':APE:M::MZqFpD::/bin/sh:' >/proc/sys/fs/binfmt_misc/register"
If you're running an older version of zsh, you may need to run:
bash blinkenlights.com -?Instead of:
./blinkenlights.com -?This only applies to the first invocation, after which the executable header is patched to have the MachO magic number. It's needed because the zsh shell (before we patched it in early 2021) has backwards compatibility issues with UNIX Thompson-shell style scripts.
You may need to run:
blinkenlights.com -?Instead of: