Skip to content

Instantly share code, notes, and snippets.

@jbrown
Created August 13, 2012 20:05
Show Gist options
  • Save jbrown/3343750 to your computer and use it in GitHub Desktop.
Save jbrown/3343750 to your computer and use it in GitHub Desktop.
Installing git from source on Redhat
# Usage: curl -kL https://raw.github.com/gist/3343750/HASH/install.sh | bash
# git dependencies
yum install -y curl-devel expat-devel gettext-devel openssl-devel zlib-devel
# so we can compile git
yum install -y gcc gcc-c++
# now download git from github
# https://github.com/git/git/downloads
curl -Lk https://github.com/git/git/tarball/v1.7.12-rc2 > git-1.7.12-rc2.tgz
tar xzvf git-1.7.12-rc2.tgz
cd git-git-2a13db6/
make prefix=/usr/local all
sudo make prefix=/usr/local install
ln -s /opt/skarven/todo/current/public /var/www/html/todo
# assumes ssh/config connecting at e3
cap git:create_repo
# prompts for project name
# Enter project name: foobar
# creates repo on icis at /home/e3/repos/foobar.git
git clone icis:repos/foobar.git
#to download the cert
wget http://curl.haxx.se/ca/cacert.pem
#to let curl use it for the next calls
export CURL_CA_BUNDLE=~/cacert.pem
curl -L https://get.rvm.io | bash -s stable --ruby
# on fw
# /etc/squid/spray.conf
0 /todo http://ui0.example.com:80/todo
# /opt/skarven/etc/httpd/conf.d/todo.conf
RackBaseURI /todo
<Directory /var/www/html/todo>
Options -MultiViews FollowSymlinks
</Directory>
<Directory /opt/skarven/todo/public>
Options -MultiViews
Allow from *
</Directory>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment