FFI gem build failure on Ruby 3.x

Hi everyone, Tried creating a sandbox app using Ruby 3.0.2 with RoR 6.1.4 & 7.0.1. The build crashes in both cases due to an FFI gem native build failure on extconf.rb.

Error msg: “/home/bjpcjp/.rbenv/versions/3.0.2/lib/ruby/3.0.0/mkmf.rb:471:in `try_do’: The compiler failed to generate an executable file. (RuntimeError) - You have to install development tools first.”

I didn’t notice any further help verbage, and don’t know what tools are missing.

I’ve tried uninstalling & reinstalling the gem. No success.