Hi @Abdul_Aziz ,
Sorry for the delay. That is interesting - usually this error comes the Cgo preamble being misconfigured (e.g. see here) but it doesn’t look like that is the problem here.
Could you try running go install github.com/dgraph-io/badger/v4/badger@latest? This should also install the Badger CLI. Alternatively, if you want to build the CLI locally, you can try running go build . from the Badger subdirectory.
To be clear, if your goal is to build Dgraph from source, you don’t have to first build Badger, since this is just a CLI for debugging (Badger is an embedded key-value store). Instructions for building Dgraph are in the Dgraph readme.