Skip to content

Instantly share code, notes, and snippets.

@sdorsett
Created January 17, 2017 15:20
Show Gist options
  • Save sdorsett/8e54e521f87b077ca5ce0961828f1556 to your computer and use it in GitHub Desktop.
Save sdorsett/8e54e521f87b077ca5ce0961828f1556 to your computer and use it in GitHub Desktop.
install git and ruby from source on CentOS 7
# 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