それだけでは情報が足りず分かりません。ログを error
で検索して前後10行くらい貼っていただければ手掛かりになります。
Like!
Rubyをインストールするときのエラーコードが解決できません。
以下のエラーコードが出るのですが調べてもよくわからずです…。
logはかなり長くて読んでも分かりません。
rvm install 3.2.2
→Error running '__rvm_make -j8',
please read /Users/○○○/.rvm/log/1701141355_ruby-3.2.2/make.log
There has been an error while running make. Halting the installation.
Homebrewは4.1.21です。
それだけでは情報が足りず分かりません。ログを error
で検索して前後10行くらい貼っていただければ手掛かりになります。
@tawa19
Questioner+__rvm_make:0> make -j8
BASERUBY = /Users/tawa/.rvm/rubies/jruby-9.2.9.0/bin/ruby --disable=gems
CC = gcc
LD = ld
LDSHARED = gcc -dynamiclib
CFLAGS = -O3 -I/opt/homebrew/opt/libyaml/include -I/opt/homebrew/opt/libksba/include -I/opt/homebrew/opt/readline/include -I/opt/homebrew/opt/zlib/include -I/opt/homebrew/opt/openssl@1.1/include -fdeclspec -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wextra-tokens -Wdeprecated-declarations -Wdivision-by-zero -Wdiv-by-zero -Wimplicit-function-declaration -Wimplicit-int -Wmisleading-indentation -Wpointer-arith -Wshorten-64-to-32 -Wwrite-strings -Wold-style-definition -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wunused-variable -Wundef -fno-common -pipe
XCFLAGS = -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-strong -fno-strict-overflow -fvisibility=hidden -DRUBY_EXPORT -I. -I.ext/include/arm64-darwin23 -I./include -I. -I./enc/unicode/15.0.0
CPPFLAGS = -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT
DLDFLAGS = -L/opt/homebrew/opt/libyaml/lib -L/opt/homebrew/opt/libksba/lib -L/opt/homebrew/opt/readline/lib -L/opt/homebrew/opt/zlib/lib -L/opt/homebrew/opt/openssl@1.1/lib -Wl,-undefined,dynamic_lookup -install_name /Users/tawa/.rvm/rubies/ruby-3.2.2/lib/libruby.3.2.dylib -compatibility_version 3.2 -current_version 3.2.2 -fstack-protector-strong -framework CoreFoundation -fstack-protector-strong -framework CoreFoundation
SOLIBS = -ldl -lobjc -lpthread
LANG = ja_JP.UTF-8
LC_ALL =
LC_CTYPE =
MFLAGS = - --jobserver-fds=3,4 -j
RUSTC = no
YJIT_RUSTC_ARGS = --crate-name=yjit --crate-type=staticlib --edition=2021 -g -C opt-level=3 -C overflow-checks=on '--out-dir=/Users/tawa/.rvm/src/ruby-3.2.2/yjit/target/release/' ./yjit/src/lib.rs
Apple clang version 15.0.0 (clang-1500.0.40.1)
Target: arm64-apple-darwin23.1.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
compiling ./main.c
compiling dmydln.c
compiling miniinit.c
compiling dmyext.c
translating probes probes.d
compiling ast.c
compiling bignum.c
compiling class.c
compiling compar.c
. ./vm_opts.h
compiling compile.c
compiling complex.c
.
.
.
NoMethodError: undefined method `empty?' for nil:NilClass
-e at -e:2
make: *** [.rbconfig.time] Error 1
make: *** Waiting for unfinished jobs....
revision.h unchanged
+__rvm_make:0> return 2
このようなlogでした。
ご回答いただけたら幸いです。
NoMethodError~
メソッドの定義がされていないことを示すエラーです。
rvm requirements run
で依存ファイルが不足していないかチェックしてみてください
恐らく大丈夫だと思いますがrvm get stable
で一応RVMの更新もお試しください
@tawa19
Questionerご丁寧にありがとうございます。今後ともご教授いただけると幸いです。