【发布时间】:2021-09-02 18:02:14
【问题描述】:
我正在开始 appacademy 公开课程,并试图按照他们想要的方式设置 Ruby。我已经按照他们的说明安装了 rbenz。我安装了 rbenz 2.7.2,因为我听说它与新的 M1 芯片兼容。一切似乎都奏效了。但是,当我检查 ruby 版本(ruby -v)时,我遇到了重复错误:
/Users/raylang/.rbenv/shims/ruby: line 3: =: command not found
/Users/raylang/.rbenv/shims/ruby: line 3: =: command not found
/Users/raylang/.rbenv/shims/ruby: line 3: =: command not found```
It's weird because it tells me that I have installed it already:
```Installed openssl-1.1.1k to /Users/raylang/.rbenv/versions/2.7.2
Downloading ruby-2.7.2.tar.bz2...
-> https://cache.ruby-lang.org/pub/ruby/2.7/ruby-2.7.2.tar.bz2
Installing ruby-2.7.2...
ruby-build: using readline from homebrew
Installed ruby-2.7.2 to /Users/raylang/.rbenv/versions/2.7.2```
Any ideas anyone?
【问题讨论】:
标签: ruby-on-rails ruby terminal