Open alexios-angel opened 2 years ago
idk if it's always required, but if you remove support for Windows and XNU (CPPFLAGS=-DSUPPORT_VECTOR=0b1110011
), it should output in a more normal ELF format, which would make that command not necessary
it looks like the README was updated at some point to document this, as well as other workarounds over on jart's article on the APE loader, so I think this issue can be closed.
a few notes of my own, mostly pertaining to Linux and cosmopolitan 2.0:
ape.elf hello.com
; and any remaining arguments will be passed to hello.com
.make o//tool/build/assimilate.com.dbg
.objcopy -O binary -j .ape.loader ape-no-modify-self.o ape.elf && chmod +x ape.elf
.ape-no-modify-self.o
as such: dd if=hello.com of=ape.elf skip=76 count=128 bs=64 && chmod +x ape.elf
. those numbers may be subject to change in future releases.if you do have root permissions, forget all that and run apeinstall.sh or the command from the README.
Does this need to happen on all client Linux machines? I feel as this should be documented.
nope, only distros that use binfmt by default. Alpine doesn't, for example, but many opt to.
I solved permanently by removing binfmt-support
this page helped me to find the package https://www.mail-archive.com/debian-bugs-dist@lists.debian.org/msg1856641.html
Following the directions for the hello.com program in the README.md produces an error "run-detectors: unable to find an interpreter for ./hello.com"
I did some research and found https://issueexplorer.com/issue/jart/cosmopolitan/171 I executed
And it worked.
Does this need to happen on all client Linux machines? I feel as this should be documented.