Here are my rough notes for getting google's go compiler set up on Snow Leopard (applies to any 64 bit macbook). These steps are mostly outlined on http://golang.org/doc/install.html, although there are a couple of extra steps I needed to make, which I'm listing here:
1. If you haven't already, install XCode so you have the gcc compiler:
http://developer.apple.com/technology/xcode.html
2. Install mercurial (if you don't already have it):
3. Configure your environment variables and run the setup - open the terminal and in your home directory edit .profile and add the following:
Run source .profile if you want to use those values without restarting (otherwise just close the terminal and reopen it)
4. check out go from the mercurial repository
5. run the setup:
6. Write out the obligatory hello world code (hello.go):
7. Compile, link and run:
Adapted from: http://golang.org/doc/install.html
Subscribe to:
Post Comments (Atom)
Blog Archive
-
►
2011
(35)
-
►
June
(6)
- MarkLogic/XCC: Copying a Module with User Content ...
- MarkLogic: clearing a forest in a database program...
- MarkLogic: Enabling debug options when using the S...
- Linux: SCP syntax and structure note
- MarkLogic/XCC: Installing Modules Programatically
- Eclipse: Installing XQDT (and DLTK) on Eclipse Ind...
-
►
June
(6)
-
►
2010
(43)
-
►
September
(7)
- MarkLogic: Creating Multiple Range Element Indexes...
- MarkLogic: Listing all Collections in a Database
- MarkLogic: Basic Database Cloning Script
- MarkLogic: Estimating the number of documents cont...
- MarkLogic: Search: Compound OR Queries
- MarkLogic: XQuery: Check for the presence of an el...
- MarkLogic: XQuery: Type Validation using xsi:type
-
►
September
(7)
0 comments:
Post a Comment