首页 > 代码库 > golang in ubuntu
golang in ubuntu
1. environment for go
we don‘t need to set GOROOT, see http://dave.cheney.net/2013/06/14/you-dont-need-to-set-goroot-really
Just add the following lines to ~/.bashrc and this will persist.
export GOPATH=$HOME/go##export PATH=$PATH:$GOPATH/bin
2. MongoDB
after install MongoDB from official package.
stan@stan-VirtualBox:~$ mongo
MongoDB shell version: 2.4.9
connecting to: test
Server has startup warnings:
Sat Oct 11 22:55:55.418 [initandlisten]
Sat Oct 11 22:55:55.418 [initandlisten] ** NOTE: This is a 32 bit MongoDB binary.
Sat Oct 11 22:55:55.418 [initandlisten] ** 32 bit builds are limited to less than 2GB of data (or less with --journal).
Sat Oct 11 22:55:55.418 [initandlisten] ** See http://dochub.mongodb.org/core/32bit
Sat Oct 11 22:55:55.418 [initandlisten]
>
3. git
stan@stan-VirtualBox:~$ git
usage: git [--version] [--help] [-C <path>] [-c name=value]
[--exec-path[=<path>]] [--html-path] [--man-path] [--info-path]
[-p|--paginate|--no-pager] [--no-replace-objects] [--bare]
[--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>]
<command> [<args>]
4. config sublime
http://www.cnblogs.com/yourihua/archive/2012/06/04/2529333.html
5. download project from GitHub
golang in ubuntu