Hello @kmitov.
Gems that depends on SSL have this kind of problem, sometimes. Maybe there are some dependencies missing in your environment. A good tip to isolate the problem is to try to install the problematic gem directly.
So, try this first:
rvm use ruby-3.0.4
gem install puma -v 6.4.0
The above gem install
is expected to fail. But now you can focus on this specific error before try to create a new Rails project again.
As @masterleep suggested, you should be able to install the gem passing this compilation parameter PUMA_DISABLE_SSL=1
.
PUMA_DISABLE_SSL=1 gem install puma -v 6.4.0