Created
January 17, 2017 15:20
-
-
Save sdorsett/8e54e521f87b077ca5ce0961828f1556 to your computer and use it in GitHub Desktop.
install git and ruby from source on CentOS 7
This file contains hidden or 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
# install the dependencies | |
yum groupinstall -y development tools | |
yum install -y curl-devel expat-devel gettext-devel nss openssl-devel perl-devel tar zlib-devel libxml2 libxml2-devel libxslt libxslt-devel | |
yum clean all | |
# install git 2.10.2 | |
curl https://www.kernel.org/pub/software/scm/git/git-2.10.2.tar.gz | tar xz | |
cd git-2.10.2 | |
make prefix=/usr/local | |
make prefix=/usr/local install | |
# install ruby 2.3.1 | |
curl https://cache.ruby-lang.org/pub/ruby/2.3/ruby-2.3.1.tar.gz | tar xz | |
cd ruby-2.3.1 | |
./configure | |
make | |
make install | |
gem update --system | |
gem install bundler |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment