define('DISALLOW_FILE_EDIT', true); define('DISALLOW_FILE_MODS', true); /dev/head — Correct GOPATH and GOROOT in Ubuntu 14.04

Correct GOPATH and GOROOT in Ubuntu 14.04

If you get something like this:

package github.com/gin-gonic/gin: 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 golang-go.tools 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 github.com/gopherjs/gopherjs

Теги: , , ,

Дата: 27 июля 2014

Автор: andreykyz

Комментарии: 1 687

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

  1. xNudes is an AI tool that changes the clothes in a photo to show a nude or altered version of the body. You just need to upload an image, and the tool will create a realistic, edited version within seconds. The tool works by letting you pick details like age, body type, and skin tone to match your preferences. It gives you control over the image look, making the experience more personal https://xnudes.app/

  2. автоматические карнизы для штор [url=https://prokarniz38.ru/]автоматические карнизы для штор[/url] .

  3. ломоносов скул [url=https://shkola-onlajn-23.ru/]ломоносов скул[/url] .

  4. дистанционное обучение 11 класс [url=https://shkola-onlajn-22.ru/]shkola-onlajn-22.ru[/url] .

  5. онлайн школа ломоносов [url=https://shkola-onlajn-23.ru/]онлайн школа ломоносов[/url] .

  6. онлайн школа 11 класс [url=https://shkola-onlajn-22.ru/]shkola-onlajn-22.ru[/url] .

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

*

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

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

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

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