README 1.5 KB

1234567891011121314151617181920212223242526272829303132333435
  1. Notes
  2. =====
  3. You must have ``CONFIG_IP_MULTICAST`` enabled in your kernel
  4. for several of the go tests to pass and the buidl to
  5. succeed.
  6. You probably want to ensure you have
  7. the following setup either temporarily
  8. in your ``$HOME/.bashrc`` or ``$HOME/.profile``
  9. or ``/etc/profile`` or similar.
  10. .. code-block:: sh
  11. export GOROOT=/usr/lib/go
  12. Go Language Installation - Step by Step
  13. ------------------------------
  14. You will need to this step just one, but pay attention to each step before you go to next one:
  15. 0 - Go to your home directory, e.g.: cd /home/user
  16. 1 - Get the binary of 1.4 stable version of Go, e.g. 1.4.2: https://storage.googleapis.com/golang/go1.4.2.linux-amd64.tar.gz
  17. 2 - Extrat the file in your home directory, e.g.: tar -xzf go1.4.2.linux-amd64.tar.gz and name it go1.4
  18. 3 - Set the GOROOT and PATH, e.g.: export GOROOT=/home/user/go; export PATH=$PATH:/home/user/go/bin
  19. 4 - Create a directory to clone the last version of Go, e.g.: mkdir ~/gonew; cd ~/gonew
  20. 5 - Get the source code of Go from Github = git clone git://github.com/golang/go
  21. 6 - Go to the source directory, e.g.: cd go/src
  22. 7 - Set CGO_ENABLED and GOROOT_BOOTSTRAP, e.g.: CGO_ENABLED=0; GOROOT_BOOTSTRAP=/home/user/go1.4
  23. 8 - Compile the new version of Go: GOROOT_FINAL=/usr/local ./make.bash
  24. 9 - Sudo privileges and copy the GO to /usr/local, e.g.: cp -rf /home/user/go /usr/local
  25. 10 - Reset PATH variable to the original value
  26. 11 - Set the new GOROOT and PATH, e.g.: export GOROOT=/usr/local/go; export PATH=$PATH:/usr/local/go/bin
  27. 12 - Put GOROOT and PATH in your startup script