Correct GOPATH and GOROOT in Ubuntu 14.04

If you get something like this:

package cannot download, $GOPATH not set. For more details see: go help gopath

or this:

go tool: no such tool "6g"

And your favorit GNU/Linux distribution named Ubuntu.

Let see:

First! Install golang-gcc and gotool etc. from Ubuntu repository:

sudo apt-get install golang gccgo-go git mercurial

Next. Set correct GOROOT, GOPATH and PATH for you user.

Just add down code in to ~/.bashrc:

export GOROOT=/usr/lib/go
export GOPATH=$HOME/go
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin

Now, you can run your code:

$ go run foo.go
Hello, 世界

or download some library into your GOPATH

 go get -u

Теги: , , ,

Дата: 27 июля 2014

Автор: andreykyz

Комментарии: 975

Комментарии: 975

  1. hydroxychloroquine sulfate 200mg hydroxychloroquine sulfate uses

  2. what type of pain is arthritis homeopathic asthma treatment
    [url=]ivermectin stromectol[/url]

  3. compare levitra and viagra and cialis
    lasix online purchase
    buy vermox mebendazole 100 mg generic DIT pruMn

  4. cheapest dapoxetine
    furosemide 20 mg tab cost
    viagra kamagra tablets DIT pruMn

  5. arthritis in the joints gastroenterology symptoms
    [url=]stromectol over the counter[/url]

  6. www viagra canada com
    over the counter lasix medicine
    buy viagra canada mastercard DIT pruMn

  7. viagra prescription online usa
    otc lasix
    ampicillin buy online DIT pruMn

  8. how many viagra pills per day
    lasix 2 mg
    buy real viagra online uk DIT pruMn

  9. chronic gastrointestinal problems treatment of drug addiction
    [url=]ivermectin tablets for humans[/url]

  10. generic for augmentin
    augmentin 650 mg tablet
    amoxicillin 850 mg price DIT pruMn

  11. amoxil 500 mg brand
    1750 mg amoxicillin
    amoxicillin 500 mg discount DIT pruMn

  12. augmentin 825 125 mg
    amoxicillin capsule 500mg tablets
    medicine amoxicillin 500mg DIT pruMn

  13. eos worldwide vto eos worldwide vto iCM

  14. augmentin cream cost
    amoxicillin discount coupon
    amoxil cost uk DIT pruMn

Оставить комментарий



Ваш e-mail не будет опубликован.
Обязательные поля помечены *

Разрешенные HTML теги:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>