@burke fixed the problem in version 0.2.12. It’s now possible to install the bootsnap gem on Linux.
On Ubuntu developers must install the libsnappy-dev package, otherwise the installation of the snappy gem will fail.
I submitted a PR which updates the script used in the Beginners Guide to Install Discourse on Ubuntu for Development accordingly.