MacOS Sierra에서 루비 관리자로 RVM에서 RBENV로 전환했습니다.
$ rbenv version
2.3.1 (set by /Users/meltemi/.rbenv/version)
$ which ruby
/Users/meltemi/.rbenv/shims/ruby
나는 Homebrew를 사용하여 같은 패키지를 설치했습니다. vim
수년 동안 Ruby 버전은 Homebrew를 통해 설치되지 않았습니다.
이제 내가 brew upgrade vim
나는 루비의 강제 의존성 설치를 얻는다.
==> Upgrading vim
==> Installing dependencies for vim: ruby
==> Installing vim dependency: ruby
==> Downloading https://homebrew.bintray.com/bottles/ruby-2.3.1_2.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring ruby-2.3.1_2.sierra.bottle.tar.gz
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink bin/rake
Target /usr/local/bin/rake
already exists. You may want to remove it:
rm '/usr/local/bin/rake'
To force the link and overwrite all conflicting files:
brew link --overwrite ruby
To list all files that would be deleted:
brew link --overwrite --dry-run ruby
Possible conflicting files are:
/usr/local/bin/rake
/usr/local/bin/rdoc
/usr/local/bin/ri
==> Caveats
Emacs Lisp files have been installed to:
/usr/local/share/emacs/site-lisp/ruby
==> Summary
🍺 /usr/local/Cellar/ruby/2.3.1_2: 1,261 files, 18.8M
Homebrew (읽기 : vim
)를 사용하여 rbenv
루비 버전?
$ rbenv system
...rbenv: no such command 'system'
. 나는 생각한다.system
버전 #을 대체합니다. 시스템 루비로 얼마나 쉽게 전환 할 수 있습니까? 과 이전에 설정 한 모든 항목으로 다시 돌아가십시오.