code.vegaprotocol.io/vega@v0.79.0/BUILDING.md (about) 1 # Building 2 3 ## Setting up your environment 4 ``` code 5 # This is where the executables will be built 6 export GOBIN=/home/someuser/bin 7 # This is the root folder of your golang installation 8 export GOROOT=/usr/local/go 9 # This tells the tool chain not to use C only libraries 10 export CGO_ENABLED=false 11 ``` 12 13 ## Pulling down the source code 14 ``` script 15 git clone https://github.com/vegaprotocol/vega 16 cd vega 17 ``` 18 19 If you need a specific version you can get that by running 20 21 ``` script 22 git checkout vX.XX 23 ``` 24 25 ## Install `golang` 26 The version of `golang` required can be found at the top of the `go.mod` file in the root of the vega repository. To install the software follow the link below and choose the correct version and platform you require. Then follow the instructions given. 27 28 `https://go.dev/dl/` 29 30 31 ## Building the executables 32 33 ``` script 34 go install ./... 35 ``` 36 37 This will download any required dependencies and then build the executables and move them to the folder you selected with the GOBIN variable above. 38 39 Check in the `$GOBIN` folder that you have at least the following executables 40 41 * `vega` 42 * `vegawallet` 43 * `data-node` 44 * `visor` 45 46 47 48 49