{"id":529,"date":"2021-02-02T13:50:13","date_gmt":"2021-02-02T04:50:13","guid":{"rendered":"https:\/\/deskplate.net\/blog\/2021\/02\/02\/an-error-occurred-while-installing-mysql2-0-4-10-and-bundler-cannot-continue-make-sure-that-gem-install-mysql2-v-0-4-10-source-https-rubygems-org-succeeds-before-bundling\/"},"modified":"2021-02-02T13:50:13","modified_gmt":"2021-02-02T04:50:13","slug":"an-error-occurred-while-installing-mysql2-0-4-10-and-bundler-cannot-continue-make-sure-that-gem-install-mysql2-v-0-4-10-source-https-rubygems-org-succeeds-before-bundling","status":"publish","type":"post","link":"https:\/\/deskplate.net\/blog\/archives\/529","title":{"rendered":"An error occurred while installing mysql2 (0.4.10), and Bundler cannot continue. Make sure that `gem install mysql2 -v &#8216;0.4.10&#8217; &#8211;source &#8216;https:\/\/rubygems.org\/&#8217;` succeeds before bundling."},"content":{"rendered":"<p>bundle install  \u3067\u304d\u306a\u3044\u5834\u5408<br \/>\n$ brew info openssl<br \/>\n$ export LDFLAGS=&#8221;-L\/usr\/local\/opt\/openssl\/lib&#8221;<br \/>\n$ export CPPFLAGS=&#8221;-I\/usr\/local\/opt\/openssl\/include&#8221;<br \/>\n$ bundle config &#8211;local build.mysql2 &#8220;&#8211;with-cppflags=-I\/usr\/local\/opt\/openssl\/include&#8221;<br \/>\n$ bundle config &#8211;local build.mysql2 &#8220;&#8211;with-ldflags=-L\/usr\/local\/opt\/openssl\/lib&#8221;<br \/>\n$ bundle install &#8211;path vendor\/bundle<\/p>\n","protected":false},"excerpt":{"rendered":"<p>bundle install \u3067\u304d\u306a\u3044\u5834<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18],"tags":[],"class_list":["post-529","post","type-post","status-publish","format-standard","hentry","category-ruby"],"_links":{"self":[{"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/posts\/529","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/comments?post=529"}],"version-history":[{"count":0,"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/posts\/529\/revisions"}],"wp:attachment":[{"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/media?parent=529"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/categories?post=529"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/tags?post=529"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}