Skip to content

Commit

Permalink
README.md: OSX Build Notes (#153)
Browse files Browse the repository at this point in the history
OSX Build Notes:
- cairo install instructions 
- setting environment and -tags appropriately
  • Loading branch information
nnuss committed Sep 9, 2016
1 parent c08ac7b commit 97c0dd2
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,20 @@ or if the GRAPHITEHOST/GRAPHITEPORT environment variables are found.

Request data will be stored in memory (default) or in memcache.

OSX Build Notes
---------------
Some additional steps may be needed to build carbonapi with cairo rendering on MacOSX.

Install cairo:

$ brew install Caskroom/cask/xquartz

$ brew install cairo --with-x11

Set `PKG_CONFIG_PATH` and `-tags cairo` when building:

$ PKG_CONFIG_PATH=/opt/X11/lib/pkgconfig go build -v -tags cairo

Acknowledgement
---------------
This program was originally developed for Booking.com. With approval
Expand Down

0 comments on commit 97c0dd2

Please sign in to comment.