Troubleshooting bundler installation
The bundle install command is used during the Redmine installation or installation of some plugins. The most common reason for bundler installation failing is missing libraries, so gems can't compile. Usually, such problems are resolved by installing the necessary system libraries.
How to do it…
The most common error that you will get while running bundle install is as follows:
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
This error indicates that installation of a gem failed, usually console output will give you exact details on which gem failed to compile, and instruction to run gem install [somegemname]
to install this gem
manually instead of through bundler. To see exact details about missing libs, type the gem install [gemname]
as instructed in console output. Let's take the following example:
An error occurred while installing mysql2 (0.3.20), and Bundler cannot continue. Make sure that `gem install mysql2 -v ...