jdx / mise

dev tools, env vars, task runner
https://mise.jdx.dev
MIT License
10.33k stars 296 forks source link

Embedded Ruby plugin fails to install mruby #941

Closed uvlad7 closed 2 days ago

uvlad7 commented 1 year ago

Describe the bug It's not possible to install mruby-3.2.0 with embedded plugin, but asdf one works fine

To Reproduce

vladimir@np940x5n:~$ RTX_DEBUG=1 RUST_BACKTRACE=full rtx install ruby@mruby-3.2.0
[DEBUG] rtx::config: Files: ~/.config/rtx/config.toml
Installed Plugins: pipenv, poetry, rust
[DEBUG] rtx::cli: rtx install ruby@mruby-3.2.0
[DEBUG] rtx::toolset::builder: ruby@3.0.2, python@3.10.12 python@2.7.18, node@12.22.9, go@1.20.4, pipenv@2023.10.3, poetry@1.6.1, rust@1.72.1
[DEBUG] rtx::cmd: $ /home/vladimir/.cache/rtx/ruby/ruby-build/bin/ruby-build --version
[DEBUG] rtx::http: GET https://api.github.com/repos/rbenv/ruby-build/releases/latest
[DEBUG] reqwest::connect: starting new connection: https://api.github.com/
running ruby-build
[DEBUG] rtx::cmd: $ /home/vladimir/.cache/rtx/ruby/ruby-build/bin/ruby-build --verbose mruby-3.2.0 /home/vladimir/.local/share/rtx/installs/ruby/mruby-3.2.0
/tmp/ruby-build.20231015040148.1040563.RIIBLR ~
Downloading 3.2.0.tar.gz...
HTTP/1.1 200 OK
Content-Type: binary/octet-stream
Content-Length: 803239
Connection: keep-alive
Date: Sat, 14 Oct 2023 23:23:19 GMT
Last-Modified: Mon, 27 Feb 2023 01:00:14 GMT
ETag: "fbb67cc8a1ecfb9cdc1307ec1c02b489"
x-amz-server-side-encryption: AES256
Accept-Ranges: bytes
Server: AmazonS3
X-Cache: Hit from cloudfront
Via: 1.1 36a7c1e18cbe5ff8281d77427bf1c0e6.cloudfront.net (CloudFront)
X-Amz-Cf-Pop: AMS58-P6
X-Amz-Cf-Id: n22DFUeYFyPGR7zIhq-J-1uB1OsmHATjZhOLca6RZwB9_ak5Udm0gw==
Age: 5911
-> https://dqw8nmjcqpjn7.cloudfront.net/3c198e4a31d31fe8524013066fac84a67fe6cd6067d92c25a1c79089744cb608
/tmp/ruby-build.20231015040148.1040563.RIIBLR/mruby-3.2.0 /tmp/ruby-build.20231015040148.1040563.RIIBLR ~
Installing mruby-3.2.0...
CPP   src/array.c -> build/host/src/array.pi
CPP   src/backtrace.c -> build/host/src/backtrace.pi
CPP   src/cdump.c -> build/host/src/cdump.pi
CPP   src/class.c -> build/host/src/class.pi
CPP   src/codedump.c -> build/host/src/codedump.pi
CPP   src/compar.c -> build/host/src/compar.pi
CPP   src/debug.c -> build/host/src/debug.pi
CPP   src/dump.c -> build/host/src/dump.pi
CPP   src/enum.c -> build/host/src/enum.pi
CPP   src/error.c -> build/host/src/error.pi
CPP   src/etc.c -> build/host/src/etc.pi
CPP   src/fmt_fp.c -> build/host/src/fmt_fp.pi
CPP   src/gc.c -> build/host/src/gc.pi
CPP   src/hash.c -> build/host/src/hash.pi
CPP   src/init.c -> build/host/src/init.pi
CPP   src/kernel.c -> build/host/src/kernel.pi
CPP   src/load.c -> build/host/src/load.pi
CPP   src/numeric.c -> build/host/src/numeric.pi
CPP   src/numops.c -> build/host/src/numops.pi
CPP   src/object.c -> build/host/src/object.pi
CPP   src/pool.c -> build/host/src/pool.pi
CPP   src/print.c -> build/host/src/print.pi
CPP   src/proc.c -> build/host/src/proc.pi
CPP   src/range.c -> build/host/src/range.pi
CPP   src/readfloat.c -> build/host/src/readfloat.pi
CPP   src/readint.c -> build/host/src/readint.pi
CPP   src/readnum.c -> build/host/src/readnum.pi
CPP   src/state.c -> build/host/src/state.pi
CPP   src/string.c -> build/host/src/string.pi
CPP   src/symbol.c -> build/host/src/symbol.pi
CPP   src/variable.c -> build/host/src/variable.pi
CPP   src/version.c -> build/host/src/version.pi
CPP   src/vm.c -> build/host/src/vm.pi
CPP   mrbgems/mruby-bigint/core/bigint.c -> build/host/mrbgems/mruby-bigint/core/bigint.pi
CPP   mrbgems/mruby-compiler/core/codegen.c -> build/host/mrbgems/mruby-compiler/core/codegen.pi
CPP   mrbgems/mruby-compiler/core/y.tab.c -> build/host/mrbgems/mruby-compiler/core/y.tab.pi
CC    mrbgems/mruby-bin-mrbc/tools/mrbc/mrbc.c -> build/host/mrbc/mrbgems/mruby-bin-mrbc/tools/mrbc/mrbc.o
CC    mrbgems/mruby-bin-mrbc/tools/mrbc/stub.c -> build/host/mrbc/mrbgems/mruby-bin-mrbc/tools/mrbc/stub.o
CC    src/array.c -> build/host/mrbc/src/array.o
CC    src/backtrace.c -> build/host/mrbc/src/backtrace.o
CC    src/cdump.c -> build/host/mrbc/src/cdump.o
CC    src/class.c -> build/host/mrbc/src/class.o
CC    src/codedump.c -> build/host/mrbc/src/codedump.o
CC    src/compar.c -> build/host/mrbc/src/compar.o
CC    src/debug.c -> build/host/mrbc/src/debug.o
CC    src/dump.c -> build/host/mrbc/src/dump.o
CC    src/enum.c -> build/host/mrbc/src/enum.o
CC    src/error.c -> build/host/mrbc/src/error.o
CC    src/etc.c -> build/host/mrbc/src/etc.o
CC    src/fmt_fp.c -> build/host/mrbc/src/fmt_fp.o
CC    src/gc.c -> build/host/mrbc/src/gc.o
CC    src/hash.c -> build/host/mrbc/src/hash.o
CC    src/init.c -> build/host/mrbc/src/init.o
CC    src/kernel.c -> build/host/mrbc/src/kernel.o
CC    src/load.c -> build/host/mrbc/src/load.o
CC    src/numeric.c -> build/host/mrbc/src/numeric.o
CC    src/numops.c -> build/host/mrbc/src/numops.o
CC    src/object.c -> build/host/mrbc/src/object.o
CC    src/pool.c -> build/host/mrbc/src/pool.o
CC    src/print.c -> build/host/mrbc/src/print.o
CC    src/proc.c -> build/host/mrbc/src/proc.o
CC    src/range.c -> build/host/mrbc/src/range.o
CC    src/readfloat.c -> build/host/mrbc/src/readfloat.o
CC    src/readint.c -> build/host/mrbc/src/readint.o
CC    src/readnum.c -> build/host/mrbc/src/readnum.o
CC    src/state.c -> build/host/mrbc/src/state.o
CC    src/string.c -> build/host/mrbc/src/string.o
CC    src/symbol.c -> build/host/mrbc/src/symbol.o
CC    src/variable.c -> build/host/mrbc/src/variable.o
CC    src/version.c -> build/host/mrbc/src/version.o
CC    src/vm.c -> build/host/mrbc/src/vm.o
CC    mrbgems/mruby-compiler/core/codegen.c -> build/host/mrbc/mrbgems/mruby-compiler/core/codegen.o
CC    mrbgems/mruby-compiler/core/y.tab.c -> build/host/mrbc/mrbgems/mruby-compiler/core/y.tab.o
AR    build/host/mrbc/lib/libmruby_core.a 
ar: creating /tmp/ruby-build.20231015040148.1040563.RIIBLR/mruby-3.2.0/build/host/mrbc/lib/libmruby_core.a
LD    build/host/mrbc/bin/mrbc 
GEN   mrblib/*.rb -> build/host/mrblib/mrblib.c
      MRBC mrblib/00class.rb 
           mrblib/00kernel.rb 
           mrblib/10error.rb 
           mrblib/array.rb 
           mrblib/compar.rb 
           mrblib/enum.rb 
           mrblib/hash.rb 
           mrblib/kernel.rb 
           mrblib/numeric.rb 
           mrblib/range.rb 
           mrblib/string.rb 
           mrblib/symbol.rb 
CPP   build/host/mrblib/mrblib.c -> build/host/mrblib/mrblib.pi
GEN   build/host/mrbgems/mruby-compar-ext/gem_init.c 
      MRBC mrbgems/mruby-compar-ext/mrblib/compar.rb 
CPP   build/host/mrbgems/mruby-compar-ext/gem_init.c -> build/host/mrbgems/mruby-compar-ext/gem_init.pi
GEN   build/host/mrbgems/mruby-enum-ext/gem_init.c 
      MRBC mrbgems/mruby-enum-ext/mrblib/enum.rb 
CPP   build/host/mrbgems/mruby-enum-ext/gem_init.c -> build/host/mrbgems/mruby-enum-ext/gem_init.pi
CPP   mrbgems/mruby-string-ext/src/string.c -> build/host/mrbgems/mruby-string-ext/src/string.pi
GEN   build/host/mrbgems/mruby-string-ext/gem_init.c 
      MRBC mrbgems/mruby-string-ext/mrblib/string.rb 
CPP   build/host/mrbgems/mruby-string-ext/gem_init.c -> build/host/mrbgems/mruby-string-ext/gem_init.pi
CPP   mrbgems/mruby-numeric-ext/src/numeric_ext.c -> build/host/mrbgems/mruby-numeric-ext/src/numeric_ext.pi
GEN   build/host/mrbgems/mruby-numeric-ext/gem_init.c 
      MRBC mrbgems/mruby-numeric-ext/mrblib/numeric_ext.rb 
CPP   build/host/mrbgems/mruby-numeric-ext/gem_init.c -> build/host/mrbgems/mruby-numeric-ext/gem_init.pi
CPP   mrbgems/mruby-array-ext/src/array.c -> build/host/mrbgems/mruby-array-ext/src/array.pi
GEN   build/host/mrbgems/mruby-array-ext/gem_init.c 
      MRBC mrbgems/mruby-array-ext/mrblib/array.rb 
CPP   build/host/mrbgems/mruby-array-ext/gem_init.c -> build/host/mrbgems/mruby-array-ext/gem_init.pi
CPP   mrbgems/mruby-hash-ext/src/hash-ext.c -> build/host/mrbgems/mruby-hash-ext/src/hash-ext.pi
GEN   build/host/mrbgems/mruby-hash-ext/gem_init.c 
      MRBC mrbgems/mruby-hash-ext/mrblib/hash.rb 
CPP   build/host/mrbgems/mruby-hash-ext/gem_init.c -> build/host/mrbgems/mruby-hash-ext/gem_init.pi
CPP   mrbgems/mruby-range-ext/src/range.c -> build/host/mrbgems/mruby-range-ext/src/range.pi
GEN   build/host/mrbgems/mruby-range-ext/gem_init.c 
      MRBC mrbgems/mruby-range-ext/mrblib/range.rb 
CPP   build/host/mrbgems/mruby-range-ext/gem_init.c -> build/host/mrbgems/mruby-range-ext/gem_init.pi
CPP   mrbgems/mruby-proc-ext/src/proc.c -> build/host/mrbgems/mruby-proc-ext/src/proc.pi
GEN   build/host/mrbgems/mruby-proc-ext/gem_init.c 
      MRBC mrbgems/mruby-proc-ext/mrblib/proc.rb 
CPP   build/host/mrbgems/mruby-proc-ext/gem_init.c -> build/host/mrbgems/mruby-proc-ext/gem_init.pi
CPP   mrbgems/mruby-symbol-ext/src/symbol.c -> build/host/mrbgems/mruby-symbol-ext/src/symbol.pi
GEN   build/host/mrbgems/mruby-symbol-ext/gem_init.c 
      MRBC mrbgems/mruby-symbol-ext/mrblib/symbol.rb 
CPP   build/host/mrbgems/mruby-symbol-ext/gem_init.c -> build/host/mrbgems/mruby-symbol-ext/gem_init.pi
CPP   mrbgems/mruby-object-ext/src/object.c -> build/host/mrbgems/mruby-object-ext/src/object.pi
GEN   build/host/mrbgems/mruby-object-ext/gem_init.c 
      MRBC mrbgems/mruby-object-ext/mrblib/object.rb 
CPP   build/host/mrbgems/mruby-object-ext/gem_init.c -> build/host/mrbgems/mruby-object-ext/gem_init.pi
CPP   mrbgems/mruby-objectspace/src/mruby_objectspace.c -> build/host/mrbgems/mruby-objectspace/src/mruby_objectspace.pi
GEN   build/host/mrbgems/mruby-objectspace/gem_init.c 
CPP   build/host/mrbgems/mruby-objectspace/gem_init.c -> build/host/mrbgems/mruby-objectspace/gem_init.pi
GEN   build/host/mrbgems/mruby-set/gem_init.c 
      MRBC mrbgems/mruby-set/mrblib/set.rb 
CPP   build/host/mrbgems/mruby-set/gem_init.c -> build/host/mrbgems/mruby-set/gem_init.pi
CPP   mrbgems/mruby-fiber/src/fiber.c -> build/host/mrbgems/mruby-fiber/src/fiber.pi
GEN   build/host/mrbgems/mruby-fiber/gem_init.c 
CPP   build/host/mrbgems/mruby-fiber/gem_init.c -> build/host/mrbgems/mruby-fiber/gem_init.pi
GEN   build/host/mrbgems/mruby-enumerator/gem_init.c 
      MRBC mrbgems/mruby-enumerator/mrblib/enumerator.rb 
CPP   build/host/mrbgems/mruby-enumerator/gem_init.c -> build/host/mrbgems/mruby-enumerator/gem_init.pi
GEN   build/host/mrbgems/mruby-enum-lazy/gem_init.c 
      MRBC mrbgems/mruby-enum-lazy/mrblib/lazy.rb 
CPP   build/host/mrbgems/mruby-enum-lazy/gem_init.c -> build/host/mrbgems/mruby-enum-lazy/gem_init.pi
GEN   build/host/mrbgems/mruby-toplevel-ext/gem_init.c 
      MRBC mrbgems/mruby-toplevel-ext/mrblib/toplevel.rb 
CPP   build/host/mrbgems/mruby-toplevel-ext/gem_init.c -> build/host/mrbgems/mruby-toplevel-ext/gem_init.pi
CPP   mrbgems/mruby-kernel-ext/src/kernel.c -> build/host/mrbgems/mruby-kernel-ext/src/kernel.pi
GEN   build/host/mrbgems/mruby-kernel-ext/gem_init.c 
CPP   build/host/mrbgems/mruby-kernel-ext/gem_init.c -> build/host/mrbgems/mruby-kernel-ext/gem_init.pi
CPP   mrbgems/mruby-class-ext/src/class.c -> build/host/mrbgems/mruby-class-ext/src/class.pi
GEN   build/host/mrbgems/mruby-class-ext/gem_init.c 
      MRBC mrbgems/mruby-class-ext/mrblib/module.rb 
CPP   build/host/mrbgems/mruby-class-ext/gem_init.c -> build/host/mrbgems/mruby-class-ext/gem_init.pi
CPP   mrbgems/mruby-pack/src/pack.c -> build/host/mrbgems/mruby-pack/src/pack.pi
GEN   build/host/mrbgems/mruby-pack/gem_init.c 
CPP   build/host/mrbgems/mruby-pack/gem_init.c -> build/host/mrbgems/mruby-pack/gem_init.pi
CPP   mrbgems/mruby-sprintf/src/sprintf.c -> build/host/mrbgems/mruby-sprintf/src/sprintf.pi
GEN   build/host/mrbgems/mruby-sprintf/gem_init.c 
      MRBC mrbgems/mruby-sprintf/mrblib/string.rb 
CPP   build/host/mrbgems/mruby-sprintf/gem_init.c -> build/host/mrbgems/mruby-sprintf/gem_init.pi
CPP   mrbgems/mruby-time/src/time.c -> build/host/mrbgems/mruby-time/src/time.pi
GEN   build/host/mrbgems/mruby-time/gem_init.c 
      MRBC mrbgems/mruby-time/mrblib/time.rb 
CPP   build/host/mrbgems/mruby-time/gem_init.c -> build/host/mrbgems/mruby-time/gem_init.pi
CPP   mrbgems/mruby-struct/src/struct.c -> build/host/mrbgems/mruby-struct/src/struct.pi
GEN   build/host/mrbgems/mruby-struct/gem_init.c 
      MRBC mrbgems/mruby-struct/mrblib/struct.rb 
CPP   build/host/mrbgems/mruby-struct/gem_init.c -> build/host/mrbgems/mruby-struct/gem_init.pi
CPP   mrbgems/mruby-data/src/data.c -> build/host/mrbgems/mruby-data/src/data.pi
GEN   build/host/mrbgems/mruby-data/gem_init.c 
CPP   build/host/mrbgems/mruby-data/gem_init.c -> build/host/mrbgems/mruby-data/gem_init.pi
CPP   mrbgems/mruby-random/src/random.c -> build/host/mrbgems/mruby-random/src/random.pi
GEN   build/host/mrbgems/mruby-random/gem_init.c 
CPP   build/host/mrbgems/mruby-random/gem_init.c -> build/host/mrbgems/mruby-random/gem_init.pi
CPP   mrbgems/mruby-io/src/file.c -> build/host/mrbgems/mruby-io/src/file.pi
CPP   mrbgems/mruby-io/src/file_test.c -> build/host/mrbgems/mruby-io/src/file_test.pi
CPP   mrbgems/mruby-io/src/io.c -> build/host/mrbgems/mruby-io/src/io.pi
CPP   mrbgems/mruby-io/src/mruby_io_gem.c -> build/host/mrbgems/mruby-io/src/mruby_io_gem.pi
GEN   build/host/mrbgems/mruby-io/gem_init.c 
      MRBC mrbgems/mruby-io/mrblib/file.rb 
           mrbgems/mruby-io/mrblib/file_constants.rb 
           mrbgems/mruby-io/mrblib/io.rb 
           mrbgems/mruby-io/mrblib/kernel.rb 
CPP   build/host/mrbgems/mruby-io/gem_init.c -> build/host/mrbgems/mruby-io/gem_init.pi
CPP   mrbgems/mruby-socket/src/socket.c -> build/host/mrbgems/mruby-socket/src/socket.pi
GEN   build/host/mrbgems/mruby-socket/gem_init.c 
      MRBC mrbgems/mruby-socket/mrblib/socket.rb 
CPP   build/host/mrbgems/mruby-socket/gem_init.c -> build/host/mrbgems/mruby-socket/gem_init.pi
CPP   mrbgems/mruby-print/src/print.c -> build/host/mrbgems/mruby-print/src/print.pi
GEN   build/host/mrbgems/mruby-print/gem_init.c 
      MRBC mrbgems/mruby-print/mrblib/print.rb 
CPP   build/host/mrbgems/mruby-print/gem_init.c -> build/host/mrbgems/mruby-print/gem_init.pi
CPP   mrbgems/mruby-errno/src/errno.c -> build/host/mrbgems/mruby-errno/src/errno.pi
GEN   build/host/mrbgems/mruby-errno/gem_init.c 
      MRBC mrbgems/mruby-errno/mrblib/errno.rb 
CPP   build/host/mrbgems/mruby-errno/gem_init.c -> build/host/mrbgems/mruby-errno/gem_init.pi
CPP   mrbgems/mruby-dir/src/dir.c -> build/host/mrbgems/mruby-dir/src/dir.pi
GEN   build/host/mrbgems/mruby-dir/gem_init.c 
      MRBC mrbgems/mruby-dir/mrblib/dir.rb 
CPP   build/host/mrbgems/mruby-dir/gem_init.c -> build/host/mrbgems/mruby-dir/gem_init.pi
CPP   mrbgems/mruby-math/src/math.c -> build/host/mrbgems/mruby-math/src/math.pi
GEN   build/host/mrbgems/mruby-math/gem_init.c 
CPP   build/host/mrbgems/mruby-math/gem_init.c -> build/host/mrbgems/mruby-math/gem_init.pi
CPP   mrbgems/mruby-rational/src/rational.c -> build/host/mrbgems/mruby-rational/src/rational.pi
GEN   build/host/mrbgems/mruby-rational/gem_init.c 
      MRBC mrbgems/mruby-rational/mrblib/rational.rb 
CPP   build/host/mrbgems/mruby-rational/gem_init.c -> build/host/mrbgems/mruby-rational/gem_init.pi
CPP   mrbgems/mruby-complex/src/complex.c -> build/host/mrbgems/mruby-complex/src/complex.pi
GEN   build/host/mrbgems/mruby-complex/gem_init.c 
      MRBC mrbgems/mruby-complex/mrblib/complex.rb 
CPP   build/host/mrbgems/mruby-complex/gem_init.c -> build/host/mrbgems/mruby-complex/gem_init.pi
CPP   mrbgems/mruby-cmath/src/cmath.c -> build/host/mrbgems/mruby-cmath/src/cmath.pi
GEN   build/host/mrbgems/mruby-cmath/gem_init.c 
CPP   build/host/mrbgems/mruby-cmath/gem_init.c -> build/host/mrbgems/mruby-cmath/gem_init.pi
CPP   mrbgems/mruby-metaprog/src/metaprog.c -> build/host/mrbgems/mruby-metaprog/src/metaprog.pi
GEN   build/host/mrbgems/mruby-metaprog/gem_init.c 
CPP   build/host/mrbgems/mruby-metaprog/gem_init.c -> build/host/mrbgems/mruby-metaprog/gem_init.pi
CPP   mrbgems/mruby-method/src/method.c -> build/host/mrbgems/mruby-method/src/method.pi
GEN   build/host/mrbgems/mruby-method/gem_init.c 
      MRBC mrbgems/mruby-method/mrblib/kernel.rb 
           mrbgems/mruby-method/mrblib/method.rb 
CPP   build/host/mrbgems/mruby-method/gem_init.c -> build/host/mrbgems/mruby-method/gem_init.pi
CPP   mrbgems/mruby-eval/src/eval.c -> build/host/mrbgems/mruby-eval/src/eval.pi
GEN   build/host/mrbgems/mruby-eval/gem_init.c 
CPP   build/host/mrbgems/mruby-eval/gem_init.c -> build/host/mrbgems/mruby-eval/gem_init.pi
CPP   build/host/mrbgems/gem_init.c -> build/host/mrbgems/gem_init.pi
CPP   mrbgems/mruby-bin-mrbc/tools/mrbc/mrbc.c -> build/host/mrbgems/mruby-bin-mrbc/tools/mrbc/mrbc.pi
CPP   mrbgems/mruby-bin-mrbc/tools/mrbc/stub.c -> build/host/mrbgems/mruby-bin-mrbc/tools/mrbc/stub.pi
CPP   mrbgems/mruby-bin-mirb/tools/mirb/mirb.c -> build/host/mrbgems/mruby-bin-mirb/tools/mirb/mirb.pi
CPP   mrbgems/mruby-bin-mruby/tools/mruby/mruby.c -> build/host/mrbgems/mruby-bin-mruby/tools/mruby/mruby.pi
CPP   mrbgems/mruby-bin-strip/tools/mruby-strip/mruby-strip.c -> build/host/mrbgems/mruby-bin-strip/tools/mruby-strip/mruby-strip.pi
GEN   build/host/presym 
GEN   build/host/include/mruby/presym/id.h 
GEN   build/host/include/mruby/presym/table.h 
CC    src/array.c -> build/host/src/array.o
CC    src/backtrace.c -> build/host/src/backtrace.o
CC    src/cdump.c -> build/host/src/cdump.o
CC    src/class.c -> build/host/src/class.o
CC    src/codedump.c -> build/host/src/codedump.o
CC    src/compar.c -> build/host/src/compar.o
CC    src/debug.c -> build/host/src/debug.o
CC    src/dump.c -> build/host/src/dump.o
CC    src/enum.c -> build/host/src/enum.o
CC    src/error.c -> build/host/src/error.o
CC    src/etc.c -> build/host/src/etc.o
CC    src/fmt_fp.c -> build/host/src/fmt_fp.o
CC    src/gc.c -> build/host/src/gc.o
CC    src/hash.c -> build/host/src/hash.o
CC    src/init.c -> build/host/src/init.o
CC    src/kernel.c -> build/host/src/kernel.o
CC    src/load.c -> build/host/src/load.o
CC    src/numeric.c -> build/host/src/numeric.o
CC    src/numops.c -> build/host/src/numops.o
CC    src/object.c -> build/host/src/object.o
CC    src/pool.c -> build/host/src/pool.o
CC    src/print.c -> build/host/src/print.o
CC    src/proc.c -> build/host/src/proc.o
CC    src/range.c -> build/host/src/range.o
CC    src/readfloat.c -> build/host/src/readfloat.o
CC    src/readint.c -> build/host/src/readint.o
CC    src/readnum.c -> build/host/src/readnum.o
CC    src/state.c -> build/host/src/state.o
CC    src/string.c -> build/host/src/string.o
CC    src/symbol.c -> build/host/src/symbol.o
CC    src/variable.c -> build/host/src/variable.o
CC    src/version.c -> build/host/src/version.o
CC    src/vm.c -> build/host/src/vm.o
CC    mrbgems/mruby-bigint/core/bigint.c -> build/host/mrbgems/mruby-bigint/core/bigint.o
CC    mrbgems/mruby-compiler/core/codegen.c -> build/host/mrbgems/mruby-compiler/core/codegen.o
CC    mrbgems/mruby-compiler/core/y.tab.c -> build/host/mrbgems/mruby-compiler/core/y.tab.o
AR    build/host/lib/libmruby_core.a 
ar: creating /tmp/ruby-build.20231015040148.1040563.RIIBLR/mruby-3.2.0/build/host/lib/libmruby_core.a
CC    build/host/mrblib/mrblib.c -> build/host/mrblib/mrblib.o
CC    build/host/mrbgems/mruby-compar-ext/gem_init.c -> build/host/mrbgems/mruby-compar-ext/gem_init.o
CC    build/host/mrbgems/mruby-enum-ext/gem_init.c -> build/host/mrbgems/mruby-enum-ext/gem_init.o
CC    mrbgems/mruby-string-ext/src/string.c -> build/host/mrbgems/mruby-string-ext/src/string.o
CC    build/host/mrbgems/mruby-string-ext/gem_init.c -> build/host/mrbgems/mruby-string-ext/gem_init.o
CC    mrbgems/mruby-numeric-ext/src/numeric_ext.c -> build/host/mrbgems/mruby-numeric-ext/src/numeric_ext.o
CC    build/host/mrbgems/mruby-numeric-ext/gem_init.c -> build/host/mrbgems/mruby-numeric-ext/gem_init.o
CC    mrbgems/mruby-array-ext/src/array.c -> build/host/mrbgems/mruby-array-ext/src/array.o
CC    build/host/mrbgems/mruby-array-ext/gem_init.c -> build/host/mrbgems/mruby-array-ext/gem_init.o
CC    mrbgems/mruby-hash-ext/src/hash-ext.c -> build/host/mrbgems/mruby-hash-ext/src/hash-ext.o
CC    build/host/mrbgems/mruby-hash-ext/gem_init.c -> build/host/mrbgems/mruby-hash-ext/gem_init.o
CC    mrbgems/mruby-range-ext/src/range.c -> build/host/mrbgems/mruby-range-ext/src/range.o
CC    build/host/mrbgems/mruby-range-ext/gem_init.c -> build/host/mrbgems/mruby-range-ext/gem_init.o
CC    mrbgems/mruby-proc-ext/src/proc.c -> build/host/mrbgems/mruby-proc-ext/src/proc.o
CC    build/host/mrbgems/mruby-proc-ext/gem_init.c -> build/host/mrbgems/mruby-proc-ext/gem_init.o
CC    mrbgems/mruby-symbol-ext/src/symbol.c -> build/host/mrbgems/mruby-symbol-ext/src/symbol.o
CC    build/host/mrbgems/mruby-symbol-ext/gem_init.c -> build/host/mrbgems/mruby-symbol-ext/gem_init.o
CC    mrbgems/mruby-object-ext/src/object.c -> build/host/mrbgems/mruby-object-ext/src/object.o
CC    build/host/mrbgems/mruby-object-ext/gem_init.c -> build/host/mrbgems/mruby-object-ext/gem_init.o
CC    mrbgems/mruby-objectspace/src/mruby_objectspace.c -> build/host/mrbgems/mruby-objectspace/src/mruby_objectspace.o
CC    build/host/mrbgems/mruby-objectspace/gem_init.c -> build/host/mrbgems/mruby-objectspace/gem_init.o
CC    build/host/mrbgems/mruby-set/gem_init.c -> build/host/mrbgems/mruby-set/gem_init.o
CC    mrbgems/mruby-fiber/src/fiber.c -> build/host/mrbgems/mruby-fiber/src/fiber.o
CC    build/host/mrbgems/mruby-fiber/gem_init.c -> build/host/mrbgems/mruby-fiber/gem_init.o
CC    build/host/mrbgems/mruby-enumerator/gem_init.c -> build/host/mrbgems/mruby-enumerator/gem_init.o
CC    build/host/mrbgems/mruby-enum-lazy/gem_init.c -> build/host/mrbgems/mruby-enum-lazy/gem_init.o
CC    build/host/mrbgems/mruby-toplevel-ext/gem_init.c -> build/host/mrbgems/mruby-toplevel-ext/gem_init.o
CC    mrbgems/mruby-kernel-ext/src/kernel.c -> build/host/mrbgems/mruby-kernel-ext/src/kernel.o
CC    build/host/mrbgems/mruby-kernel-ext/gem_init.c -> build/host/mrbgems/mruby-kernel-ext/gem_init.o
CC    mrbgems/mruby-class-ext/src/class.c -> build/host/mrbgems/mruby-class-ext/src/class.o
CC    build/host/mrbgems/mruby-class-ext/gem_init.c -> build/host/mrbgems/mruby-class-ext/gem_init.o
CC    mrbgems/mruby-pack/src/pack.c -> build/host/mrbgems/mruby-pack/src/pack.o
CC    build/host/mrbgems/mruby-pack/gem_init.c -> build/host/mrbgems/mruby-pack/gem_init.o
CC    mrbgems/mruby-sprintf/src/sprintf.c -> build/host/mrbgems/mruby-sprintf/src/sprintf.o
CC    build/host/mrbgems/mruby-sprintf/gem_init.c -> build/host/mrbgems/mruby-sprintf/gem_init.o
CC    mrbgems/mruby-time/src/time.c -> build/host/mrbgems/mruby-time/src/time.o
CC    build/host/mrbgems/mruby-time/gem_init.c -> build/host/mrbgems/mruby-time/gem_init.o
CC    mrbgems/mruby-struct/src/struct.c -> build/host/mrbgems/mruby-struct/src/struct.o
CC    build/host/mrbgems/mruby-struct/gem_init.c -> build/host/mrbgems/mruby-struct/gem_init.o
CC    mrbgems/mruby-data/src/data.c -> build/host/mrbgems/mruby-data/src/data.o
CC    build/host/mrbgems/mruby-data/gem_init.c -> build/host/mrbgems/mruby-data/gem_init.o
CC    mrbgems/mruby-random/src/random.c -> build/host/mrbgems/mruby-random/src/random.o
CC    build/host/mrbgems/mruby-random/gem_init.c -> build/host/mrbgems/mruby-random/gem_init.o
CC    mrbgems/mruby-io/src/file.c -> build/host/mrbgems/mruby-io/src/file.o
CC    mrbgems/mruby-io/src/file_test.c -> build/host/mrbgems/mruby-io/src/file_test.o
CC    mrbgems/mruby-io/src/io.c -> build/host/mrbgems/mruby-io/src/io.o
CC    mrbgems/mruby-io/src/mruby_io_gem.c -> build/host/mrbgems/mruby-io/src/mruby_io_gem.o
CC    build/host/mrbgems/mruby-io/gem_init.c -> build/host/mrbgems/mruby-io/gem_init.o
CC    mrbgems/mruby-socket/src/socket.c -> build/host/mrbgems/mruby-socket/src/socket.o
CC    build/host/mrbgems/mruby-socket/gem_init.c -> build/host/mrbgems/mruby-socket/gem_init.o
CC    mrbgems/mruby-print/src/print.c -> build/host/mrbgems/mruby-print/src/print.o
CC    build/host/mrbgems/mruby-print/gem_init.c -> build/host/mrbgems/mruby-print/gem_init.o
CC    mrbgems/mruby-errno/src/errno.c -> build/host/mrbgems/mruby-errno/src/errno.o
CC    build/host/mrbgems/mruby-errno/gem_init.c -> build/host/mrbgems/mruby-errno/gem_init.o
CC    mrbgems/mruby-dir/src/dir.c -> build/host/mrbgems/mruby-dir/src/dir.o
CC    build/host/mrbgems/mruby-dir/gem_init.c -> build/host/mrbgems/mruby-dir/gem_init.o
CC    mrbgems/mruby-math/src/math.c -> build/host/mrbgems/mruby-math/src/math.o
CC    build/host/mrbgems/mruby-math/gem_init.c -> build/host/mrbgems/mruby-math/gem_init.o
CC    mrbgems/mruby-rational/src/rational.c -> build/host/mrbgems/mruby-rational/src/rational.o
CC    build/host/mrbgems/mruby-rational/gem_init.c -> build/host/mrbgems/mruby-rational/gem_init.o
CC    mrbgems/mruby-complex/src/complex.c -> build/host/mrbgems/mruby-complex/src/complex.o
CC    build/host/mrbgems/mruby-complex/gem_init.c -> build/host/mrbgems/mruby-complex/gem_init.o
CC    mrbgems/mruby-cmath/src/cmath.c -> build/host/mrbgems/mruby-cmath/src/cmath.o
CC    build/host/mrbgems/mruby-cmath/gem_init.c -> build/host/mrbgems/mruby-cmath/gem_init.o
CC    mrbgems/mruby-metaprog/src/metaprog.c -> build/host/mrbgems/mruby-metaprog/src/metaprog.o
CC    build/host/mrbgems/mruby-metaprog/gem_init.c -> build/host/mrbgems/mruby-metaprog/gem_init.o
CC    mrbgems/mruby-method/src/method.c -> build/host/mrbgems/mruby-method/src/method.o
CC    build/host/mrbgems/mruby-method/gem_init.c -> build/host/mrbgems/mruby-method/gem_init.o
CC    mrbgems/mruby-eval/src/eval.c -> build/host/mrbgems/mruby-eval/src/eval.o
CC    build/host/mrbgems/mruby-eval/gem_init.c -> build/host/mrbgems/mruby-eval/gem_init.o
CC    build/host/mrbgems/gem_init.c -> build/host/mrbgems/gem_init.o
AR    build/host/lib/libmruby.a 
ar: creating /tmp/ruby-build.20231015040148.1040563.RIIBLR/mruby-3.2.0/build/host/lib/libmruby.a
CC    mrbgems/mruby-bin-mrbc/tools/mrbc/mrbc.c -> build/host/mrbgems/mruby-bin-mrbc/tools/mrbc/mrbc.o
CC    mrbgems/mruby-bin-mrbc/tools/mrbc/stub.c -> build/host/mrbgems/mruby-bin-mrbc/tools/mrbc/stub.o
LD    build/host/bin/mrbc 
INSTALL build/host/bin/mrbc -> bin/mrbc
INSTALL build/host/bin/mruby-config -> bin/mruby-config
CC    mrbgems/mruby-bin-mirb/tools/mirb/mirb.c -> build/host/mrbgems/mruby-bin-mirb/tools/mirb/mirb.o
LD    build/host/bin/mirb 
INSTALL build/host/bin/mirb -> bin/mirb
CC    mrbgems/mruby-bin-mruby/tools/mruby/mruby.c -> build/host/mrbgems/mruby-bin-mruby/tools/mruby/mruby.o
LD    build/host/bin/mruby 
INSTALL build/host/bin/mruby -> bin/mruby
CC    mrbgems/mruby-bin-strip/tools/mruby-strip/mruby-strip.c -> build/host/mrbgems/mruby-bin-strip/tools/mruby-strip/mruby-strip.o
LD    build/host/bin/mruby-strip 
INSTALL build/host/bin/mruby-strip -> bin/mruby-strip
Build summary:
================================================
      Config Name: host
 Output Directory: build/host
         Binaries: mrbc, mruby-config
    Included Gems:
             mruby-array-ext - Array class extension
             mruby-bigint - Integer class extension to multiple-precision
             mruby-bin-config - mruby-config command
             mruby-bin-mirb - mirb command
               - Binaries: mirb
             mruby-bin-mrbc - mruby compiler executable
             mruby-bin-mruby - mruby command
               - Binaries: mruby
             mruby-bin-strip - irep dump debug section remover command
               - Binaries: mruby-strip
             mruby-class-ext - class/module extension
             mruby-cmath - standard Math module with complex
             mruby-compar-ext - Comparable module extension
             mruby-compiler - mruby compiler library
             mruby-complex - Complex class
             mruby-data - standard Data class
             mruby-dir
             mruby-enum-ext - Enumerable module extension
             mruby-enum-lazy - Enumerator::Lazy class
             mruby-enumerator - Enumerator class
             mruby-errno - Errno module and SystemCallError class
             mruby-eval - standard Kernel#eval method
             mruby-fiber - Fiber class
             mruby-hash-ext - Hash class extension
             mruby-io - IO and File class
             mruby-kernel-ext - extensional function-like methods
             mruby-math - standard Math module
             mruby-metaprog - Meta-programming features for mruby
             mruby-method - Method and UnboundMethod class
             mruby-numeric-ext - Numeric class extension
             mruby-object-ext - extensional methods shared by all objects
             mruby-objectspace - ObjectSpace class
             mruby-pack - Array#pack and String#unpack method
             mruby-print - standard print/puts/p
             mruby-proc-ext - Proc class extension
             mruby-random - Random class
             mruby-range-ext - Range class extension
             mruby-rational - Rational class
             mruby-set
             mruby-socket - standard socket class
             mruby-sprintf - standard Kernel#sprintf method
             mruby-string-ext - String class extension
             mruby-struct - standard Struct class
             mruby-symbol-ext - Symbol class extension
             mruby-time - standard Time class
             mruby-toplevel-ext - toplevel object (main) methods extension
================================================
================================================
      Config Name: host/mrbc
 Output Directory: build/host/mrbc
         Binaries: mrbc
    Included Gems:
             mruby-bin-mrbc - mruby compiler executable
             mruby-compiler - mruby compiler library
================================================
Installed mruby-3.2.0 to /home/vladimir/.local/share/rtx/installs/ruby/mruby-3.2.0
/tmp/ruby-build.20231015040148.1040563.RIIBLR ~
~
ruby -v
[DEBUG] rtx::cmd: $ /home/vladimir/.local/share/rtx/installs/ruby/mruby-3.2.0/bin/ruby -v
mruby 3.2.0 (2023-02-24)
gem -v
[DEBUG] rtx::cmd: $ /home/vladimir/.local/share/rtx/installs/ruby/mruby-3.2.0/bin/gem -v
Error: 
   0: No such file or directory (os error 2)

Location:
   src/cmd.rs:159

Version:
   2023.9.1 linux-x64 (2023-09-13)

  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
                                ⋮ 2 frames hidden ⋮                               
   3: rtx::cmd::CmdLineRunner::execute::h3258226ff4b691d0
      at <unknown source file>:<unknown line>
   4: rtx::plugins::core::ruby::RubyPlugin::test_gem::ha0875f558552182c
      at <unknown source file>:<unknown line>
   5: <rtx::plugins::core::ruby::RubyPlugin as rtx::plugins::Plugin>::install_version::h8b18054999601642
      at <unknown source file>:<unknown line>
   6: rtx::tool::Tool::install_version::hd033ac33226e1a61
      at <unknown source file>:<unknown line>
   7: std::sys_common::backtrace::__rust_begin_short_backtrace::h113d0d89ba226b00
      at <unknown source file>:<unknown line>
   8: core::ops::function::FnOnce::call_once{{vtable.shim}}::he8a2497ac121c21b
      at <unknown source file>:<unknown line>
   9: std::sys::unix::thread::Thread::new::thread_start::hd4979babf98f0649
      at <unknown source file>:<unknown line>
  10: start_thread<unknown>
      at ./nptl/pthread_create.c:442
  11: clone3<unknown>
      at ./misc/../sysdeps/unix/sysv/linux/x86_64/clone3.S:81

Suggestion: Run with RTX_DEBUG=1 for more information.

Run with COLORBT_SHOW_HIDDEN=1 environment variable to disable frame filtering.

vladimir@np940x5n:~$ rtx plugin install ruby https://github.com/asdf-vm/asdf-ruby.git
rtx ruby https://github.com/asdf-vm/asdf-ruby.git#057711f                                                                                                ✓ 6s vladimir@np940x5n:~$ RTX_DEBUG=1 RUST_BACKTRACE=full rtx install ruby@mruby-3.2.0
[DEBUG] rtx::config: Files: ~/.config/rtx/config.toml
Installed Plugins: pipenv, poetry, ruby, rust
[DEBUG] rtx::cli: rtx install ruby@mruby-3.2.0
[DEBUG] rtx::toolset::builder: ruby@3.0.2, python@3.10.12 python@2.7.18, node@12.22.9, go@1.20.4, pipenv@2023.10.3, poetry@1.6.1, rust@1.72.1
installing
[DEBUG] rtx::cmd: $ /home/vladimir/.local/share/rtx/plugins/ruby/bin/install 
To follow progress, use 'tail -f /tmp/ruby-build.20231015040353.1042112.log' or pass --verbose
Downloading 3.2.0.tar.gz...
-> https://dqw8nmjcqpjn7.cloudfront.net/3c198e4a31d31fe8524013066fac84a67fe6cd6067d92c25a1c79089744cb608
Installing mruby-3.2.0...
Installed mruby-3.2.0 to /home/vladimir/.local/share/rtx/installs/ruby/mruby-3.2.0

[DEBUG] rtx::cmd: $ /home/vladimir/.local/share/rtx/plugins/pipenv/bin/list-bin-paths 
[WARN] rtx::toolset: Tool not installed: ruby@3.0.2 (install with: rtx install)

Expected behavior Install mruby successfully

rtx doctor output

vladimir@np940x5n:~$ rtx doctor
rtx version:
  2023.9.1 linux-x64 (2023-09-13)

build:
  Target: x86_64-unknown-linux-gnu
  Features: BREW, DEFAULT, NATIVE_TLS
  Built: Wed, 13 Sep 2023 14:20:42 +0000
  Rust Version: rustc 1.72.0 (5680fa18f 2023-08-23) (Homebrew)
  Profile: release

shell:
  /bin/bash
  GNU bash, version 5.1.16(1)-release (x86_64-pc-linux-gnu)
  Copyright (C) 2020 Free Software Foundation, Inc.
  License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

  This is free software; you are free to change and redistribute it.
  There is NO WARRANTY, to the extent permitted by law.

rtx data directory:
  /home/vladimir/.local/share/rtx

rtx environment variables:
  RTX_SHELL=bash

settings:
  {"always_keep_download": "false", "always_keep_install": "false", "asdf_compat": "false", "disable_default_shorthands": "false", "disable_tools": "[]", "experimental": "false", "jobs": "4", "legacy_version_file": "true", "legacy_version_file_disable_tools": "[]", "log_level": "INFO", "missing_runtime_behavior": "warn", "plugin_autoupdate_last_check_duration": "10080", "raw": "false", "trusted_config_paths": "[]", "verbose": "false", "yes": "false"}

config files:
  /home/vladimir/.config/rtx/config.toml

plugins:
  go       (core)
  java     (core)
  node     (core)
  pipenv   https://github.com/and-semakin/asdf-pipenv.git#06a3181
  poetry   https://github.com/asdf-community/asdf-poetry.git#2f04828
  python   (core)
  ruby     https://github.com/asdf-vm/asdf-ruby.git#057711f
  rust     https://github.com/asdf-community/asdf-rust.git#8436012

toolset:
  ruby@3.0.2, python@3.10.12 python@2.7.18, node@12.22.9, go@1.20.4, pipenv@2023.10.3, poetry@1.6.1, rust@1.72.1

1 problem found:
new rtx version 2023.10.1 available, currently on 2023.9.1
jdx commented 1 year ago

looks like the gem -v check might need to be removed or something