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
Operating System: CentOS Stream 9
CPE OS Name: cpe:/o:centos:centos:9
Kernel: Linux 5.14.0-480.el9.x86_64
Architecture: x86-64
Steps To Reproduce
Converge a centos-9 platform using ruby_rbenv cookbook to install Ruby.
π Expected behavior
Successful installation
β
Chef::Exceptions::Package
-------------------------
dnf_package[gdbm-devel] (aspera-qa-agent::rbenv line 10) had an error: Chef::Exceptions::Package: No candidate version available for gdbm-devel
Cookbook Trace: (most recent call first)
----------------------------------------
/tmp/kitchen/cache/cookbooks/ruby_rbenv/libraries/package_deps.rb:10:in `block in install_ruby_dependencies'
/tmp/kitchen/cache/cookbooks/ruby_rbenv/libraries/package_deps.rb:9:in `each'
/tmp/kitchen/cache/cookbooks/ruby_rbenv/libraries/package_deps.rb:9:in `install_ruby_dependencies'
/tmp/kitchen/cache/cookbooks/ruby_rbenv/resources/ruby.rb:64:in `block in class_from_file'
Compiled Resource:
------------------
# Declared in /tmp/kitchen/cache/cookbooks/aspera-qa-agent/recipes/rbenv.rb:29:in `from_file'
rbenv_ruby("3.1.3") do
action [:install]
updated true
updated_by_last_action true
default_guard_interpreter :default
declared_type :rbenv_ruby
cookbook_name "aspera-qa-agent"
recipe_name "rbenv"
ruby_build_git_url "https://github.com/rbenv/ruby-build.git"
end
β
The package is not part of the default repository and can be installed from CodeReady Linux Builder (CRB). sudo dnf --enablerepo=crb -y install gdbm-devel.
The text was updated successfully, but these errors were encountered:
A workaround is to pre-install the gdbm-devel package (and also libyaml-devel for Ruby 3.3.3) from the CRB adding the following to the platform description in the kitchen.yml file:
π» Brief Description
The cookbook tries to install
gdbm-devel
which is not available on CentOS 9.π₯ Cookbook version
ruby_rbenv (5.0.21) - latest
π©βπ³ Chef-Infra Version
π© Platform details
Steps To Reproduce
Converge a centos-9 platform using ruby_rbenv cookbook to install Ruby.
π Expected behavior
Successful installation
β
β
The package is not part of the default repository and can be installed from CodeReady Linux Builder (CRB).
sudo dnf --enablerepo=crb -y install gdbm-devel
.The text was updated successfully, but these errors were encountered: