Installation of Golang 1.6 and development environment

Source: Internet
Author: User
This is a creation in Article, where the information may have evolved or changed.

Installation of Golang 1.6 and development environment
=====================================
> Download software
* go1.4.2.linux-amd64.tar.gz
* go1.6.2.linux-amd64.tar.gz
* LITEIDEX29.LINUX-64-QT4.TAR.BZ2
* LIBPNG-1.2.56.TAR.XZ:HTTP://NCHC.DL.SOURCEFORGE.NET/PROJECT/LIBPNG/LIBPNG12/1.2.56/LIBPNG-1.2.56.TAR.XZ
Note: golang1.5+ build, execute Src/all.bash need $home/go1.4/bin/go

> Installation Steps
* Installation go1.4
-Extract duplicate name: tar-zvxf go1.4.2.linux-amd64.tar.gz-c ~/&& mv Go go1.4
* Installation go1.6
Extract
TAR-ZVXF go1.6.2.linux-amd64.tar.gz-c/usr/local/
Compiler
/usr/local/go/src/all.bash #注意: The Step to trust $home/go1.4/bin/go
Link
Update-alternatives--install/usr/bin/go Go/usr/local/go/bin/go 100
Update-alternatives--install/usr/bin/godoc Godoc/usr/local/go/bin/godoc
Update-alternatives--install/usr/bin/gofmt gofmt/usr/local/go/bin/gofmt

Detection
Go version
godoc-http=:8080 #注意: Linux requires root permission on the port before 1024.
Visit http://localhost:8080 Show Golang documents
* Installation Liteide:
Extract
TAR-JXVF liteidex29.linux-64-qt4.tar.bz2-c/usr/local #注意bz2要用j
! Note: liteidex29 relies on LIBPNG12, if the system is libpng15+, you need to compile it yourself! Method:
xz-d libpng-1.2.56.tar.xz && tar-xvf libpng-1.2.56.tar && cd libpng12
Apt-get Install Zlib1g-dev
./configure #默认安装在/usr/local/lib
./make
sudo make install
sudo ldconfig #加载配置更新, otherwise the hint cannot be found libpng12.0.so

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.