LoginSignup
7
8

More than 5 years have passed since last update.

会社に新しいMBAが届いたので開発環境構築メモ

Last updated at Posted at 2012-10-11

xcodeインストール

xquartzインストール

xcodeを起動して Command Line Toolsをインストール

brewインストール

sudo mkdir /usr/local
sudo chown -R (ログインユーザー) /usr/local
cd /usr/local
mkdir homebrew && curl -L https://github.com/mxcl/homebrew/tarball/master | tar xz --strip 1 -C homebrew
mkdir /usr/local/bin
ln -s /usr/local/homebrew/bin/brew /usr/local/bin/brew

ターミナルの設定

cd .
vi .bash_profile
export PATH=/usr/local/bin:$PATH
export PS1="\u \W $ "
source .bash_profile

brewからインストール

brew update
brew doctor
brew install imagemagick
brew install qt
brew install postgresql

postgresqlの設定

DB初期化

initdb --encoding=UTF8 --no-locale /usr/local/var/postgres

pathの追加

/usr/local/binにパスを通す

vi ~/.bash_profile
PATH=$HOME/.rvm/bin:/usr/local/bin:$PATH

手動起動と停止

pg_ctl -D /usr/local/var/postgres -l logfile start
pg_ctl -D /usr/local/var/postgres -l logfile stop

rvm経由でrubyのインストール

rvm install-1.9.2-p290

bundle installなどして開発再開したらいいやん

7
8
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
7
8