The install script needs the sudo. But you can just download the Dgraph’s binary and move it to /usr/local/bin/ - Note that Dgraph will not support Darwin in future releases. We recommend you use Docker or some Linux distro.
MichelDiz, as noted above, I need to run the “dgraph” tool to connect to my cloud deployment (I’m doing a live load). Therefore I cannot use Docker. Can you suggest a path forward that is futureproof? Perhaps simply run a Linux VM where the linux binary will run?
For the benefit of those searching on building for Mac/OS-X/Big Sur… I was able to build the dgraph image on Big Sur using M1/Apple Silicon.
git clone https://github.com/dgraph-io/dgraph.git
cd dgraph/dgraph
make dgraph
I always recommend using the Docker image, but for things like using the bulkloader or just being able to view all the command flags, it’s nice to have a native build.