Mac OS Big Sur + Rails env


First steps

This is not the usual post in my blog, today I’ll add some notes about setting up development env based on new MacOS Big Sur.

This post probably will be updated later, based on the new experience and problems.

Installing PG gem

Installing PG gem with Postgres.app:

gem install pg -v  '1.1.4' -- --with-pg-config=/Applications/Postgres.app/Contents/Versions/latest/bin/pg_config

Installing libv8 gem

Let’s install bundler first:

gem install bundler:2.1.4

Installing v8 via homebrew and setting build params for gems:

$ brew install v8@3.15
$ bundle config build.libv8 --with-system-v8
$ bundle config build.therubyracer --with-v8-dir=$(brew --prefix v8@3.15)
$ bundle install

Installing Puma gem

Let’s set puma build config first:

bundle config build.puma --with-cflags="-Wno-error=implicit-function-declaration"
gem install puma

Installing Thin gem

gem install thin -v '1.7.2' -- --with-cflags="-Wno-error=implicit-function-declaration"

Stay tuned!