Skip to content

Commit 97ac09c

Browse files
committed
Add instructions on installing surro-gate
Add compiler flags needed for installing the surro-gate gem.
1 parent 6fee140 commit 97ac09c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

developer_setup.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,16 @@ bin/setup
222222

223223
- macOS requires platform specific Gems. Run `bundle config specific_platform true` before running `bin/setup`.
224224

225+
- The `surro-gate` gem contains C code which generates errors on some compilers.
226+
```
227+
bundle config set build.surro-gate --with-cflags=\"-Wno-error=incompatible-pointer-types\"
228+
```
229+
230+
or using `gem install`
231+
```
232+
gem install surro-gate -- --with-cflags="-Wno-error=incompatible-pointer-types"
233+
```
234+
225235
- 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.
226236
227237
```bash

0 commit comments

Comments
 (0)