我最近想在 MacOS Big Sur 11.5 Beta 上安裝不同版本的 ruby?? 和 Rails。我通過 Homebrew 安裝了 asdf。我想運行 rails server 但收到訊息:
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
當我嘗試運行任何 asdf install ruby?? 命令(即asdf install ruby latest)時,我收到以下錯誤訊息:
~ $ asdf install ruby latest (base)
Version not found
我嘗試用自制軟體重新安裝 asdf 但錯誤仍然存??在...
uj5u.com熱心網友回復:
我面臨同樣的情況。好像很快就修好了。
https://github.com/asdf-vm/asdf-ruby/issues/239
編輯~/.asdf/plugins/ruby/bin/install并應用此補丁,然后問題就為我解決了。
- if [[ -n "$matching_version" ]]; then
if [[ -z "$matching_version" ]]; then
轉載請註明出處,本文鏈接:https://www.uj5u.com/ruanti/367596.html
上一篇:檢查檔案或目錄是否被隱藏
下一篇:OSX終端/Vim語法顏色
