Closed vitali2y closed 9 months ago
Your distro is configured to block MZ shell scripts. You need to run these commands to fix it:
sudo wget -O /usr/bin/ape https://cosmo.zip/pub/cosmos/bin/ape-$(uname -m).elf
sudo chmod +x /usr/bin/ape
sudo sh -c "echo ':APE:M::MZqFpD::/usr/bin/ape:' >/proc/sys/fs/binfmt_misc/register"
sudo sh -c "echo ':APE-jart:M::jartsr::/usr/bin/ape:' >/proc/sys/fs/binfmt_misc/register"
See also https://github.com/Mozilla-Ocho/llamafile?tab=readme-ov-file#gotchas
Your distro is configured to block MZ shell scripts. You need to run these commands to fix it:
sudo wget -O /usr/bin/ape https://cosmo.zip/pub/cosmos/bin/ape-$(uname -m).elf sudo chmod +x /usr/bin/ape sudo sh -c "echo ':APE:M::MZqFpD::/usr/bin/ape:' >/proc/sys/fs/binfmt_misc/register" sudo sh -c "echo ':APE-jart:M::jartsr::/usr/bin/ape:' >/proc/sys/fs/binfmt_misc/register"
See also https://github.com/Mozilla-Ocho/llamafile?tab=readme-ov-file#gotchas
Thank you very much!
Hello, I failed to compile
llamafile
from sources onLinux Mint 21.2
:make -j $(nproc)
complained withunable to find an interpreter for .cosmocc/3.2.4/bin/mktemper
error: