7
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Go言語のインストール

Last updated at Posted at 2015-09-08

Go言語のインストール

以下の環境にインストールしました。

cat /etc/redhat-release 
CentOS release 6.7 (Final)

ここから最新版を落としてくる

wget https://storage.googleapis.com/golang/go1.5.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf go1.5.linux-amd64.tar.gz

環境変数に追加

export GOROOT=/usr/local/go
export GOPATH=$HOME/go
export PATH=$GOROOT/bin:$GOPATH/bin

お好みで.bash_profileに追加

hello, world

hello.go
package main

import "fmt"

func main() {
    fmt.Printf("hello, world \n")
}
go install hello.go
$GOPATH/bin/hello
hello
---
hello, world

成功!

次はRevalを構築してみます。

7
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
7
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?