CENTOS7 source code compilation install go and lantern

Source: Internet
Author: User
Tags gtk install go git clone



###########################################################
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















Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.