Check out example codes for "An error occurred while installing mysql (2.9.1), and Bundler cannot continue". It will help you in understanding the concepts better.

Code Example 1

gem install mysql -v '2.9.1' -- --with-cflags=\"-I<openssl_path>/include\" --with-ldflags=\"-L<openssl_path>/lib\"

Learn ReactJs, React Native from akashmittal.com