Posted at

linux(cent os6.4)でruby環境構築(rbenv使用)

More than 5 years have passed since last update.

$ sudo yum -y update

$ sudo yum -y groupinstall "Development Tools"

$ git clone git://github.com/sstephenson/rbenv.git ~/.rbenv
$ echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
$ exec $SHELL -l
$ git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
$ sudo yum install -y zlib-devel libxml2-devel libxslt-devel openssl-devel readline-devel sqlite-devel mysql-devel libyaml-devel libffi-devel iconv-devel nkf pcre-devel

$ echo 'eval "$(rbenv init -)"' >> ~/.bashrc
$ exec $SHELL -l
$ rbenv install 2.0.0-p195

$ rbenv global 2.0.0-p195
$ rbenv exec gem install bundler
$ rbenv rehash