前提・実現したいこと
ターミナル上でrbenvで2.6.6から2.7.7へアップデートしたい
質問内容
Macにてrbenvのバージョンを2.6.6から2.6.7にアップデートするため、
色々な調べ試してみたのですが、
同じような事例が見つからなく解決できませんでした。
2.6.5や2.6.6は問題なくインストールできました。
エラーが発生して読み込めないため、解決方法を教えていただきたいです。
お手数ですが、ご指導ご鞭撻のほど、よろしくお願いいたします。
環境
Ruby 2.6.6
Rails 6.0.3.5
参考にした記事
https://breakthrough-tech.yuta-u.com/ruby/how-to-upgrade-ruby-version/
https://qiita.com/_am_/items/c1dbeb11f40bbbac8fd9
https://qiita.com/Hironori-Matsuse/items/133195508793dc63d155
エラーメッセージ
terminal
1rbenv install 2.6.7 2Downloading openssl-1.1.1j.tar.gz... 3-> https://dqw8nmjcqpjn7.cloudfront.net/aaf2fcb575cdf6491b98ab4829abf78a3dec8402b8b81efc8f23c00d443981bf 4Installing openssl-1.1.1j... 5Installed openssl-1.1.1j to /Users/{ユーザー名}/.rbenv/versions/2.6.7 6 7Downloading ruby-2.6.7.tar.bz2... 8-> https://cache.ruby-lang.org/pub/ruby/2.6/ruby-2.6.7.tar.bz2 9Installing ruby-2.6.7... 10ruby-build: using readline from homebrew 11 12BUILD FAILED (Mac OS X 10.15.7 using ruby-build 20210405) 13 14Inspect or clean up the working tree at /var/folders/_j/ml4ds5z55y7_2rc8myh0r5kc0000gn/T/ruby-build.20210407023229.92731.CkpymU 15Results logged to /var/folders/_j/ml4ds5z55y7_2rc8myh0r5kc0000gn/T/ruby-build.20210407023229.92731.log 16 17Last 10 log lines: 18vm.c:2295:9: error: implicit declaration of function 'rb_native_mutex_destroy' is invalid in C99 [-Werror,-Wimplicit-function-declaration] 19 rb_native_mutex_destroy(&vm->waitpid_lock); 20 ^ 21vm.c:2489:34: warning: expression does not compute the number of elements in this array; element type is 'const int', not 'VALUE' (aka 'unsigned long') [-Wsizeof-array-div] 22 sizeof(ec->machine.regs) / sizeof(VALUE)); 23 ~~~~~~~~~~~~~~~~ ^ 24vm.c:2489:34: note: place parentheses around the 'sizeof(VALUE)' expression to silence this warning 251 warning and 1 error generated. 26make: *** [vm.o] Error 1 27make: *** Waiting for unfinished jobs....
試したこと
0. Homebrewを最新化
0. opensslの再インストール
0. readlineの再インストール
- $ rbenv install -l を実行すると、
2.6.7はインストールできるリストとして表示されます。
お手数ですが、ご確認のほどよろしくお願い申し上げます。

回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
退会済みユーザー
2021/04/07 14:16