I am having some problems when trying to install mysql2
gem for Rails. When I try to install it by running bundle install
or gem install mysql2
it gives me the following error:
Error installing mysql2: ERROR: Failed to build gem native extension.
How can I fix this and successfully install mysql2
?
转载于:https://stackoverflow.com/questions/3608287/error-installing-mysql2-failed-to-build-gem-native-extension