rbenv和ruby系统版本与我用来启动新项目的模板冲突

时间:2019-04-15 03:36:55

标签: ruby-on-rails ruby homebrew bundler rbenv

我正在使用一个模板来启动一个项目,该项目使ruby版本为“ 2.5.5”。但是,如果尝试通过rbenv install 2.5.5安装它,则会遇到...“构建失败(使用ruby-build 20190401的OS X 10.14.4)”

到目前为止,这些是我未成功完成的命令...

rbenv global 2.5.5

brew update && brew upgrade && brew cleanup && brew doctor

rbenv rehash

rbenv shell 2.5.5

brew upgrade rbenv

brew upgrade ruby-build

gem update bundler

gem install bundler

gem update --system

bundle env return 
Bundler       2.0.1
  Platforms   ruby, x86_64-darwin-18
Ruby          2.5.5p157 (2019-03-15 revision 67260) [x86_64-darwin18]
  Full Path   /Users/Jeff/.rvm/rubies/ruby-2.5.5/bin/ruby
  Config Dir  /Users/Jeff/.rvm/rubies/ruby-2.5.5/etc
RubyGems      3.0.3
  Gem Home    /Users/Jeff/.rvm/gems/ruby-2.5.5
  Gem Path    /Users/Jeff/.rvm/gems/ruby-2.5.5:/Users/Jeff/.rvm/gems/ruby-2.5.5@global
  User Path   /Users/Jeff/.gem/ruby/2.5.0
  Bin Dir     /Users/Jeff/.rvm/gems/ruby-2.5.5/bin
Tools         
  Git         2.20.1 (Apple Git-117)
  RVM         1.29.7 (latest)
  rbenv       rbenv 1.1.2
  chruby      not installed

rbenv local返回2.5.5

rbenv global返回2.5.3

rbenv versions返回2.5.5 not installed, system 2.5.3

rbenv --version返回1.1.2

0 个答案:

没有答案