From 6439fdb65e42ebf976bd6a8354039c06751856d4 Mon Sep 17 00:00:00 2001 From: Adam Grare Date: Wed, 28 Jan 2026 13:40:11 -0500 Subject: [PATCH] Add instructions on installing surro-gate Add compiler flags needed for installing the surro-gate gem. --- developer_setup.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/developer_setup.md b/developer_setup.md index f2da13a..eb41d62 100644 --- a/developer_setup.md +++ b/developer_setup.md @@ -222,6 +222,18 @@ bin/setup - macOS requires platform specific Gems. Run `bundle config specific_platform true` before running `bin/setup`. +- The `surro-gate` gem contains C code which generates errors on some compilers. + + You can add build flags to your bundler config: + ``` + bundle config set build.surro-gate --with-cflags=\"-Wno-error=incompatible-pointer-types\" + ``` + + Or use `gem install`: + ``` + gem install surro-gate -- --with-cflags="-Wno-error=incompatible-pointer-types" + ``` + - If you've run PostgreSQL in a container, be sure to export the `DATABASE_URL` variable to connect to the container over TCP instead of a UNIX file socket. ```bash