How to Install Google Go in Ubuntu - Make Tech Easier [PDF]

Apr 15, 2010 - Since Go is only officially available in source form, that means we'll need to compile the Go compiler wi

3 downloads 21 Views 2MB Size

Recommend Stories


How to Install ZFS on Ubuntu Linux 17.04 - LinOxide [PDF]
Oct 27, 2017 - This guide teaches how to install the Z File System (ZFS) on Ubuntu 17.04 and commands to show it's usage in creating or destroying pools and viewing stats.

How to make Housing Payments Go to
You're not going to master the rest of your life in one day. Just relax. Master the day. Than just keep

Make Tech Easier Linux Commands Cheat Sheet
Never wish them pain. That's not who you are. If they caused you pain, they must have pain inside. Wish

Panduan Install Ubuntu
Silence is the language of God, all else is poor translation. Rumi

Engineered to Make Life Easier
Ask yourself: When I'm in physical or emotional pain, what are some of the best things I can do for

How to Do Everything Ubuntu Pdf
Ask yourself: How can you make your life more meaningful, starting today? Next

How to Do Everything Ubuntu Pdf
Make yourself a priority once in a while. It's not selfish. It's necessary. Anonymous

HOW TO INSTALL ArchITrAveS
Love only grows by sharing. You can only have more for yourself by giving it away to others. Brian

make life easier
Almost everything will work again if you unplug it for a few minutes, including you. Anne Lamott

How to Make Questions
Ask yourself: How can you make your life more meaningful, starting today? Next

Idea Transcript


sudo add-apt-repository ppa:gophers/go sudo apt-get update sudo apt-get install golang

#This line will tell the Go installer where to place the source code before compilation export GOROOT=$HOME/gosource #With this line, you choose the architecture of your machine. #Those with 64 bit CPUs should enter "amd64" here. export GOARCH=386 #Your operating system export GOOS=linux #And now the location where the installer will place the finished files #Don't forget to create this directory before installing export GOBIN=$HOME/gobin #Include Go binaries in command path export PATH=$PATH:$GOBIN

source ~/.bashrc

#If you normally use aptitude instead of apt-get, use that here as well sudo apt-get install bison gcc libc6-dev ed gawk make python-setuptools python-dev build-essential sudo easy_install mercurial

hg clone -r release https://go.googlecode.com/hg/ $GOROOT

cd $GOROOT/src ./all.bash

package main import "fmt" func main() { fmt.Printf("Hello, Go!\n") }



#These commands are for 32-bit builds #Replace the "8" with "6" in all examples to build for 64. #Compile... 8g test.go #Link 8l test.8 #And run.. ./8.out

Recommended by







… …





Smile Life

When life gives you a hundred reasons to cry, show life that you have a thousand reasons to smile

Get in touch

© Copyright 2015 - 2024 PDFFOX.COM - All rights reserved.