Bug #19274
closedError installing ruby 3.2.0 on RH 8
Description
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 '
from ./tool/rbinstall.rb:1077:in block in <main>' from ./tool/rbinstall.rb:1074:in
each'
from ./tool/rbinstall.rb:1074:in `'
make: *** [uncommon.mk:415: do-install-nodoc] Error 1
++ return 2
Files
Updated by hsbt (Hiroshi SHIBATA) almost 2 years ago
- Status changed from Open to Feedback
- You should use the release version of Ruby 3.2.0, not rc1.
- You may need to install
libyaml-devel
or other libyaml library.
Updated by aalllop (Alberto Allegue) almost 2 years ago
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?
Updated by graywolf (Gray Wolf) almost 2 years ago
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.
Updated by Anonymous almost 2 years ago
- File signature.asc signature.asc added
ruby-core mailing list -- ruby-core@ml.ruby-lang.org
To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-core.ml.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.