3 ms·
Odd, I'm getting $ ./printimage.com image.jpg run-detectors: unable to find an interpreter for ./printimage.com
by kidsil 6y ago
Odd, I'm getting
$ ./printimage.com image.jpg
run-detectors: unable to find an interpreter for ./printimage.com
- jart 6y agoAuthor here. That error happens if you have binfmt_misc enabled. The solution is simple: sudo sh -c "echo ':APE:M::MZqFpD::/bin/sh:' >/proc/sys/fs/binfmt_misc/register" I intend to upstream a patch with the Linux kernel so it can do this automatically. If any kernel devs are reading, please email me!
- est 6y agoDoes it work on cheap Xen vps? Because "/proc/sys/fs/binfmt_misc/register" looks absent from mine.
- jart 6y agoThat's strange. I'd recommend filing an issue. Any details on how I can reproduce the error will be helpful, even if I have to temporarily rent one of those things. I'm on a mission to make binaries portable.
- na-- 6y agoFWIW, it works on QubesOS, which is Xen based. Though it works only in my Fedora and Debian VMs, but not on my Archlinux-based one. I think that's because I have WINE installed in the Archlinux VMs, since that's what gets started when I run ./redbean.com. But even after I remove WINE, it still doesn't work, I probably have to restart (i.e. remove WINE from the TemplateVM, not the AppVM) for it to work. In any case, incredible work, I am in awe!
- FeepingCreature 6y agoInstead of sudo sh -c to sudo the redirects, consider echo 'abcde' |sudo tee /proc/bla. Less nesting :)
- npongratz 6y agoDo you mean less syntactical nesting? The pipe to sudo tee creates a new child shell, just as sudo sh -c does.
- FeepingCreature 6y agoYes.