Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ Binary Packages Golang     - Installation configuration CUDA under Ubuntu 14.04 (Linux)

- Linux resource restriction level summary (Linux)

- Shell generated using automated configuration script Orabbix (Database)

- Run Windows in FreeBSD bhyve (Linux)

- Using shell users or virtual users to login to pureftpd (Linux)

- To setup the Swift language learning environment under linux (Linux)

- How to install Go1.5 source development environment on Mac (Server)

- How do I delete a NEEDS RECOVERY rollback state of undo tablespace (Database)

- The Linux firewall is configured to use proxy (Linux)

- MongoDB upgrade to 2.6 (Database)

- RedHat command line and graphical interface switching (Linux)

- What factors affect the performance of Java calls (Programming)

- How to configure MongoDB replica set (Database)

- Install the latest development version of Wine on RedHat and Debian-based systems (Linux)

- Linux commands to access the cheat sheet (Linux)

- Subquery Oracle study notes (Database)

- Help you make Git Bisect (Linux)

- Docker build their own private warehouses (Linux)

- Effect MongoDB plan cache (Database)

- Zombie process under Linux (Linux)

 
         
  Binary Packages Golang
     
  Add Date : 2017-08-31      
         
         
         
  We said before arm Golang compile the source code installed on the platform, the platform complemented by Golang other official binary packages to install.

1. Download the binary package golang

The first is to download golang binary packages, the official Download: https: //golang.org/dl/

Select the corresponding platform binary packages, golang official is currently only available for the following platforms binary package:

1.1 on Mac OS X 10.6+ or amd64 processor platform 386 binary packages

1.2 Based on 386 or amd64 processors FreeBSD 8+ platform binary packages

1.3 Based on 386 or amd64 processor Linux 2.6.23+ platform binary package, we need to note that does not support CentOS / RedHat 5 Platform

1.4 Based on 386 or amd64 processors Window XP + platform binary packages

If your platform is not listed above, you can not use the binary packages it official, you need to compile the source code directly to the installation.

2, clean up the old version golang

If you have previously installed an older version of golang, before installing the new version you will need to clean up the older version of golang, in two steps:

2.1 remove the old version golang directory

Typically, Linux, Mac OS X or FreeBSD platforms go in the directory / usr / local / go, Window platform directory may go in C: \ go. There may be other paths your custom, please delete it.

2.2 Delete version golang environment variable

Just from the PATH environment variable to remove the old version go bin directory path.

FreeBSD or Linux usually modify your / etc / profile or $ HOME / .profile, decided to show the configuration according to your PATH environment variable location.

On Mac OS X platform, if the old version of the installation package using the package installed, you need to delete /etc/paths.d/go file.

Window on the platform, the advanced properties configuration of system properties PATH variable.

3, tar Linux, Mac OS X or FreeBSD platform installation on compressed package

3.1 extracting tar archive

After downloading the corresponding tar archive, execute the following command to unpack the archive to / usr / local directory:

sudo tar -C / usr / local -xzf goxxx.tar.gz

Goxxx.tar.gz where you go to download the compressed package, unpacked go to the directory / usr / local / go.

3.2 configuration environment variable

The / usr / local / go / bin path to the PATH environment variable configuration, you can add in / etc / profile or $ HOME / .profile file:

export PATH = $ PATH: / usr / local / go / bin

After configuration, perform source / etc / profile or source according to your configuration file $ HOME / .profile make the environment variables to take effect.

3.3 Custom installation path

Do not choose / usr / local directory, choose other paths are possible, as long as the compressed package extract to the directory you want you can, but you need to add more paths specified a custom GOROOT environment variable. Therefore, the configuration environment variable content:

export GOROOT = Custom Path go
export PATH = $ PATH: $ GOROOT / bin

The same source execute command allows to configure the environment variables to take effect.

4, Mac OS X platform package installation package

To install the packages using the package under Mac OS X platform, Follow the prompts to install. It will go to install / usr / local / go, and automatically / usr / local / go / bin to your PATH environment variable configuration. Open a new terminal to go to check the environment variable, open a terminal undetectable. So to test the go, you need to open a new terminal.

5, install Windows platform

5.1 Windows platform msi installation package

Open the msi installation package, follow the prompts to install go. The default installation will go into C: \ go directory and C: \ go \ bin to your PATH environment variable. Again, you need to open a new terminal to see the configuration of environment variables to take effect.

5.2 Windows platform installation zip archive

And compressed tar Linux and other platforms similar package installation, you can extract the zip archive to any path, the official suggested extract to C: \ go directory. Also you need to manually add the directory path to go specified GOROOT own environment variables, bin path and go directory to your PATH environment variable.

6, the test installation

Establish hello.go file, enter the following code:

package main

import "fmt"

func main () {
    fmt.Printf ( "hello, world \ n")
}

Once saved, execute hello.go file on the terminal:

$ Go run hello.go

If you see hello world successful installation.
     
         
         
         
  More:      
 
- Java string concatenation techniques (StringBuilder tips) (Programming)
- How to monitor Nginx (Database)
- Getting Started with Linux system to learn: how to install the kernel headers on Linux (Linux)
- CentOS NAT iptables (Linux)
- Linux kernel boot to retain large memory method summary (Linux)
- CentOS build JDK environment (Linux)
- JIRA 3.6.2 Upgrade from older version to the new version 6.0.8 (Linux)
- GEC2440 easiest a kernel compile Linux2.6.30.4 (Programming)
- Hadoop - Task Scheduling System Comparison (Server)
- ORA-14400: inserted partition key does not map to any partition (Database)
- sed and awk in shell usage and some examples (Linux)
- Java concurrent programming combat (using synchronized synchronization method) (Programming)
- MySQL database under Linux to achieve automatic backup scheduled backup day (Database)
- Cobbler Add custom YUM source (Linux)
- Setting Hibernate connection MySQL database connection pool coding (Database)
- Oracle common internal event tracking number (Database)
- Java Concurrency - processes and threads (Programming)
- Django Web dynamic three linkage (Programming)
- How to turn Java String into Date (Programming)
- The principle Httpclient4.4 (execution request) (Programming)
     
           
     
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.