sudo apt-get install -y curl bison gcc
bash < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer)
source ~/.gvm/scripts/gvm
gvm install go1.4.3
gvm use go1.4.3
export GOROOT_BOOTSTRAP=$GOROOT
gvm install go1.7
gvm use go1.7
gvm pkgset create ldld
gvm pkgset use ldldgit clone https://github.com/LPgenerator/Ldld.git
mkdir -p ~/.gvm/pkgsets/go1.7/ldld/src/github.com/LPgenerator/
ln -sf `pwd` ~/.gvm/pkgsets/go1.7/ldld/src/github.com/LPgenerator/Ldld
cd ~/.gvm/pkgsets/go1.7/ldld/src/github.com/LPgenerator/LdldThis will download and restore all dependencies required to build Ldld:
make depsNormally you would use Ldld, in order to compile and run Go source use go toolchain:
go run main.go runYou can run Ldld in debug-mode:
go run main.go --debug rungo build
go install