Skip to content

Installation Instructions for Linux

Hades edited this page Apr 7, 2022 · 12 revisions

Installing on Ubuntu:

1)Install by using binary file

1)download the binary file from http://
2)decompress the file "smc-linux-amd64.tar.gz" and extract it to the current directory
	$ tar -zxvf smc-linux-amd64.tar.gz
3)switch to the run directory
	$ cd Spectrum
4)run the program
	$ ./smc console

1)Install by using source code

1)Install git
	$ apt-get install git
	$ apt-get install golang
2)Install golang in the directory of {GOHOME}
	$ cd {GOHOME}
	$ tar -zxvf go1.9.2.linux-amd64.tar
	$ mkdir {GOHOME}/gopath
	$ export GOPATH={GOHOME}/gopath 
	$ export GOROOT={GOHOME}/go 
	$ export PATH=$GOROOT/bin:$PATH
3)download the source on the git
	$ cd $GOPATH
	$ mkdir -p src\github.com\SmartMeshFoundation\
	$ cd src\github.com\SmartMeshFoundation\
	$ git clone https://github.com/SmartMeshFoundation/Spectrum.git
4)compile the source code
	$ cd Spectrum
	$ make smc
5)run the program
	$ ./build/bin/smc console