Check out example codes for "An error occurred while installing mysql2 (0.5.3)". It will help you in understanding the concepts better.

Code Example 1

$ bundle config --local build.mysql2 "--with-ldflags=-L/usr/local/opt/openssl/lib --with-cppflags=-I/usr/local/opt/openssl/include"

Learn ReactJs, React Native from akashmittal.com