From c22780c01ce14062c43a9e5a7f29ac4e61cf0732 Mon Sep 17 00:00:00 2001 From: Luong Vo <vo.tran.thanh.luong@gmail.com> Date: Wed, 3 Jun 2020 14:21:47 +0700 Subject: [PATCH] Add instruction on installing dependencies for Mac Signed-off-by: Luong Vo <vo.tran.thanh.luong@gmail.com> --- Gemfile.lock | 1 + README.md | 26 +++++++++++++++++++------- 2 files changed, 20 insertions(+), 7 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index a89c5080e..19620b4c4 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -279,6 +279,7 @@ GEM PLATFORMS ruby x64-mingw32 + x86_64-darwin-19 DEPENDENCIES awesome_print (~> 1.8) diff --git a/README.md b/README.md index 072063c2e..b7b5706ba 100644 --- a/README.md +++ b/README.md @@ -10,13 +10,25 @@ it before following these instructions. ### Install prerequisites - sudo apt update - sudo apt install gcc - sudo apt install make - sudo apt install libmysqlclient-dev - sudo apt install autoconf bison build-essential libssl-dev libyaml-dev libreadline-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm-dev - sudo apt install mysql-server - +For Linux: + +``` +sudo apt update +sudo apt install gcc +sudo apt install make +sudo apt install libmysqlclient-dev +sudo apt install autoconf bison build-essential libssl-dev libyaml-dev libreadline-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm-dev +sudo apt install mysql-server +``` + +For Mac: + +``` +xcode-select --install +brew install mysql bison openssl mysql-client +bundle config --global build.mysql2 --with-opt-dir="$(brew --prefix openssl)" +``` + ### Install JS runtime If you already have Node.JS installed, you can skip this step. If not, [download and install it](https://nodejs.org/en/download/). -- GitLab