If you don't have Homebrew, install it first.
Clone the repository to a directory of your choosing:
git clone https://github.com/dexon-foundation/dexon
Building gdex
requires the Go compiler:
brew install go
Install libraries required by gdex
brew install gmp openssl pkg-config
export PKG_CONFIG_PATH="/usr/local/opt/openssl/lib/pkgconfig"
Finally, build the gdex
program using the following command.
cd dexon
make gdex
If you see some errors related to header files of Mac OS system library, install XCode Command Line Tools, and try again.
xcode-select --install
/Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg
You can now run build/bin/gdex
to start your node.
Installing docker if you want to run image:
brew cask install docker
Remember to execute docker
(there should be a whale in the top status bar which indicates that Docker is running).