Building Ratel

In the older Go versions with $GOPATH, your $GOPATH would need to be set before running the command go get -u. The latest versions of Go don’t require $GOPATH.

In the latest version of Go (go1.16.6 as of today) and Node you can install Ratel like so:

  1. Clone the Ratel repo wherever you wish
  2. At the step where go-bindata is installed, it needs to be in your $PATH. By default Go installs binaries in $HOME/go/bin
# Install Go and Node first
# Don't set GOPATH

git clone https://github.com/dgraph-io/ratel
cd ratel
export PATH="$HOME/go/bin:$PATH" # or have this in your shell profile
./scripts/build.prod.sh

And then your Ratel binary should be in ./build/ratel ready to execute.