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