libv8_monolith.a: No such file or directory

libv8_monolith.a: No such file or directory

When installing the mini_racer gem on certain systems, bundler complains that it can’t compile the native extensions because the library libv8_monolith.a is missing.

This is caused by the lockfile not containing your current platform. It can easily be fixed by running bundle lock --add-platform x86_64-linux, adapting the last option to your actual platform. The next time bundler is run, the required libraries should be ready.