2019 Oct. 12.
2018 Sep. 15.
2018 Aug. 14.
2017 Mar. 12.
2017 Mar. 09.
2017 Feb. 21.
システムワイド rbenvインストール
next49.hatenadiary.jp/entry/20171122/1511350272
$ cd
$ git clone https://github.com/sstephenson/rbenv.git ~/.rbenv
$ git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
~/.profile に記述
export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)"
$ source ~/.profile
$ rbenv rehash
$ rbenv install 2.0.0-p648
$ rbenv rehash
$ rbenv versions
$ rbenv global 2.0.0-p648
$ rbenv rehash
$ rbenv exec bundle config --global path 'vendor/bundle'
$ cat ~/.bundle/config
---
BUNDLE_PATH: vendor/bundle
ユーザ別 rbenvインストール
# apt install git build-essential libssl-dev libreadline-dev zlib1g-dev$ cd
$ git clone https://github.com/sstephenson/rbenv.git ~/.rbenv
$ git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
~/.profile に記述
export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)"
$ source ~/.profile
$ rbenv rehash
rubyインストール
$ rbenv install --list$ rbenv install 2.0.0-p648
$ rbenv rehash
$ rbenv versions
$ rbenv global 2.0.0-p648
bundlerインストール
$ rbenv exec gem install bundler$ rbenv rehash
$ rbenv exec bundle config --global path 'vendor/bundle'
$ cat ~/.bundle/config
---
BUNDLE_PATH: vendor/bundle
0 件のコメント:
コメントを投稿