aboutsummaryrefslogtreecommitdiffstats
path: root/Installation-Instructions-for-Ubuntu.md
blob: 9c1b88a272b6eff6c08933fa6d58be4f8f80fba0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<!--
## Installing from PPA

```shell
sudo apt-get install software-properties-common
sudo add-apt-repository -y ppa:ethereum/ethereum
sudo apt-get update
sudo apt-get install ethereum
```

If you want to stay on the bleeding edge, install the `ethereum-unstable` package instead.

After installing, run `gdex account new` to create an account on your node.

You should now be able to run `gdex` and connect to the network.

Make sure to check the different options and commands with `gdex --help`

You can alternatively install only the `gdex` CLI with `apt-get install gdex` if you don't want to install the other utilities (`bootnode`, `evm`, `disasm`, `rlpdump`, `ethtest`).
-->
## Building from source

### Building Gdex (command line client)

Clone the repository to a directory of your choosing:

```shell
git clone https://github.com/dexon-foundation/dexon
```
Install latest distribution of Go (v1.10) if you don't have it already:

[See instructions](https://github.com/dexon-foundation/wiki/wiki/Installing-Go#ubuntu)

Building `gdex` requires Go and C compilers to be installed:

```shell
sudo apt-get install -y build-essential golang
```

Install libraries required by `gdex`
```shell
sudo apt-get install -y libssl-dev libgmp-dev
```

Finally, build the `gdex` program using the following command.
```shell
cd dexon
make gdex
```

You can now run `build/bin/gdex` to start your node.