Hace poco quise instalar una versión diferente de Ruby y Rails en MacOS Big Sur 11.5 Beta. Instalé asdf a través de Homebrew. Quería ejecutar el servidor Rails pero recibí el mensaje:
No preset version installed for command ruby Please install a version by running one of the following: asdf install ruby 3.0.2 or add one of the following versions in your config file at /Users/philippkorn/.tool-versions ruby 3.0.1 Cuando trato de ejecutar cualquier comando asdf install ruby (es decir, asdf install ruby latest ) aparece el siguiente mensaje de error:
~ $ asdf install ruby latest (base) Version not foundIntenté reinstalar asdf con homebrew pero el error persiste...
Estoy enfrentando la misma situación. Parece que se arreglará pronto.
https://github.com/asdf-vm/asdf-ruby/issues/239
Edite ~/.asdf/plugins/ruby/bin/install y aplique este parche , entonces el problema se solucionará para mí.
- if [[ -n "$matching_version" ]]; then + if [[ -z "$matching_version" ]]; then