{"id":11328,"date":"2022-10-10T22:17:44","date_gmt":"2022-10-10T13:17:44","guid":{"rendered":"https:\/\/www.webcyou.com\/?p=11328"},"modified":"2022-10-10T22:18:08","modified_gmt":"2022-10-10T13:18:08","slug":"m1-mac-ruby-rbenv-install-error","status":"publish","type":"post","link":"https:\/\/www.webcyou.com\/?p=11328","title":{"rendered":"M1 Mac ruby rbenv install error"},"content":{"rendered":"\n<p>\u3069\u3082\u3067\u3059\u3002<\/p>\n<p>\u3082\u3046\u3001M1Mac mini\u3092\u4f7f\u3044\u3060\u3057\u3066\u304b\u308c\u3053\u308c\u7d4c\u3061\u307e\u3059\u304c\u3001\u5148\u65e5rbenv\u3067ruby\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u884c\u3063\u305f\u3068\u3053\u308d\u3001\u30a8\u30e9\u30fc\u306b\u906d\u9047\u3057\u3066\u3057\u307e\u3044\u3001\u5c11\u3057\u6642\u9593\u3092\u596a\u308f\u308c\u305f\u306e\u3067\u899a\u66f8\u3068\u3057\u3066\u3002<\/p>\n<p>\u00a0<\/p>\n<h5>\u3010\u74b0\u5883\u3011<\/h5>\n<ul>\n<li>Mac mini (M1, 2020)<\/li>\n<li>macOS Big Sur 11.6<\/li>\n<\/ul>\n<h4>\u906d\u9047\u3057\u305f\u30a8\u30e9\u30fc<\/h4>\n<p>\u5f90\u306b\u3001rbenv\u3092\u7528\u3044\u3066 ruby 3.1.2\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3088\u3046\u3068\u3059\u308b\u3068\u3001<\/p>\n<pre><pre class=\"brush: plain; title: ; notranslate\" title=\"\">$ rbenv install 3.1.2<\/pre><\/pre>\n<p>\u30a8\u30e9\u30fc\u306b\u3076\u3061\u5f53\u305f\u308b\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">ruby-build: using readline from homebrew\nruby-build: using gmp from homebrew\n\nBUILD FAILED (macOS 11.6 using ruby-build 20220930)<\/pre>\n<p>\u30cd\u30c3\u30c8\u3067\u8abf\u3079\u308b\u3068\u3001\u591a\u304f\u30d2\u30c3\u30c8\u3059\u308b\u306e\u304c\u300creadline\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u306a\u3044\u306e\u3067\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u300d\u3068\u304b\u3001readline\u304c\u554f\u984c\u306b\u306a\u3063\u3066\u3044\u308b\u30b1\u30fc\u30b9\u304c\u591a\u3081\u3067\u3059\u304c\u3001readline\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u3057\u3001\u554f\u984c\u3082\u306a\u3055\u305d\u3046\u3067\u3001\u3069\u3046\u3082\u4eca\u56de\u306f\u3001\u30cd\u30c3\u30c8\u3067\u4e0a\u304c\u3063\u3066\u3044\u308b\u5bfe\u7b56\u3068\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u7570\u306a\u308b\u69d8\u5b50\u3002<\/p>\n<p>\u3068\u3044\u3046\u306e\u3082\u3001using gmp from homebrew\u3053\u3053\u307e\u3067\u8868\u793a\u3057\u3066\u3044\u308b\u306e\u3067\u3001gmp\u304c\u60aa\u3055\u3057\u3066\u3044\u308b\u306e\u3067\u306f\u3001\u3068\u8272\u3005\u3068\u8a66\u3059\u304c\u4e00\u5411\u306b\u89e3\u6c7a\u304c\u3067\u304d\u306a\u3044\u3002<\/p>\n<p>\u3067\u3001Configure options used:\u00a0\u3092\u898b\u3066\u307f\u308b\u3068\u3001<\/p>\n\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">--with-openssl-dir=\/opt\/homebrew\/opt\/openssl@3<\/pre>\n\n<p>\u3068\u306a\u3063\u3066\u3044\u3066\u3001\u3069\u3046\u3084\u3089openssl@1.1\u3092\u4f7f\u308f\u306a\u3044\u3068\u3044\u3051\u306a\u3044\u3068\u306e\u60c5\u5831\u306b\u884c\u304d\u7740\u304d\u3001openssl@1.1\u3092\u4f7f\u3063\u3066\uff08\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\uff09\u518d\u5ea6\u5b9f\u884c<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">RUBY_CONFIGURE_OPTS=--with-openssl-dir=\"$(brew --prefix openssl@1.1)\" \\rbenv install 3.1.2<\/pre>\n<p>\u3068\u3001\u74b0\u5883\u5909\u6570\u300cRUBY_CONFIGURE_OPTS\u300d\u3067openssl\u306e\u6307\u5b9a\u3067\u3001openssl@1.1\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u3067\u3001\u7121\u4e8b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>\u306a\u306b\u3084\u3089\u6642\u9593\u4f7f\u3063\u3066\u3057\u307e\u3063\u305f\u611f\u3058\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3069\u3082\u3067\u3059\u3002 \u3082\u3046\u3001M1Mac mini\u3092\u4f7f\u3044\u3060\u3057\u3066\u304b\u308c\u3053\u308c\u7d4c\u3061\u307e\u3059\u304c\u3001\u5148\u65e5rbenv\u3067ruby\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u884c\u3063\u305f\u3068\u3053\u308d\u3001\u30a8\u30e9\u30fc\u306b\u906d\u9047\u3057\u3066\u3057\u307e\u3044\u3001\u5c11\u3057\u6642\u9593\u3092\u596a\u308f\u308c\u305f\u306e\u3067\u899a\u66f8\u3068\u3057\u3066\u3002 \u00a0 \u3010\u74b0\u5883\u3011 Mac m [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":11329,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[155],"tags":[37,47,183,45,297,178,118],"class_list":["post-11328","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ruby","tag-iphone-","tag-javascript-2","tag-ruby","tag-web","tag-297","tag-178","tag-118"],"_links":{"self":[{"href":"https:\/\/www.webcyou.com\/index.php?rest_route=\/wp\/v2\/posts\/11328","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.webcyou.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.webcyou.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.webcyou.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webcyou.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=11328"}],"version-history":[{"count":8,"href":"https:\/\/www.webcyou.com\/index.php?rest_route=\/wp\/v2\/posts\/11328\/revisions"}],"predecessor-version":[{"id":11337,"href":"https:\/\/www.webcyou.com\/index.php?rest_route=\/wp\/v2\/posts\/11328\/revisions\/11337"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.webcyou.com\/index.php?rest_route=\/wp\/v2\/media\/11329"}],"wp:attachment":[{"href":"https:\/\/www.webcyou.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=11328"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.webcyou.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=11328"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webcyou.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=11328"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}