【问题标题】:how to link ruby in macos catalina如何在 macos catalina 中链接 ruby
【发布时间】:2021-06-08 04:55:29
【问题描述】:

现在我正在使用这个命令来安装 ruby​​:

~/Documents/GitHub/cruise-open on  main! ⌚ 17:04:27
$ brew install ruby
Warning: ruby 3.0.0_1 is already installed and up-to-date.
To reinstall 3.0.0_1, run:
  brew reinstall ruby
(base)

当我检查版本时使用这个命令:

~/Documents/GitHub/cruise-open on  main! ⌚ 17:06:07
$ ruby -v
ruby 2.6.3p62 (2019-04-16 revision 67580) [universal.x86_64-darwin19]
(base)

如何使用新版ruby制作mac?

【问题讨论】:

  • 什么返回type ruby

标签: ruby macos homebrew


【解决方案1】:

添加bash_profile的路径:

export PATH=/usr/local/Cellar/ruby/3.0.0_1/bin:$PATH:$M2_HOME/bin:$CONDA_HOME/bin

让它工作:

source ~/.bash_profile

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-03-16
    • 2020-03-07
    • 1970-01-01
    • 2021-06-10
    相关资源
    最近更新 更多