Ruby 4.0.0: BUILD FAILED (Ubuntu 24.04 on x86_64 using ruby-build 20251225-2-g079b5af5) #2594
Answered
by
mislav
sue445
asked this question in
Build failures
-
My environment[sue445@sue445-win] [12-31 23:34:49] $ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 24.04.3 LTS
Release: 24.04
Codename: noblepackages are all latest details[sue445@sue445-win] [12-31 23:32:54] $ sudo apt-get update
Hit:1 https://download.docker.com/linux/ubuntu noble InRelease
Get:2 http://security.ubuntu.com/ubuntu noble-security InRelease [126 kB]
Hit:3 http://archive.ubuntu.com/ubuntu noble InRelease
Get:4 http://archive.ubuntu.com/ubuntu noble-updates InRelease [126 kB]
Get:5 http://security.ubuntu.com/ubuntu noble-security/main amd64 Components [21.5 kB]
Get:6 http://security.ubuntu.com/ubuntu noble-security/universe amd64 Components [71.5 kB]
Get:7 http://archive.ubuntu.com/ubuntu noble-backports InRelease [126 kB]
Get:8 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 Components [175 kB]
Get:9 http://security.ubuntu.com/ubuntu noble-security/restricted amd64 Components [208 B]
Get:10 http://archive.ubuntu.com/ubuntu noble-updates/universe amd64 Components [378 kB]
Get:11 http://security.ubuntu.com/ubuntu noble-security/multiverse amd64 Components [212 B]
Get:12 http://archive.ubuntu.com/ubuntu noble-updates/restricted amd64 Components [212 B]
Get:13 http://archive.ubuntu.com/ubuntu noble-updates/multiverse amd64 Components [940 B]
Get:14 http://archive.ubuntu.com/ubuntu noble-backports/main amd64 Components [7284 B]
Get:15 http://archive.ubuntu.com/ubuntu noble-backports/universe amd64 Components [10.5 kB]
Get:16 http://archive.ubuntu.com/ubuntu noble-backports/restricted amd64 Components [216 B]
Get:17 http://archive.ubuntu.com/ubuntu noble-backports/multiverse amd64 Components [212 B]
Fetched 1044 kB in 3s (304 kB/s)
Reading package lists... Done
[sue445@sue445-win] ✓ ~
[sue445@sue445-win] [12-31 23:34:08] $ sudo apt-get install build-essential autoconf libssl-dev libyaml-dev zlib1g-dev libffi-dev libgmp-dev rustc -y
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
build-essential is already the newest version (12.10ubuntu1).
autoconf is already the newest version (2.71-3).
libssl-dev is already the newest version (3.0.13-0ubuntu3.6).
libyaml-dev is already the newest version (0.2.5-1build1).
zlib1g-dev is already the newest version (1:1.3.dfsg-3.1ubuntu2.1).
libffi-dev is already the newest version (3.4.6-1build1).
libgmp-dev is already the newest version (2:6.3.0+dfsg-2ubuntu6.1).
rustc is already the newest version (1.75.0+dfsg0ubuntu1-0ubuntu7.1).
The following packages were automatically installed and are no longer required:
libdrm-nouveau2 libdrm-radeon1 libgl1-amber-dri libglapi-mesa libltdl7 libxcb-dri2-0
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 76 not upgraded.Log[sue445@sue445-win] [12-31 23:35:04] $ rbenv install 4.0.0
==> Downloading ruby-4.0.0.tar.gz...
-> curl -q -fL -o ruby-4.0.0.tar.gz https://cache.ruby-lang.org/pub/ruby/4.0/ruby-4.0.0.tar.gz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 22.8M 100 22.8M 0 0 10.3M 0 0:00:02 0:00:02 --:--:-- 10.3M
==> Installing ruby-4.0.0...
-> ./configure "--prefix=$HOME/.rbenv/versions/4.0.0" --enable-shared --with-ext=openssl,psych,+
-> make -j 32
-> make install
BUILD FAILED (Ubuntu 24.04 on x86_64 using ruby-build 20251225-2-g079b5af5)
You can inspect the build directory at /tmp/ruby-build.20251231233600.13805.PN6sr2
See the full build log at /tmp/ruby-build.20251231233600.13805.log/tmp/ruby-build.20251231233600.13805.logWorkaroundPassing [sue445@sue445-win] ✓ ~
[sue445@sue445-win] [12-31 23:40:09] $ RUBY_CONFIGURE_OPTS="--disable-install-doc" rbenv install 4.0.0
==> Downloading ruby-4.0.0.tar.gz...
-> curl -q -fL -o ruby-4.0.0.tar.gz https://cache.ruby-lang.org/pub/ruby/4.0/ruby-4.0.0.tar.gz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 22.8M 100 22.8M 0 0 9387k 0 0:00:02 0:00:02 --:--:-- 9387k
==> Installing ruby-4.0.0...
-> ./configure "--prefix=$HOME/.rbenv/versions/4.0.0" --enable-shared --with-ext=openssl,psych,+ --disable-install-doc
-> make -j 32
-> make install
==> Installed ruby-4.0.0 to /home/sue445/.rbenv/versions/4.0.0 |
Beta Was this translation helpful? Give feedback.
Answered by
mislav
Jan 2, 2026
Replies: 1 comment 1 reply
-
|
Hi, thank you for reporting and for sharing your workaround. From your log, this seems to me like the key error message: This could be a problem with either Ruby 4.0 or with rdoc. If you can reproduce this consistently, it might be worth reporting to the Ruby project if you can't find any existing reports (although this one looks similar). As it looks right now, this doesn't seem to be a bug with ruby-build itself. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
sue445
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, thank you for reporting and for sharing your workaround. From your log, this seems to me like the key error message:
This could be a problem with either Ruby 4.0 or with rdoc. If you can reproduce this consistently, it might be worth reporting to the Ruby project if you can't find any existing reports (although this one looks similar).
As it looks right now, this doesn't seem to be a bug with ruby-build itself.