Install Google’s “Go” Programming Language on Fedora 12 or 11

From Google’s go FAQ:

* No major systems language has emerged in over a decade, but over that time the computing landscape has changed tremendously.
* Computers are enormously quicker but software development is not faster.
* The emergence of multicore computers has generated worry and confusion.

google-black-bg

Install mercurial source control management system (sorry git lovers), and prerequisites.

$ sudo yum install bison ed mercurial -y

Resolving Dependencies
–> Running transaction check
—> Package bison.x86_64 0:2.4.1-2.fc11 set to be updated
—> Package ed.i386 0:1.1-1.fc8 set to be updated
—> Package mercurial.x86_64 0:1.3.1-3.fc11 set to be updated

Set up by making some directories and exporting a variable or four.

$ export GOROOT=$HOME/go && mkdir $HOME/go
$ export GOBIN=$HOME/bin && mkdir $HOME/bin
$ export GOARCH=386
$ export GOOS=linux

Clone the source repository.

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

requesting all changes
adding changesets
adding manifests
adding file changes
added 3976 changesets with 16799 changes to 2931 files
updating working directory
1640 files updated, 0 files merged, 0 files removed, 0 files unresolved

Let the building begin.

$ cd $GOHOME/go/src
$ ./all.bash

The first issue I ran into was wondering what the debian package “libc6-dev” is in rpm-speak. I believe whatever is needed in there is included in glibc-headers, and that should be installed by default in Fedora 11 and 12. The next issue was “quietgcc”. The build would fail when it couldn’t find quietgcc in my ~/bin. So I added that to my list of exports and viola.

$ ls -l ~/bin

total 9928
-rwxrwxr-x 1 user user 351013 2009-11-12 16:13 6cov
-rwxrwxr-x 1 user user 220393 2009-11-12 16:13 6nm
-rwxrwxr-x 1 user user 344191 2009-11-12 16:13 6prof
-rwxrwxr-x 1 user user 178623 2009-11-12 16:12 8a
-rwxrwxr-x 1 user user 604395 2009-11-12 16:12 8c
-rwxrwxr-x 1 user user 784072 2009-11-12 16:13 8g
-rwxrwxr-x 1 user user 303878 2009-11-12 16:12 8l
-rwxrwxr-x 1 user user 1511477 2009-11-12 16:13 cgo
-rwxrwxr-x 1 user user 734092 2009-11-12 16:13 ebnflint
-rwxrwxr-x 1 user user 142005 2009-11-12 16:13 godefs
-rwxrwxr-x 1 user user 1889821 2009-11-12 16:13 godoc
-rwxrwxr-x 1 user user 1100362 2009-11-12 16:13 gofmt
-rwxrwxr-x 1 user user 196843 2009-11-12 16:13 gopack
-rwxrwxr-x 1 user user 2958 2009-11-12 16:13 gotest
-rwxrwxr-x 1 user user 821280 2009-11-12 16:13 goyacc
-rwxrwxr-x 1 user user 880181 2009-11-12 16:13 hgpatch
-rwxrwxr-x 1 user user 1484 2009-11-12 16:12 quietgcc

Posted by admica   @   12 November 2009

Related Posts

0 Comments

No comments yet. Be the first to leave a comment !
Leave a Comment

Name

Email

Website

Previous Post
« How to find which package a missing file comes from with YUM or PackageKit
Next Post
Extend your router’s wifi range with a directional antenna »
Powered by Wordpress   |   Lunated designed by ZenVerse