{"id":567,"date":"2022-11-11T21:32:46","date_gmt":"2022-11-11T12:32:46","guid":{"rendered":"https:\/\/deskplate.net\/blog\/?p=567"},"modified":"2022-11-12T03:14:53","modified_gmt":"2022-11-11T18:14:53","slug":"m2-mac-rbenv","status":"publish","type":"post","link":"https:\/\/deskplate.net\/blog\/archives\/567","title":{"rendered":"M2 mac  rbenv"},"content":{"rendered":"<p>\u3053\u308c\u304c\u3042\u308b\u3068\u307e\u305a\u3044\u3063\u307d\u3044<br \/>\n% brew uninstall binutils<br \/>\n% rbenv install 3.0.3                                                                     <\/p>\n<p>\u30c0\u30e1\u306a\u6642\u306f<br \/>\n% arch -arm64  rbenv install 3.0.3                                                                     <\/p>\n<p>2.7 \u7cfb\u306f\u305d\u306e\u307e\u307e\u3067OK<br \/>\n% rbenv install 2.7.0<\/p>\n<p>2.6 \u7cfb\u306f\u30aa\u30d7\u30b7\u30e7\u30f3\u304c\u5fc5\u8981<br \/>\n% RUBY_CFLAGS=&#8221;-w&#8221; rbenv install 2.6.0<\/p>\n<p>.zprofile<\/p>\n<p><code><br \/>\neval \"$(\/opt\/homebrew\/bin\/brew shellenv)\"<br \/>\nexport PATH=\"$HOME\/.rbenv\/bin:$PATH\"<br \/>\nif which rbenv > \/dev\/null; then eval \"$(rbenv init -)\"; fi<br \/>\n<\/code><\/p>\n<p>.zshrc<\/p>\n<p><code><br \/>\nexport PATH=\"\/opt\/homebrew\/opt\/ruby\/bin:$PATH\"<br \/>\nexport PATH=\"$HOME\/.rbenv\/bin:$PATH\"<br \/>\neval \"$(rbenv init - zsh)\"<\/p>\n<p># For compilers to find libffi you may need to set:<br \/>\nexport LDFLAGS=\"-L\/opt\/homebrew\/opt\/libffi\/lib\"<br \/>\nexport CPPFLAGS=\"-I\/opt\/homebrew\/opt\/libffi\/include\"<\/p>\n<p># For pkg-config to find libffi you may need to set:<br \/>\nexport PKG_CONFIG_PATH=\"\/opt\/homebrew\/opt\/libffi\/lib\/pkgconfig\"<br \/>\n<\/code><\/p>\n<p>\u30b3\u30f3\u30d1\u30a4\u30eb\u304c\u5931\u6557\u3059\u308b\u5834\u5408\u306f<\/p>\n<p>checking build system type&#8230; arm-apple-darwin22.1.0<br \/>\nchecking host system type&#8230; arm-apple-darwin22.1.0<br \/>\nchecking target system type&#8230; arm-apple-darwin22.1.0<br \/>\nchecking whether the C compiler works&#8230; no<\/p>\n<p>\u30b3\u30f3\u30d1\u30a4\u30e9\u306e\u5834\u6240\u3092\u6307\u5b9a\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5b9f\u884c<\/p>\n<p>% CC=\/usr\/bin\/gcc rbenv install 2.5.1<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u308c\u304c\u3042\u308b\u3068\u307e\u305a\u3044\u3063\u307d\u3044 % brew <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[47,46,13,18],"tags":[],"class_list":["post-567","post","type-post","status-publish","format-standard","hentry","category-m1-m2-mac","category-mac","category-mac-osx","category-ruby"],"_links":{"self":[{"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/posts\/567","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=567"}],"version-history":[{"count":3,"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/posts\/567\/revisions"}],"predecessor-version":[{"id":572,"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/posts\/567\/revisions\/572"}],"wp:attachment":[{"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/media?parent=567"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/categories?post=567"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/tags?post=567"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}