github.com/go-graphite/carbonapi@v0.17.0/BUILD.md (about)

     1  General build notes
     2  ===================
     3  
     4  
     5  Before you start
     6  ----------------
     7  
     8  carbonapi uses dep as a vendoring tool. Makefile will automatically `go get` it for you if it's not installed.
     9  
    10  PNG/SVG support is optional (but enabled by default if you are using Makefile) and requires cairo library and it's development packages (libcairo2-dev on Debian-based, cairo-devel on RHEL-compatible)
    11  
    12  
    13  Requirements
    14  ------------
    15  
    16   - golang 1.11 or newer.
    17   - For PNG/SVG support only: cairo 1.12.0 or newer.
    18   - dep (https://github.com/golang/dep) for dependancy management
    19  
    20  
    21  OSX Build Notes
    22  ---------------
    23  Some additional steps may be needed to build carbonapi with cairo rendering on MacOSX.
    24  
    25  Install cairo:
    26  
    27  ```
    28  $ brew install Caskroom/cask/xquartz
    29  
    30  $ brew install cairo --with-x11
    31  
    32  ```
    33  
    34  Then follow build notes for Linux
    35  
    36  
    37  Build Instructions
    38  ------------------
    39  
    40  To get version with cairo support (required for PNG and SVG rendering) just run:
    41  
    42  ```
    43  make
    44  ```
    45  
    46  
    47  To get a version without cairo support, run:
    48  
    49  ```
    50  make nocairo
    51  ```
    52