An error occurred while installing mysql2 (0.4.10)


$ rails _5.0.1_ new hogehoge -d mysql

実行時

An error occurred while installing mysql2 (0.4.10)

ここでエラーが出るのは2度めなので書いておく

$ gem install mysql2 -v '0.4.10' --source 'https://rubygems.org/' -- --with-cppflags=-I/usr/local/opt/openssl/include --with-ldflags=-L/usr/local/opt/openssl/lib
$ cd hogehoge
$ bundle install

結論としてはCloud9使いたい