published under license CC4-BY
posted in category Software Development & Programming / asdf
posted at 23. Apr '25
Howto Fix asdf No Executable Found For Current Version
Recently I began to use https://github.com/asdf-vm/asdf/ instead of https://github.com/rbenv/rbenv (there is a support for multiple languages) and it is less comfortable and also I encountered this weird error:
damon@rapthalia:~/oni_sorceress$ asdf install ruby 3.4.3
error installing version: version {version 3.4.3} of ruby is already installed
damon@rapthalia:~/oni_sorceress$ ruby -v
No executable ruby found for current version. Please select a different version or install ruby manually for the current version
damon@rapthalia:~/oni_sorceress$ bundle
No executable bundle found for current version. Please select a different version or install bundle manually for the current version
damon@rapthalia:~/oni_sorceress$ gem -v
No executable gem found for current version. Please select a different version or install gem manually for the current version
So apparently Ruby 3.4.3 is already there, but at the same time executable is not there…
damon@rapthalia:~$ cd ~/.asdf/installs/ruby/3.4.3/
damon@rapthalia:~/.asdf/installs/ruby/3.4.3$ ls
damon@rapthalia:~/.asdf/installs/ruby/3.4.3$
Because the folder is there, but with no files inside.
The fix is removing the folder.
damon@rapthalia:~$ rm -rf ~/.asdf/installs/ruby/3.4.3
and now run the install command again:
damon@rapthalia:~/oni_sorceress$ asdf install ruby 3.4.3
And that’s all.
Add Comment