You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ asdf install ruby 3.1.0
Downloading ruby-3.1.0.tar.gz...
-> https://cache.ruby-lang.org/pub/ruby/3.1/ruby-3.1.0.tar.gz
Installing ruby-3.1.0...
BUILD FAILED (Arch Linux using ruby-build 20211225)
Inspect or clean up the working tree at /tmp/ruby-build.20211226205225.15895.kKdnTA
Results logged to /tmp/ruby-build.20211226205225.15895.log
Last 10 log lines:
LC_ALL =
LC_CTYPE = fr_FR.UTF-8
MFLAGS =
gcc (GCC) 11.1.0
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
./ruby: error while loading shared libraries: libruby.so.3.1: cannot open shared object file: No such file or directory
make: *** [uncommon.mk:1191: revision.tmp] Error 127
Based on a comment on rbenv/ruby-build#1875, I've narrowed the cause of this specific problem down to being a problem when asdf is activated and the global version of ruby is system. In order words, these scenarios work fine:
asdf not activated (that is, which ruby outputs /usr/bin/ruby), although you need to have put ~/.asdf/bin in your PATH manually otherwise a later install step fails
asdf activated, with the asdf-global version of ruby set to an asdf-installed ruby version (eg asdf global ruby 2.7.4)
asdf activated, with the version of ruby being used overridden with ASDF_RUBY_VERSION, eg ASDF_RUBY_VERSION=2.7.4 asdf install ruby 3.0.3
This scenario causes the problem described in the initial report:
asdf activated, with the asdf-global version of ruby set to system
Hopefully this extra info helps someone to narrow down the cause of the problem.
Description
Building MRI 3.1.0 fails
Here are the full build logs: http://ix.io/3JBg
Environment
Related issues
The text was updated successfully, but these errors were encountered: