.rvmrc 作る
Closed this issue · 11 comments
あ、コミットログにナンバー入れ忘れた;x;
これなにに必要なの?
これ作っておくと、そのディレクトリに移動してきたら、
指定してある gemset を読んでくれるので、複数環境がある人にはとても便利なのです。
でないと、いちいち rvm use hogehoge ってしないと、rails2 の環境で rails s とか打って、s という名前のrailsプロジェクトを生成してしまうのです。(rails3 で言うところの rails new app_name は rails2 だと rails app_name なんです)
28日に各PCをチェックする
僕の勘違いでgemsetは不要。.rvmrcで使うRubyのバージョンだけ書けばよい。
rvm use ruby-1.9.2-p180
.rvmrcは各自で管理することに。→gitの管理外にする
rvmインストールし直し。
$ bash < <(curl -s https://rvm.beginrescueend.com/install/rvm)
curl -s https://rvm.beginrescueend.com/install/rvm -o rvm-installer ; chmod +x rvm-installer ; ./rvm-installer --version latest
fatal: could not create work tree dir 'rvm'.: Permission denied
ERROR: Unable to clone the RVM repository, attempted both git:// and https://
mac portsを使って,ruby 1.9.1p378にした。
railsのバージョンは3.0.7
1.9.2にできました。無事に設定終了。