system-wideにrbenvインストール
いつも忘れるので覚書 全部rootでやる
rpm -ivh http://ftp-srv2.kddilabs.jp/Linux/distributions/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm yum update yum install make gcc gcc-c++ git libyaml libyaml-devel zlib zlib-devel readline readline-devel openssl openssl-devel libxml2 libxml2-devel libxslt libxslt-devel libcurl libcurl-devel # rbevn経由でrubyやgemを入れられる共有グループ作成 /usr/sbin/groupadd rbenv cd /usr/local git clone git://github.com/sstephenson/rbenv.git rbenv mkdir rbenv/shims rbenv/versions chgrp -R rbenv rbenv chmod -R g+rwxX rbenv git clone git://github.com/sstephenson/ruby-build.git ruby-build cd ruby-build ./install.sh echo 'export RBENV_ROOT="/usr/local/rbenv"' >> /etc/profile.d/rbenv.sh echo 'export PATH="/usr/local/rbenv/bin:$PATH:/usr/local/bin"' >> /etc/profile.d/rbenv.sh echo 'eval "$(rbenv init -)"' >> /etc/profile.d/rbenv.sh chgrp -R rbenv /usr/local/rbenv/versions chmod -R 2775 /usr/local/rbenv/versions source /etc/profile.d/rbenv.sh rbenv install 2.0.0-p353 rbenv global 2.0.0-p353 chgrp rbenv /usr/local/rbenv/version chmod 664 /usr/local/rbenv/version gem install bundler rbenv rehash