[ruby-core:111472] [Ruby master Bug#19274] Error installing ruby 3.2.0 on RH 8

Issue #19274 has been reported by aalllop (Alberto Allegue). ---------------------------------------- Bug #19274: Error installing ruby 3.2.0 on RH 8 https://bugs.ruby-lang.org/issues/19274 * Author: aalllop (Alberto Allegue) * Status: Open * Priority: Normal * Backport: 2.7: UNKNOWN, 3.0: UNKNOWN, 3.1: UNKNOWN, 3.2: UNKNOWN ---------------------------------------- When I execute rvm install 3.2.0 the installation fails with the next error: installing default gems from lib: /var/lib/jenkins/.rvm/rubies/ruby-3.2.0-rc1/lib/ruby/gems/3.2.0+3 abbrev 0.1.0 base64 0.1.1 benchmark 0.2.1 bundler 2.4.0.dev <internal:/var/lib/jenkins/.rvm/src/ruby-3.2.0-rc1/lib/rubygems/core_ext/kernel_require.rb>:85:in `require': cannot load such file -- psych (LoadError) from <internal:/var/lib/jenkins/.rvm/src/ruby-3.2.0-rc1/lib/rubygems/core_ext/kernel_require.rb>:85:in `require' from /var/lib/jenkins/.rvm/src/ruby-3.2.0-rc1/lib/rubygems.rb:610:in `load_yaml' from /var/lib/jenkins/.rvm/src/ruby-3.2.0-rc1/lib/rubygems/config_file.rb:346:in `load_file' from /var/lib/jenkins/.rvm/src/ruby-3.2.0-rc1/lib/rubygems/config_file.rb:189:in `initialize' from /var/lib/jenkins/.rvm/src/ruby-3.2.0-rc1/lib/rubygems.rb:331:in `new' from /var/lib/jenkins/.rvm/src/ruby-3.2.0-rc1/lib/rubygems.rb:331:in `configuration' from /var/lib/jenkins/.rvm/src/ruby-3.2.0-rc1/lib/rubygems/user_interaction.rb:167:in `verbose' from /var/lib/jenkins/.rvm/src/ruby-3.2.0-rc1/lib/rubygems/installer.rb:544:in `generate_bin_script' from ./tool/rbinstall.rb:891:in `generate_bin_script' from ./tool/rbinstall.rb:855:in `generate_bin_script' from /var/lib/jenkins/.rvm/src/ruby-3.2.0-rc1/lib/rubygems/installer.rb:506:in `block in generate_bin' from /var/lib/jenkins/.rvm/src/ruby-3.2.0-rc1/lib/rubygems/installer.rb:490:in `each' from /var/lib/jenkins/.rvm/src/ruby-3.2.0-rc1/lib/rubygems/installer.rb:490:in `generate_bin' from /var/lib/jenkins/.rvm/src/ruby-3.2.0-rc1/lib/rubygems/installer.rb:331:in `install' from ./tool/rbinstall.rb:881:in `block in install' from ./tool/rbinstall.rb:721:in `no_write' from ./tool/rbinstall.rb:881:in `install' from ./tool/rbinstall.rb:989:in `block in install_default_gem' from ./tool/rbinstall.rb:976:in `each' from ./tool/rbinstall.rb:976:in `install_default_gem' from ./tool/rbinstall.rb:913:in `block in <main>' from ./tool/rbinstall.rb:1077:in `block in <main>' from ./tool/rbinstall.rb:1074:in `each' from ./tool/rbinstall.rb:1074:in `<main>' make: *** [uncommon.mk:415: do-install-nodoc] Error 1 ++ return 2 -- https://bugs.ruby-lang.org/

Issue #19274 has been updated by hsbt (Hiroshi SHIBATA). Status changed from Open to Feedback * You use the release version of Ruby 3.2.0, not rc1. * You may need to install `libyaml-devel` or other libyaml library. ---------------------------------------- Bug #19274: Error installing ruby 3.2.0 on RH 8 https://bugs.ruby-lang.org/issues/19274#change-100844 * Author: aalllop (Alberto Allegue) * Status: Feedback * Priority: Normal * Backport: 2.7: UNKNOWN, 3.0: UNKNOWN, 3.1: UNKNOWN, 3.2: UNKNOWN ---------------------------------------- When I execute rvm install 3.2.0 the installation fails with the next error: installing default gems from lib: /var/lib/jenkins/.rvm/rubies/ruby-3.2.0-rc1/lib/ruby/gems/3.2.0+3 abbrev 0.1.0 base64 0.1.1 benchmark 0.2.1 bundler 2.4.0.dev <internal:/var/lib/jenkins/.rvm/src/ruby-3.2.0-rc1/lib/rubygems/core_ext/kernel_require.rb>:85:in `require': cannot load such file -- psych (LoadError) from <internal:/var/lib/jenkins/.rvm/src/ruby-3.2.0-rc1/lib/rubygems/core_ext/kernel_require.rb>:85:in `require' from /var/lib/jenkins/.rvm/src/ruby-3.2.0-rc1/lib/rubygems.rb:610:in `load_yaml' from /var/lib/jenkins/.rvm/src/ruby-3.2.0-rc1/lib/rubygems/config_file.rb:346:in `load_file' from /var/lib/jenkins/.rvm/src/ruby-3.2.0-rc1/lib/rubygems/config_file.rb:189:in `initialize' from /var/lib/jenkins/.rvm/src/ruby-3.2.0-rc1/lib/rubygems.rb:331:in `new' from /var/lib/jenkins/.rvm/src/ruby-3.2.0-rc1/lib/rubygems.rb:331:in `configuration' from /var/lib/jenkins/.rvm/src/ruby-3.2.0-rc1/lib/rubygems/user_interaction.rb:167:in `verbose' from /var/lib/jenkins/.rvm/src/ruby-3.2.0-rc1/lib/rubygems/installer.rb:544:in `generate_bin_script' from ./tool/rbinstall.rb:891:in `generate_bin_script' from ./tool/rbinstall.rb:855:in `generate_bin_script' from /var/lib/jenkins/.rvm/src/ruby-3.2.0-rc1/lib/rubygems/installer.rb:506:in `block in generate_bin' from /var/lib/jenkins/.rvm/src/ruby-3.2.0-rc1/lib/rubygems/installer.rb:490:in `each' from /var/lib/jenkins/.rvm/src/ruby-3.2.0-rc1/lib/rubygems/installer.rb:490:in `generate_bin' from /var/lib/jenkins/.rvm/src/ruby-3.2.0-rc1/lib/rubygems/installer.rb:331:in `install' from ./tool/rbinstall.rb:881:in `block in install' from ./tool/rbinstall.rb:721:in `no_write' from ./tool/rbinstall.rb:881:in `install' from ./tool/rbinstall.rb:989:in `block in install_default_gem' from ./tool/rbinstall.rb:976:in `each' from ./tool/rbinstall.rb:976:in `install_default_gem' from ./tool/rbinstall.rb:913:in `block in <main>' from ./tool/rbinstall.rb:1077:in `block in <main>' from ./tool/rbinstall.rb:1074:in `each' from ./tool/rbinstall.rb:1074:in `<main>' make: *** [uncommon.mk:415: do-install-nodoc] Error 1 ++ return 2 -- https://bugs.ruby-lang.org/

Issue #19274 has been updated by aalllop (Alberto Allegue). Sorry, I have posted one of the diferent tests I have done. I have installed first time the 3.2.0 version and the error was the same. I had installed libyaml-0.1.7-5.el8.x86_64 and now I have installed libyaml-devel-0.1.7-5.el8.x86_64 and seems to finish ok. Is there any requirements file that says that you need to install the devel version? ---------------------------------------- Bug #19274: Error installing ruby 3.2.0 on RH 8 https://bugs.ruby-lang.org/issues/19274#change-100847 * Author: aalllop (Alberto Allegue) * Status: Feedback * Priority: Normal * Backport: 2.7: UNKNOWN, 3.0: UNKNOWN, 3.1: UNKNOWN, 3.2: UNKNOWN ---------------------------------------- When I execute rvm install 3.2.0 the installation fails with the next error: installing default gems from lib: /var/lib/jenkins/.rvm/rubies/ruby-3.2.0-rc1/lib/ruby/gems/3.2.0+3 abbrev 0.1.0 base64 0.1.1 benchmark 0.2.1 bundler 2.4.0.dev <internal:/var/lib/jenkins/.rvm/src/ruby-3.2.0-rc1/lib/rubygems/core_ext/kernel_require.rb>:85:in `require': cannot load such file -- psych (LoadError) from <internal:/var/lib/jenkins/.rvm/src/ruby-3.2.0-rc1/lib/rubygems/core_ext/kernel_require.rb>:85:in `require' from /var/lib/jenkins/.rvm/src/ruby-3.2.0-rc1/lib/rubygems.rb:610:in `load_yaml' from /var/lib/jenkins/.rvm/src/ruby-3.2.0-rc1/lib/rubygems/config_file.rb:346:in `load_file' from /var/lib/jenkins/.rvm/src/ruby-3.2.0-rc1/lib/rubygems/config_file.rb:189:in `initialize' from /var/lib/jenkins/.rvm/src/ruby-3.2.0-rc1/lib/rubygems.rb:331:in `new' from /var/lib/jenkins/.rvm/src/ruby-3.2.0-rc1/lib/rubygems.rb:331:in `configuration' from /var/lib/jenkins/.rvm/src/ruby-3.2.0-rc1/lib/rubygems/user_interaction.rb:167:in `verbose' from /var/lib/jenkins/.rvm/src/ruby-3.2.0-rc1/lib/rubygems/installer.rb:544:in `generate_bin_script' from ./tool/rbinstall.rb:891:in `generate_bin_script' from ./tool/rbinstall.rb:855:in `generate_bin_script' from /var/lib/jenkins/.rvm/src/ruby-3.2.0-rc1/lib/rubygems/installer.rb:506:in `block in generate_bin' from /var/lib/jenkins/.rvm/src/ruby-3.2.0-rc1/lib/rubygems/installer.rb:490:in `each' from /var/lib/jenkins/.rvm/src/ruby-3.2.0-rc1/lib/rubygems/installer.rb:490:in `generate_bin' from /var/lib/jenkins/.rvm/src/ruby-3.2.0-rc1/lib/rubygems/installer.rb:331:in `install' from ./tool/rbinstall.rb:881:in `block in install' from ./tool/rbinstall.rb:721:in `no_write' from ./tool/rbinstall.rb:881:in `install' from ./tool/rbinstall.rb:989:in `block in install_default_gem' from ./tool/rbinstall.rb:976:in `each' from ./tool/rbinstall.rb:976:in `install_default_gem' from ./tool/rbinstall.rb:913:in `block in <main>' from ./tool/rbinstall.rb:1077:in `block in <main>' from ./tool/rbinstall.rb:1074:in `each' from ./tool/rbinstall.rb:1074:in `<main>' make: *** [uncommon.mk:415: do-install-nodoc] Error 1 ++ return 2 -- https://bugs.ruby-lang.org/

On 2022-12-28 12:52:41 +0000, aalllop (Alberto Allegue) via ruby-core wrote:
Issue #19274 has been updated by aalllop (Alberto Allegue).
Sorry, I have posted one of the diferent tests I have done. I have installed first time the 3.2.0 version and the error was the same.
I had installed libyaml-0.1.7-5.el8.x86_64 and now I have installed libyaml-devel-0.1.7-5.el8.x86_64 and seems to finish ok. Is there any requirements file that says that you need to install the devel version?
This is actually distribution specific. For example archlinux does not (in general) split packages into the base and -dev, but has just one. In general for compilation of ruby, you need to have headers for the C libraries used (those are provided by the libyaml-devel). After the ruby is compiled, you should be fined to uninstall the -devel package. Since the list of packages differs per distribution, I'm unsure if (and doubt it) there is definitive list anywhere. W. -- There are only two hard things in Computer Science: cache invalidation, naming things and off-by-one errors.

Issue #19274 has been updated by graywolf (Gray Wolf). On 2022-12-28 12:52:41 +0000, aalllop (Alberto Allegue) via ruby-core wrote:
Issue #19274 has been updated by aalllop (Alberto Allegue).
Sorry, I have posted one of the diferent tests I have done. I have installed first time the 3.2.0 version and the error was the same.
I had installed libyaml-0.1.7-5.el8.x86_64 and now I have installed libyaml-devel-0.1.7-5.el8.x86_64 and seems to finish ok. Is there any requirements file that says that you need to +install the devel version?
This is actually distribution specific. For example archlinux does not (in general) split packages into the base and -dev, but has just one. In general for compilation of ruby, you need to have headers for the C libraries used (those are provided by the libyaml-devel). After the ruby is compiled, you should be fined to uninstall the -devel package. Since the list of packages differs per distribution, I'm unsure if (and doubt it) there is definitive list anywhere. W. ---------------------------------------- Bug #19274: Error installing ruby 3.2.0 on RH 8 https://bugs.ruby-lang.org/issues/19274#change-100848 * Author: aalllop (Alberto Allegue) * Status: Feedback * Priority: Normal * Backport: 2.7: UNKNOWN, 3.0: UNKNOWN, 3.1: UNKNOWN, 3.2: UNKNOWN ---------------------------------------- When I execute rvm install 3.2.0 the installation fails with the next error: installing default gems from lib: /var/lib/jenkins/.rvm/rubies/ruby-3.2.0-rc1/lib/ruby/gems/3.2.0+3 abbrev 0.1.0 base64 0.1.1 benchmark 0.2.1 bundler 2.4.0.dev <internal:/var/lib/jenkins/.rvm/src/ruby-3.2.0-rc1/lib/rubygems/core_ext/kernel_require.rb>:85:in `require': cannot load such file -- psych (LoadError) from <internal:/var/lib/jenkins/.rvm/src/ruby-3.2.0-rc1/lib/rubygems/core_ext/kernel_require.rb>:85:in `require' from /var/lib/jenkins/.rvm/src/ruby-3.2.0-rc1/lib/rubygems.rb:610:in `load_yaml' from /var/lib/jenkins/.rvm/src/ruby-3.2.0-rc1/lib/rubygems/config_file.rb:346:in `load_file' from /var/lib/jenkins/.rvm/src/ruby-3.2.0-rc1/lib/rubygems/config_file.rb:189:in `initialize' from /var/lib/jenkins/.rvm/src/ruby-3.2.0-rc1/lib/rubygems.rb:331:in `new' from /var/lib/jenkins/.rvm/src/ruby-3.2.0-rc1/lib/rubygems.rb:331:in `configuration' from /var/lib/jenkins/.rvm/src/ruby-3.2.0-rc1/lib/rubygems/user_interaction.rb:167:in `verbose' from /var/lib/jenkins/.rvm/src/ruby-3.2.0-rc1/lib/rubygems/installer.rb:544:in `generate_bin_script' from ./tool/rbinstall.rb:891:in `generate_bin_script' from ./tool/rbinstall.rb:855:in `generate_bin_script' from /var/lib/jenkins/.rvm/src/ruby-3.2.0-rc1/lib/rubygems/installer.rb:506:in `block in generate_bin' from /var/lib/jenkins/.rvm/src/ruby-3.2.0-rc1/lib/rubygems/installer.rb:490:in `each' from /var/lib/jenkins/.rvm/src/ruby-3.2.0-rc1/lib/rubygems/installer.rb:490:in `generate_bin' from /var/lib/jenkins/.rvm/src/ruby-3.2.0-rc1/lib/rubygems/installer.rb:331:in `install' from ./tool/rbinstall.rb:881:in `block in install' from ./tool/rbinstall.rb:721:in `no_write' from ./tool/rbinstall.rb:881:in `install' from ./tool/rbinstall.rb:989:in `block in install_default_gem' from ./tool/rbinstall.rb:976:in `each' from ./tool/rbinstall.rb:976:in `install_default_gem' from ./tool/rbinstall.rb:913:in `block in <main>' from ./tool/rbinstall.rb:1077:in `block in <main>' from ./tool/rbinstall.rb:1074:in `each' from ./tool/rbinstall.rb:1074:in `<main>' make: *** [uncommon.mk:415: do-install-nodoc] Error 1 ++ return 2 -- https://bugs.ruby-lang.org/
participants (4)
-
aalllop (Alberto Allegue)
-
graywolf (Gray Wolf)
-
hsbt (Hiroshi SHIBATA)
-
Wolf