LoginSignup
1
1

More than 5 years have passed since last update.

ruby2.0 + rbenv in centos

Last updated at Posted at 2013-11-21

$ sudo yum -y update
$ 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

https://github.com/sstephenson/rbenv
 $ git clone https://github.com/sstephenson/rbenv.git ~/.rbenv
$ echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
$ echo 'eval "$(rbenv init -)"' >> ~/.bash_profile

https://github.com/sstephenson/ruby-build
$ git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
$ MAKE_OPTS="-j 4" rbenv install 2.0.0-p247

$ rbenv global 2.0.0-p247
$ rbenv exec gem install bundler
$ rbenv rehash
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1