Created
December 4, 2010 17:51
-
-
Save a2ikm/728353 to your computer and use it in GitHub Desktop.
install homebrew and its some packages, and rvm
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
#!/usr/bin/zsh | |
PATH=/usr/bin:$PATH | |
EDITOR=/usr/bin/vim | |
if [ -d /usr/local/lib ]; then | |
sudo mv /usr/local/lib /usr/local/lib.bak | |
echo "moved /usr/local/lib to /usr/local/lib.bak" | |
fi | |
if [ -d /usr/local/include ]; then | |
sudo mv /usr/local/include /usr/local/include.bak | |
echo "moved /usr/local/include to /usr/local/include.bak" | |
fi | |
if [ -d /usr/local/share ]; then | |
sudo mv /usr/local/share /usr/local/share.bak | |
echo "moved /usr/local/share to /usr/local/share.bak" | |
fi | |
ruby -e "$(curl -fsSLk https://gist.github.com/raw/323731/install_homebrew.rb)" | |
brew install git | |
brew install wget | |
brew install memcached | |
cp /usr/local/Cellar/memcached/1.4.5/com.danga.memcached.plist ~/Library/LaunchAgents/ | |
launchctl load -w ~/Library/LaunchAgents/com.danga.memcached.plist | |
brew install readline | |
brew link readline |
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
#!/usr/bin/zsh | |
PATH=/usr/local/bin:/usr/bin:$PATH | |
EDITOR=/usr/bin/vim | |
bash < <( curl http://rvm.beginrescueend.com/releases/rvm-install-head ) | |
source "$HOME/.rvm/scripts/rvm" | |
rvm reload | |
echo 'rvm_archflags="-arch x86_64"' > ~/.rvmrc | |
rvm install 1.8.7 --with-readline-dir=/usr/local | |
rvm gemset use global | |
gem install bundler wirble | |
rvm install 1.9.2 --with-readline-dir=/usr/local | |
rvm gemset use global | |
gem install bundler wirble | |
rvm use 1.9.2@rails3 --default --create | |
gem install rails | |
echo 'add the following line to ~/.zshrc or ~/.bashrc' | |
echo '' | |
echo ' [[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"' | |
echo '' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment