<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Kavoir &#187; Go Tutorials &amp; Tips</title>
	<atom:link href="http://www.kavoir.com/category/programming/go-tutorials-tips/feed" rel="self" type="application/rss+xml" />
	<link>http://www.kavoir.com</link>
	<description>Just another dumbass webmaster, goofing around...</description>
	<lastBuildDate>Thu, 09 Feb 2012 01:59:17 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>How to install the Go programming language on your server or VPS?</title>
		<link>http://www.kavoir.com/2009/12/how-to-install-the-go-programming-language-on-your-vps.html</link>
		<comments>http://www.kavoir.com/2009/12/how-to-install-the-go-programming-language-on-your-vps.html#comments</comments>
		<pubDate>Mon, 28 Dec 2009 02:31:43 +0000</pubDate>
		<dc:creator>Yang Yang</dc:creator>
				<category><![CDATA[Go Tutorials & Tips]]></category>

		<guid isPermaLink="false">http://www.kavoir.com/?p=1576</guid>
		<description><![CDATA[Assuming you&#8217;ve logged in as root in Debian 5.0, to install the Go programming language by Google, Add these environmental variables for Go in .bash_profile: export GOROOT=$HOME/go export GOARCH=386 # for 32 bit architectures. Use GOARCH=amd64 for 64 bit architectures export GOOS=linux export GOBIN=$HOME/bin PATH=$PATH:$GOBIN Install the Mercurial &#8216;hg&#8217; command: aptitude install mercurial Fetch the [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>Assuming you&#8217;ve logged in as root in Debian 5.0, to install <a href="http://golang.org">the Go programming language</a> by Google,<span id="more-1576"></span></p>
<ol>
<li>Add these environmental variables for Go in .bash_profile:
<pre><code>export GOROOT=$HOME/go
export GOARCH=386  # for 32 bit architectures. Use GOARCH=amd64 for 64 bit architectures
export GOOS=linux
export GOBIN=$HOME/bin
PATH=$PATH:$GOBIN
</code></pre>
</li>
<li>Install the Mercurial &#8216;hg&#8217; command:
<pre><code>aptitude install mercurial</code></pre>
</li>
<li>Fetch the sources of Go and put them at $GOROOT:
<pre><code>hg clone -r release https://go.googlecode.com/hg/ $GOROOT</code></pre>
</li>
<li>Fetch compilers and related utilities:
<pre><code>aptitude install bison gcc libc6-dev ed make</code></pre>
</li>
<li>Create the directory $HOME/bin by:
<pre><code>mkdir $HOME/bin</code></pre>
<p>and compile Go:</p>
<pre><code>cd $GOROOT/src
make all</code></pre>
</li>
</ol>
<p>Done. You can now go about writing your first <a href="http://www.kavoir.com/backyard/showthread.php?3-Wrote-a-rather-basic-tutorial-on-how-to-install-Go-on-your-server">hello world program</a>. If you haven&#8217;t got a server yet, I recommend <a href="http://www.kavoir.com/go/linode">Linode VPS</a> and <a href="http://www.kavoir.com/2009/11/rackspace-cloud-promotion-code.html">Rackspace Cloud</a>.<br />
<h3>Related Posts:</h3>
<ul class="similar-posts">
<li><a href="http://www.kavoir.com/2009/09/linux-how-to-open-and-extract-an-rar-zipped-file-or-unrar-the-archive.html" rel="bookmark" title="September 19, 2009">Linux: How to open and extract an RAR zipped file and unrar the archive?</a></li>
<li><a href="http://www.kavoir.com/2009/04/php-get-directory-or-filename-from-a-full-path-or-url.html" rel="bookmark" title="April 22, 2009">PHP: Getting Directory Path and Filename from A Full Path or URL</a></li>
<li><a href="http://www.kavoir.com/2009/09/linux-change-directory-or-cd-to-the-previous-directory-last-path.html" rel="bookmark" title="September 5, 2009">Linux: Change Directory or CD to the Previous Directory / Last Path</a></li>
<li><a href="http://www.kavoir.com/2010/02/php-why-you-should-use-dirname__file__-include-php-instead-of-just-include-php.html" rel="bookmark" title="February 9, 2010">PHP: Why you should use dirname(__FILE__).&lsquo;/include.php&rsquo; instead of just &lsquo;include.php&rsquo;</a></li>
<li><a href="http://www.kavoir.com/2009/04/php-change-current-working-directory.html" rel="bookmark" title="April 22, 2009">PHP: Change Current Working Directory</a></li>
</ul>
<p><!-- Similar Posts took 2.301 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kavoir.com/2009/12/how-to-install-the-go-programming-language-on-your-vps.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

