Created
February 13, 2013 16:59
-
-
Save pnlybubbles/4946087 to your computer and use it in GitHub Desktop.
rbenv環境を整えるシェルスクリプトLion用
ruby-1.9.3-p385のみインストール
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
#!/bin/bash | |
echo "\033[1;36m===>\033[0;39m \033[1mInstalling openssl\033[0;39m" | |
brew install openssl | |
echo "\033[1;36m===>\033[0;39m \033[1mInstalling readline\033[0;39m" | |
brew install readline | |
echo "\033[1;36m===>\033[0;39m \033[1mInstalling rbenv\033[0;39m" | |
brew install rbenv | |
echo "\033[1;36m===>\033[0;39m \033[1mInstalling ruby-build\033[0;39m" | |
brew install ruby-build | |
echo "\033[1;36m===>\033[0;39m \033[1mAdding settings to .zprofile\033[0;39m" | |
echo 'eval "$(rbenv init -)"' >> .zshrc | |
source .zshrc | |
echo "\033[1;36m===>\033[0;39m \033[1mInstalling ruby-1.9.3-p385\033[0;39m" | |
export CFLAGS=-Wno-error=shorten-64-to-32 | |
export CONFIGURE_OPTS="--with-openssl-dir=/path/to/dir --with-readline-dir=/path/to/dir" | |
rbenv install 1.9.3-p385 | |
echo "\033[1;36m===>\033[0;39m \033[1mApply ruby-1.9.3-p385 to global\033[0;39m" | |
rbenv global 1.9.3-p385 | |
echo "\033[1;36m===>\033[0;39m \033[1mAll finished\033[0;39m" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment