-
Notifications
You must be signed in to change notification settings - Fork 796
Closed
Description
I installed rbenv today but it returns a couple of errors when I tried to run rbenv install 3.1.0
Darwin orkuns-MacBook-Pro.local 21.2.0 Darwin Kernel Version 21.2.0: Sun Nov 28 20:29:10 PST 2021; root:xnu-8019.61.5~1/RELEASE_ARM64_T8101 arm64
iterm output
$ rbenv install 3.0.3
Downloading ruby-3.0.3.tar.gz...
-> https://cache.ruby-lang.org/pub/ruby/3.0/ruby-3.0.3.tar.gz
Installing ruby-3.0.3...
ruby-build: using readline from homebrew
BUILD FAILED (macOS 12.1 using ruby-build 20211227)
Inspect or clean up the working tree at /var/folders/9v/pqhg0pdx5n10b1xh39g989kc0000gp/T/ruby-build.20220125185613.60847.G3zm2f
Results logged to /var/folders/9v/pqhg0pdx5n10b1xh39g989kc0000gp/T/ruby-build.20220125185613.60847.log
Last 10 log lines:
compiling nofree.c
compiling normalize.c
compiling qsort.c
compiling rb_interned_str.c
compiling rb_str_dup.c
compiling set_len.c
linking shared-object cgi/escape.bundle
linking shared-object coverage.bundle
linking shared-object -test-/string.bundle
make: *** [build-ext] Error 2
Error details
In file included from ./bigdecimal.h:14:
./missing.h:127:1: error: static declaration of 'rb_rational_num' follows non-static declaration
rb_rational_num(VALUE rat)
^
../.././include/ruby/internal/intern/rational.h:128:7: note: previous declaration is here
VALUE rb_rational_num(VALUE rat);
^
In file included from bigdecimal.c:13:
In file included from ./bigdecimal.h:14:
./missing.h:139:1: error: static declaration of 'rb_rational_den' follows non-static declaration
rb_rational_den(VALUE rat)
^
../.././include/ruby/internal/intern/rational.h:138:7: note: previous declaration is here
VALUE rb_rational_den(VALUE rat);
^
In file included from bigdecimal.c:13:
In file included from ./bigdecimal.h:14:
./missing.h:153:1: error: static declaration of 'rb_complex_real' follows non-static declaration
rb_complex_real(VALUE cmp)
^
../.././include/ruby/internal/intern/complex.h:101:7: note: previous declaration is here
VALUE rb_complex_real(VALUE z);
^
In file included from bigdecimal.c:13:
In file included from ./bigdecimal.h:14:
./missing.h:165:1: error: static declaration of 'rb_complex_imag' follows non-static declaration
rb_complex_imag(VALUE cmp)
^
../.././include/ruby/internal/intern/complex.h:110:7: note: previous declaration is here
VALUE rb_complex_imag(VALUE z);
^
In file included from bigdecimal.c:13:
In file included from ./bigdecimal.h:14:
./missing.h:189:1: error: redefinition of 'rb_array_const_ptr'
rb_array_const_ptr(VALUE a)
^
../.././include/ruby/internal/core/rarray.h:393:1: note: previous definition is here
rb_array_const_ptr(VALUE a)
^
In file included from bigdecimal.c:13:
In file included from ./bigdecimal.h:14:
./missing.h:208:1: error: static declaration of 'rb_sym2str' follows non-static declaration
rb_sym2str(VALUE sym)
^
../.././include/ruby/internal/symbol.h:211:7: note: previous declaration is here
VALUE rb_sym2str(VALUE id);
I also added the log file
ruby-build.20220125201815.95010.log
hagmic
Metadata
Metadata
Assignees
Labels
No labels
