🐈

(自分用メモ)環境構築どハマり Ruby3.1.2

2022/12/14に公開

絶賛どハマりんぐです。

このエラー
rbenv install 3.1.2
To follow progress, use 'tail -f /var/folders/th/7j611qv54pvbpxbjc7vvjl3h0000gn/T/ruby-build.20220914233330.50802.log' or pass --verbose
Downloading openssl-3.0.5.tar.gz...
-> https://dqw8nmjcqpjn7.cloudfront.net/aa7d8d9bef71ad6525c55ba11e5f4397889ce49c2c9349dcea6d3e4f0b024a7a
Installing openssl-3.0.5...
Installed openssl-3.0.5 to /Users/hirokinagai/.rbenv/versions/3.1.2

Downloading ruby-3.1.2.tar.gz...
-> https://cache.ruby-lang.org/pub/ruby/3.1/ruby-3.1.2.tar.gz
Installing ruby-3.1.2...
ruby-build: using readline from homebrew

BUILD FAILED (macOS 11.2.3 using ruby-build 20220910.1)

Inspect or clean up the working tree at /var/folders/th/7j611qv54pvbpxbjc7vvjl3h0000gn/T/ruby-build.20220914233330.50802.CtmPIp
Results logged to /var/folders/th/7j611qv54pvbpxbjc7vvjl3h0000gn/T/ruby-build.20220914233330.50802.log

Last 10 log lines:
compiling ossl_x509ext.c
compiling ossl_x509name.c
compiling ossl_x509req.c
3 warnings generated.
compiling ossl_x509revoked.c
compiling ossl_x509store.c
installing default openssl libraries
linking shared-object openssl.bundle
linking shared-object ripper.bundle
make: *** [build-ext] Error 2
hirokinagai@HirokinoMBP ~ %

PATHが違う?
OpenSSLが違う?
rbenv
homebrew

時間を無駄にして辛い
が、粘ります。

どんどん質問しよう

後日、結局312はrails7と一緒に入らず、rails7と304が入れました。
環境構築まじ鬼門

参考(解決済)

rails7がruby304と一緒に入った!
https://mng-camp.potepan.com/questions/bc6c0aa8-9235-425f-8ca7-89be3dee303b

rails7が入らない
https://mng-camp.potepan.com/questions/56dc6fff-f2d0-48af-ac5c-444994e7ed5a

Discussion