###########################################################
cd/home/wy/mysoftware/go-go1.4
./all.bash
Vi/etc/profile
gopath=/home/wy/mysoftware/go-go1.4
goroot=/home/wy/mysoftware/go-go1.4
Path= $PATH: $GOROOT/bin
goroot_bootstrap=/home/wy/mysoftware/go-go1.4
Source/etc/profile
Go version
###########################################################
Cd/home/wy/mysoftware/go-lantern/src
./all.bash
Error
Error:cannot Find/home/wy/go1.4/bin/go.
Set $GOROOT _bootstrap to a working down >= go 1.4.
Solution:
Cp-r/home/wy/mysoftware/go-go1.4/home/wy/go1.4
Vi/etc/profile
Gopath=/home/wy/mysoftware/go-lantern
Goroot=/home/wy/mysoftware/go-lantern
Path= $PATH: $GOROOT/bin
Goroot_bootstrap=/home/wy/mysoftware/go-lantern
Source/etc/profile
###########################################################
Cd/home/wy/mysoftware
git clone https://github.com/getlantern/lantern.git
CD Lantern
Make Lantern
An error occurred:
Missing the "node" command.
Make: * * * [src/github.com/getlantern/flashlight/ui/resources.go] Error 1
Solution:
Reference Nodejs official website https://nodejs.org/en/download/package-manager/
Curl--silent--location https://rpm.nodesource.com/setup_9.x | sudo bash-
Yum-y Install Nodejs
An error occurred:
Missing "Gulp" command. Try "NPM install-g gulp-cli"
Make: * * * [src/github.com/getlantern/flashlight/ui/resources.go] Error 1
Solution:
NPM install-g GULP-CLI
An error occurred:
Building Development Lantern
* * version is not set, using default version. This is OK while in development.
Build Tags:
Extra Ldflags:
# pkg-config--cflags gtk+-3.0 appindicator3-0.1
Package gtk+-3.0 was wasn't found in the Pkg-config search path.
Perhaps you should add the directory containing ' gtk+-3.0.pc '
To the PKG_CONFIG_PATH environment variable
No package ' gtk+-3.0 ' found
Package appindicator3-0.1 was wasn't found in the Pkg-config search path.
Perhaps you should add the directory containing ' appindicator3-0.1.pc '
To the PKG_CONFIG_PATH environment variable
No package ' appindicator3-0.1 ' found
Pkg-config:exit Status 1
Make: * * * [lantern] Error 2
Solution:
Yum Install libappindicator-gtk3-devel.x86_64
Make Lantern
./lantern
GitHub download go1.4 version, and Go Lantern Branch, otherwise will report a lot of mistakes
Lantern download with command git clone https://github.com/getlantern/lantern.git