Skip to content

Instantly share code, notes, and snippets.

@ahastudio
Last active June 26, 2019 00:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ahastudio/0a1e70a216f5bd5f9925 to your computer and use it in GitHub Desktop.
Save ahastudio/0a1e70a216f5bd5f9925 to your computer and use it in GitHub Desktop.

Homebrew 설치

http://brew.sh/

$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
$ brew update && brew upgrade

혹시라도 MacPorts를 권하는 낡은 글을 발견한다면, “도망쳐”!

Homebrew Cask 설정

http://caskroom.io/

$ brew tap caskroom/cask

iTerm 2 설치

https://www.iterm2.com/

$ brew cask install iterm2

Git 설치

https://git-scm.com/

$ brew install git

Ruby 설치

저는 RVM을 쓰지만... Homebrew로 설치할 수 없으니...

https://github.com/rbenv/rbenv

$ brew install rbenv ruby-build
$ rbenv install 2.3.0
$ rbenv versions
$ rbenv global 2.3.0
$ ruby -v

MariaDB 설치

https://mariadb.org/

$ brew install mariadb
$ mysql.server start
$ mysql -uroot -p mysql

> quit;
@ahastudio
Copy link
Author

2019년 6월 26일 기준으로 바뀐 점:

  1. Homebrew Cask는 Homebrew에 통합됐습니다. 따로 세팅하지 않고 바로 iTerm 2 등을 설치하실 수 있습니다.

  2. 저는 이제 RVM을 쓰지 않습니다. 그냥 rbenv 쓰시면 됩니다.

  3. MariaDB는 Homebrew로 설치해서 쓰지 않고 Docker를 활용하는 게 좋습니다.
    mysql2 RubyGem이 MySQL 라이브러리에 의존성을 갖고 있기 때문에 brew install mysql으로 설치하는 건 유효하지만, MariaDB 자체는 Docker로 실행합니다.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment