[英]How to link ruby-v to asdf?
我正在使用 asdf 安裝 ruby,但遇到如下問題:
$ asdf list
ruby
3.0.2
$ ruby -v
Command 'ruby' not found, but can be installed with:
sudo apt install ruby
如何將ruby-v
鏈接到 asdf?
asdf
# Delete the following in your .bashrc file
. $HOME/.asdf/asdf.sh
. $HOME/.asdf/completions/asdf.bash
# Remove the $HOME/.asdf directory and all asdf config files by typing
# the following in your terminal
rm -rf ${ASDF_DATA_DIR:-$HOME/.asdf}
rm -rf $HOME/.tool-versions $HOME/.asdfrc
asdf
,閱讀我在成功使版本正確后發表的帖子在 WSL2 中安裝 asdf(ruby、nodejs 和 yarn)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.