seguí estos pasos https://gorails.com/setup/windows/10
cd git clone https://github.com/rbenv/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
exec $SHELL
git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bashrc
exec $SHELL
rbenv install 3.0.1
me muestra este mensaje
/tmp/ruby-build.20210522125155.2456.WHYkIT/ruby-2.3.3
rbenv versions
?/tmp/ruby-build.20210522135630.2366.ANmvTb/ruby-2.5.1': configure: error: no acceptable C compiler found in $PATH See
config.log' for more detailssudo apt-get update && sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev software-properties-common libffi-dev
? eso debería instalar las dependencias que requieres. Si lo hiciste, fíjate si te tiró algún error en esa parte y agrégalo a la pregunta