My Setup

My current setup here, it’ll be updated when I set up scala.

Environment

  • Mac OS X 10.9.4
  • Java 1.8.0_05
  • PostgreSQL 9.4.1

Setup

How to install homebrew

ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"

How to install git

brew install git

How to install coreutils

brew install coreutils --default-names

Add this lines to .profile.

export PATH="/usr/local/opt/coreutils/libexec/gnubin:$PATH"
export MANPATH="/usr/local/opt/coreutils/libexec/gnuman:$MANPATH"

If command is conflict, then to unlink coreutils with homebrew.

brew unlink coreutils
brew link coreutils

How to install svm (Scala version Manager)

Download svm written by @yuroyoro from github, and copy to /usr/local/bin .

Change the permission to 755.

chmod 755 /usr/local/bin/svm

Add this lines to .profile.

export SCALA_HOME=~/.svm/current/rt
export PATH=$SCALA_HOME/bin:$PATH

How to install scala

svm install 2.11.6

How to install sbt
It’s a build tool for Scala, Java, and more.

brew install sbt

How to install play (Typesafe Activator)
Play 2.3 replaces the play command with Typesafe Activator which is a browser-based or command-line tool.
It helps developers get started with the Typesafe Reactive Platform.

brew install typesafe-activator

How to install PostgreSQL

brew install postgresql
initdb /usr/local/var/postgres/

Setup to start automatically at system boot.

cp /usr/local/Cellar/postgresql/9.4.1/homebrew.mxcl.postgresql.plist ~/Library/LaunchAgents/
launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist 

Add this line to .profile.

export PGDATA=/usr/local/var/postgres