Created
August 29, 2011 15:09
-
-
Save shu0115/1178574 to your computer and use it in GitHub Desktop.
Ruby1.9.2+Rails3.0.9セットアップ
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
◆環境 | |
Mac OS X 10.6.8 Snow Leopard | |
◆インストール対象 | |
Xcode | |
MacPorts | |
Git | |
RVM | |
Ruby1.9.2 | |
Rails3.0.9 | |
Heroku | |
-------------------- | |
◆Xcode Toolsインストール | |
[ http://developer.apple.com/xcode/ ] | |
◆MacPortsインストール | |
[ http://www.macports.org/install.php ] | |
[ https://distfiles.macports.org/MacPorts/MacPorts-2.0.0-10.6-SnowLeopard.dmg ] | |
◆パス設定 | |
cd /Users/(USER_NAME) | |
vi .bash_profile | |
----- | |
export PATH=/opt/local/bin:/opt/local/sbin:$PATH | |
----- | |
※「.bash_profile」が無ければ作成される | |
※ターミナル再起動 | |
◆MacPorts更新 | |
sudo port selfupdate | |
◆Gitインストール | |
sudo port install git-core | |
git --version | |
----- | |
git version 1.7.6 | |
----- | |
◆Git設定 | |
git config --global user.name "MY_NAME" | |
git config --global user.email MY_EMAIL_ADDRESS | |
git config --list | |
--- | |
user.email=MY_EMAIL_ADDRESS | |
user.name=MY_NAME | |
--- | |
◆RVMインストール | |
bash < <(curl -s https://rvm.beginrescueend.com/install/rvm) | |
(500エラーになる場合がある=>何度かやると通る) | |
◆「.bash_profile」パス設定追加 | |
cd /Users/(USER_NAME) | |
vi .bash_profile | |
----- | |
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # This loads RVM into a shell session. | |
----- | |
※ターミナル再起動 | |
◆RVMリスト確認 | |
rvm list | |
----- | |
rvm rubies | |
----- | |
◆Ruby1.9.2インストール | |
rvm install ruby-1.9.2 | |
◆Ruby1.9.2デフォルト設定 | |
rvm use 1.9.2 --default | |
◆Rails3インストール | |
gem install rails --version 3.0.9 | |
(bundlerもインストールされる) | |
◆Herokuインストール | |
gem install heroku | |
gem list heroku | |
----- | |
heroku (2.4.0) | |
----- | |
◆公開鍵/秘密鍵 作成 | |
ssh-keygen | |
----- | |
Enter file in which to save the key (/Users/(ユーザ名)/.ssh/id_rsa): [ Enter ] | |
Enter passphrase (empty for no passphrase): [ パスワード入力 ] | |
Enter same passphrase again: [ パスワード入力 ] | |
----- | |
cd /Users/(ユーザ名)/.ssh | |
ls | |
----- | |
id_rsa id_rsa.pub | |
----- | |
id_rsa:秘密鍵 | |
id_rsa.pub:公開鍵 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment