Last active
August 29, 2015 14:12
-
-
Save koji/53d1e6849a97b0076e8e to your computer and use it in GitHub Desktop.
If you can't install ruby2.0 or later with rbenv and vagrant(CentOS 6.6)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
If you can't install ruby2.0 or later with rbenv, you should check you installed those already. | |
sudo yum -y install libyaml libyaml-devel zlib zlib-devel readline readline-devel openssl openssl-devel libxml2 libxml2-devel libxslt libxslt-devel | |
If you finish installing those, you can install ruby2.0 or later probably. | |
And you should confirm which you can install | |
rbenv install -l | |
Finally you will install ruby2.0 or later | |
rbenv install -v 2.2.0 | |
rbenv rehash | |
rbenv global 2.2.0 | |
rbenv versions | |
SAMPLE | |
[vagrant@vagrant-centos65 ~]$ sudo yum -y install libyaml libyaml-devel zlib zlib-devel readline readline-devel openssl openssl-devel libxml2 libxml2-devel libxslt libxslt-devel | |
[vagrant@vagrant-centos65 ~]$ rbenv install -l | |
[vagrant@vagrant-centos65 ~]$ rbenv install -v 2.2.0 | |
[vagrant@vagrant-centos65 ~]$ rbenv rehash | |
[vagrant@vagrant-centos65 ~]$ rbenv global 2.2.0 | |
[vagrant@vagrant-centos65 ~]$ rbenv versions | |
system | |
1.9.3-p551 | |
* 2.2.0 (set by /home/vagrant/.rbenv/version) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment