carbonapi uses dep as a vendoring tool. Makefile will automatically go get
it for you if it's not installed.
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)
- golang 1.11 or newer.
- For PNG/SVG support only: cairo 1.12.0 or newer.
- dep (https://github.com/golang/dep) for dependancy management
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
Then follow build notes for Linux
To get version with cairo support (required for PNG and SVG rendering) just run:
make
To get a version without cairo support, run:
make nocairo