Posted On 02.12.2024

Rocky 9 install R10K service

0 comments
confdroid.com >> blog >> Rocky 9 install R10K service
§ gem install R10
/usr/share/ruby/mkmf.rb:471:in <code>try_do': The compiler failed to generate an executable file. (RuntimeError) You have to install development tools first. from /usr/share/ruby/mkmf.rb:597:inblock in try_compile'
from /usr/share/ruby/mkmf.rb:544:in with_werror' from /usr/share/ruby/mkmf.rb:597:intry_compile'
from /usr/share/ruby/mkmf.rb:661:in try_cflags' from /usr/share/ruby/mkmf.rb:667:inblock (2 levels) in append_cflags'
from /usr/share/ruby/mkmf.rb:971:in block in checking_for' from /usr/share/ruby/mkmf.rb:361:inblock (2 levels) in postpone'
from /usr/share/ruby/mkmf.rb:331:in open' from /usr/share/ruby/mkmf.rb:361:inblock in postpone'
from /usr/share/ruby/mkmf.rb:331:in open' from /usr/share/ruby/mkmf.rb:357:inpostpone'
from /usr/share/ruby/mkmf.rb:970:in checking_for' from /usr/share/ruby/mkmf.rb:666:inblock in append_cflags'
from /usr/share/ruby/mkmf.rb:665:in each' from /usr/share/ruby/mkmf.rb:665:inappend_cflags'
from extconf.rb:7:in `'

Took me a while to find the solution. To save you some time: INstall ruby-devel and gcc, which are developer tools required to run ruby gems properly. Afterwards, r10k should install easily.

Advertisements
§ sudo dnf install ruby-devel gcc

Author Profile

12ww1160DevOps engineer & architect

Advertisements

Leave a Reply

Your email address will not be published. Required fields are marked *

17 − fourteen =

Related Post

Kubernetes – VM vs Bare Metal

As mentioned here, the series about Kubernetes goes right ahead as planned.While the main topic…

Troubleshooting Puppet 8 with PuppetDB: The val Bug and Other Gotchas

This year I moved all my lab nodes to Rocky 9 and Puppet 8, aside…

Databases – Postgresql – Pilot

## Exploring PostgreSQL: A Reliable Choice for Modern Data Management In the ever-evolving world of…
Social Media Auto Publish Powered By : XYZScripts.com