r/AlpineLinux • u/Chester-Berkeley • Oct 02 '26
Is it possible for Minecraft to run natively with musl libc?
I initially wanted to post this on the old Chimera Linux subreddit because I had a question about the Video Games page, but since it's discontinued and Alpine Linux also uses musl libc, I believe this is the ideal place.
Anyway, on Chimera Linux, I had many problems trying to run Minecraft (without Flatpak). Chimera has PrismLauncher in its repositories, but it says it needs to use a glibc compatibility layer for musl libc. This confuses me a lot because PrismLauncher is available for FreeBSD (which uses a completely different libc), and it doesn't need compatibility layers; it's all native. Why can't I run Minecraft without compatibility layers? Or is this just a problem in Chimera Linux that Alpine Linux has resolved?
I know that the reason stated on the page I mentioned is: "As Minecraft comes with native binaries built for Glibc in its packaging," but isn't the game in Java? Even if C/C++ binaries existed, wouldn't it be possible to compile them with musl?
9
u/New_Hold8135 Oct 02 '26
Yes minecraft is java application in base and java already has a musl version so you only need a launcher which we usually use prismlauncher https://pkgs.alpinelinux.org/package/v3.23/community/x86_64/prismlauncher
2
u/TheLastTreeOctopus Oct 02 '26
Why do you need a musl compatible version? A compatibility layer isn't going to noticeably affect performance or anything (I speak from experience, having played Minecraft on Alpine on a shitty, outdated laptop). Think of the compatibility layer as yet another dependency. Just stop overthinking it and play the game 🤷♀️
1
u/EYEHKEYER_yeker Oct 02 '26
just use flatpak fr
0
u/Xerotras Oct 02 '26
I'm gave up with the original. I had it once. It want's to connect with MS. I play only a little so I use a clone called minetest you can directly install with apk. It doesn't need java. I don't want Java on Alpine.
Otherwise install flatpak. I use flatpak for some tools. And for example if you want watch Netflix, you need the firefox version on flatpak.