rbenv

since 2022-11-19

さすがに chruby が古すぎるので。。。

以下 WSL2 Ubuntu 18.04.1 LTS

https://github.com/rbenv/rbenv#basic-git-checkout

$ git clone https://github.com/rbenv/rbenv.git ~/.rbenv
$ echo 'eval "$(~/.rbenv/bin/rbenv init - bash)"' >> ~/.bash_profile
$ git clone https://github.com/rbenv/ruby-build.git "$(rbenv root)"/plugins/ruby-build

例えば ruby 2.3.0 を使ってみたい

$ rbenv install 2.3.0

$ rbenv versions
* system
  2.3.0

その ruby を使いたいソースコートに移動して

$ rbenv local 2.3.0
$ rbenv exec gem update --system
$ rbenv exec gem install bundler
$ rbenv exec bundle
$ rbenv exec bundle exec 以下略
rbenv.txt · 最終更新: 2022/11/19 18:57 by Takuya Nishimoto
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0