From Gentoo Wiki
Jump to:navigation Jump to:search

Minecraft is a sandbox game developed by Mojang. The game was developed in Java by creator Markus "Notch" Persson and has been ported to several platforms throughout its development lifecycle. Since the public early alpha release in 2009, the game has sold over 200 million copies making it one of the best selling video games of all time.


Minecraft can be installed using any number of available launchers. While some can be compiled from source, it is recommended to install the package using Portage as this ensures the correct Java builds are installed and maintained on your system.


The games-action/minecraft-launcher package can be found in the GURU overlay. Installation is relatively simple, however if you're unsure about using Overlays, it's recommended you view the wiki, as well as the Layman and Eselect-Repository pages.


Add the GURU repository:

root #eselect repository enable guru


To add the GURU repository using Layman:

root #layman --add guru

After adding the repositories, you may find it necessary to sync Portage:

root #emerge --sync


To install the Minecraft package using portage, execute:

root #emerge --ask games-action/minecraft-launcher


Removing an external repository installation

Remove the minecraft-launcher ebuild:

root #emerge --ask --depclean --verbose games-util/minecraft-launcher


Minecraft launcher errors

Errors with this package are uncommon, however the following have been noted:

  • A specific error throwing "Alarm" and "SaveToBuffer failed" several seconds after launching minecraft-launcher has been noted and is solvable by setting the use flag threads for net-misc/curl.
  • In some instances when executing minecraft-launcher the following output is produced:
user $./minecraft-launcher
[0229/184549.183275:ERROR:sandbox_linux.cc(346)] InitializeSandbox() called with multiple threads in process gpu-process.

This can be resolved by issuing the following options in conjunction with minecraft-launcher:

user $MESA_GLSL_CACHE_DISABLE=true ./minecraft-launcher

See also

  • Games — a landing page for many of the games (especially open source variants) available in Gentoo's main ebuild repository.
  • Java — a programming language, originally developed by Sun Microsystems