Questions tagged [golang]

Questions relating to Google's Go Programming Language project.

Filter by
Sorted by
Tagged with
0
votes
1answer
40 views

Not able to install golangci-lint in ubuntu 18.04

On installing vim-go in my Ubuntu 18.04 but on following the steps I am getting an error as shown below :- vim-go: Error installing github.com/golangci/golangci-lint/cmd/golangci-lint@master: go: ...
1
vote
1answer
38 views

go: cannot find GOROOT directory error on installing go in wsl

I've installed go v1.14.2 in my root, gave it permission and then moved the go folder to another drive /mnt/d/go Now in the .profile and .bashrc file I've already exported the GOROOT as well as ...
0
votes
0answers
14 views

Cloud-init: how to run a golang command?

How to run the following golang command from within the cloud-init: go get -u github.com/vente-privee/influxdb-relay I am including the command in the runcmd section of the cloud-init file but it is ...
0
votes
0answers
19 views

How to use an executable file as a command [duplicate]

I built a Go program and get the execute access to it by chmod +x MyFile. Now, I can run it by ./MyFile usually. When I change the path of my terminal, obviously, it's not possible to run the file by ....
1
vote
0answers
13 views

Startup Application Preference, won't run Golang Executable

Added the following to my Startup Application Preferences under 18.04. (cd /absolute/path/to/executable_dir && exec ./executable) The above command runs the executable no problem manually. ...
0
votes
1answer
71 views

odeke-em/drive installation

The installation of drive wasn't as straightforward as I thought. I followed these instructions. Go is now working I think. user@ubuntu:~$ go version go: GOPATH entry is relative; must be absolute ...
0
votes
1answer
45 views

How to solve problem same command-line for different apps

I have deployer for the PHP app on my machine with command dep to use it. Recently, I installed dependency management to develop Golang Apps called with the same command, dep. I am trying to use dep ...
1
vote
1answer
272 views

Can't Install Go [duplicate]

sudo apt-get update sudo apt-get -y upgrade wget https://dl.google.com/go/go1.12.6.linux-amd64.tar.gz using this command I download Go to my device after that I try to extract the downloaded archive ...
0
votes
1answer
108 views

Ubuntu Touch: Go get GPS Position

I want to develop a ubuntu touch app that show the currently gps coordinates. What is the best way to get access to the GPS position with go? I could not find any documentation for that. Thank you.
1
vote
0answers
51 views

What is the proper way to install the latest version of Go on Ubuntu 18.04?

This question might be overly simple, but I just want to make sure I'm not falling into some anti-pattern regarding package installation. I found the official installation instructions; however since ...
0
votes
0answers
1k views

OpenSSL SSL_connect: SSL_ERROR_SYSCALL - build/run golang app

Operating System: Ubuntu 18.04.2 LTS Kernel: Linux 4.15.0-47-generic Architecture: x86-64 First, I run go run main.go others package was running very well. But some problems come through... here is ...
0
votes
0answers
77 views

Exec format error, transferring file with filezilla

I have a compiled file written with golang, if I transfer the file to another PC with a usb driver, and add the permission with sudo chmod +x myfile, it runs perfectly, but when I transferr the file ...
0
votes
1answer
127 views

How to create snap YAML file of program written in golang sciter library?

could you please help me? How to create YAML file for golang application written in language go named golang and sciter library https://sciter.com/ ? I mean how what to write to yaml file to have ...
0
votes
1answer
767 views

go still run even its path not in environment variable path?

I install go by snap, the path to executable file of go is not in environment variable path, but when I use go run test.go in terminal (from my home directory), go still work. As my understand, the ...
2
votes
1answer
807 views

How to install and use pup from golang?

I installed go through snap; now how do I invoke pup? thufir@dur:~/pup$ thufir@dur:~/pup$ go get github.com/ericchiang/pup thufir@dur:~/pup$ thufir@dur:~/pup$ curl "skynet.be/nieuws-sport/weer/mijn-...
0
votes
1answer
440 views

Manually installed go, auto-update in conflict

I have this version of go installed: $ go version go version go1.10.3 linux/amd64 My sources list contains: $ cat /etc/apt/sources.list.d/gophers-ubuntu-archive-bionic.list deb http://ppa.launchpad....
11
votes
3answers
33k views

command 'go' not found

This is not a programming question. I have a machine running Ubuntu, and I installed Golang on it. It was working fine... I even ran a few programs, but the "go1.11.2.linux-amd64.tar.gz" file was in ...
0
votes
0answers
111 views

Snapcraft - Build snap using a specific golang version

I have been trying to build my application via snap. However, snap uses go version 1.6 by default. I need at least go 1.10 though. How'd I go on about that? I couldn't find anything useful in the ...
1
vote
3answers
8k views

Unable to install Go dep

I am trying to run the command dep ensure on my Ubuntu 16.04, but the system is unable to find the command. When I run sudo apt install dep or any other installation commands, I always get this error ...
2
votes
1answer
357 views

software not installed after successfull apt-get install in ubuntu subsystem on windows 10

I have installed go via sudo apt install golang-1.10-go but I can't execute go afterwards since the shell tells me that go is not installed. I tried to install go again. which tells me it is installed ...
3
votes
1answer
1k views

i want to install specific version of go programming language(1.7.5 ) in ubuntu 16.04

wget https://storage.googleapis.com/golang/go1.7.5.linux-amd64.tar.gz extract the package sudo tar -zxvf go1.7.5.linux-amd64.tar.gz -C /usr/local/ Added by Go Path echo 'export GOROOT=/usr/local/...
1
vote
1answer
25 views

U Core hosted on OSX [closed]

id like to start experimenting with snaps on ubuntu core. Ideally start with a Docker image or Virtual Box container. Eventually I want to remotely deploy goLang apps, on rasspi's... but I am ...
0
votes
1answer
862 views

how to install the golang package on a complete different folder and make it run?

I want to install the go lang package on a separate folder, instead of using apt-get install to install it. I'm not keen to use apt-get for many reasons that would be too long to explain here. I did ...
0
votes
1answer
489 views

Can't use go in Visual Studio Code terminal

I have the latest versions of Visual Studio Code and Go compiler. When I am trying to build file in Visual Studio Code terminal using go build [FILENAME] I get this output: The program 'go' can be ...
5
votes
5answers
11k views

Installation instructions for golang 1.9 into Ubuntu 16.04

I'm looking for the correct way to install golang 1.9 into my laptop that is running Ubuntu 16.04. Many thanks
0
votes
0answers
550 views

dpkg: error processing archive /var/cache/apt/archives/golang-1.6-go_1.6.2-0ubuntu5~16.04.2_amd64.deb (--unpack):

When I am running sudo apt-get -f install, it shows dpkg: error processing. Please find the complete logs below and advise how to solve this. I am running VB 5.0.10 with Ubuntu 16.04 and already ...
2
votes
0answers
325 views

Ubuntu Core on Raspberry Pi 3 SPI driver isn't available

I have Golang program for Raspberry Pi 3 that reads data using SPI. I use this library to do that: https://github.com/kidoman/embd. And it works ok on Raspbian OS. I tried to port it to Ubuntu Core. ...
3
votes
1answer
5k views

Where to store global config file for a snap application

I'm currently working on a server side app written in Golang. I want to package the app in a snap package. Where can I store a global configuration file for the app that retains itself even after an ...
1
vote
1answer
662 views

How to use umake to install the Go language (version 1.8) in Ubuntu 16.10?

I am having trouble with installing the latest version of golang on Ubuntu 16.10. After running the sudo umake go command I get the message saying to choose the installation path with the default path ...
1
vote
1answer
789 views

Where is the golang-1.7 binary?

I've installed golang-1.7 on 16.10, but when I run, e.g. go version I get /usr/bin/go: No such file or directory. So I'd like to add the path to $PATH so I can use go 1.7, but I don't know where to ...
0
votes
1answer
1k views

I made /usr/local/ world writable, is it secure?

I had problem with npm while using Go(lang) framework Buffalo, the framework couldn't run npm through "sudo" so I needed to make npm world writable using chmod. I ran the following command sudo chmod ...
7
votes
1answer
6k views

How to create a launcher for for JetBrains Gogland

Gogland was released as preview yesterday. And I, being new to Linux have problem making a launcher for it using .desktop file. I have never created .desktop file before, and I am running Ubuntu 14....
3
votes
1answer
410 views

How to install a recent, managed version of golang on Ubuntu 14.04?

The Go programming language (golang) has multiple versions and multiple implementations. Some software requires a more recent version than the 1.2.1 in Ubuntu 14.04 via the golang-go package: $ go ...
1
vote
0answers
88 views

Go app won't compile in Ubuntu SDK

I'm trying to create a new Ubuntu Touch App with Go and QML using the template in the SDK. The application won't build and gives the following error. 17:41:47: Running command go get -d -u gopkg.in/...
1
vote
0answers
500 views

How to run a golang restful api as service in ubuntu server

I need to run golang restful server that build using gin framework and mongodb as service in my ubuntu server.how can do this? (every time i run the go script i need to this also gvm use go1.4)
1
vote
1answer
34 views

Error building .click package with click build .: '…' is not a directory

Error I get when building a .click package, which is an Ubuntu Phone scope: ERROR: 'my-scope' is not a directory Any idea what this could be referring to? Thanks!
0
votes
2answers
69 views

Can't install needed python3-scope-harness for Ubuntu Scopes dev in Go

At https://developer.ubuntu.com/en/scopes/tutorials/developing-scopes-go/ it tells me to run sudo apt-get install unity-scope-tool golang git bzr python3-scope-harness mercurial But I receive the ...
31
votes
10answers
52k views

Updating golang on Ubuntu

I have Ubuntu 14.4.03. The default golang version which came with it was 1.2.1. I would like to update golang to 1.4 or higher. After searching I found the way to do this would be to first delete ...
5
votes
1answer
589 views

How do I develop a Ubuntu application using the Go language?

I want to develop some application for the Ubuntu platform. But I don't know C++. I can learn QML very easily. The problem is that the logic or process behind the scene in an application seems to use ...
1
vote
1answer
553 views

Error while installing go language

I'm following the steps from this link to install go. sudo apt-get install python-software-properties # 12.04 sudo add-apt-repository ppa:duh/golang sudo apt-get update sudo apt-get install golang ...
3
votes
1answer
126 views

Can not install juju from “go install”

I had already config golang env on ubuntu os and go get juju from github to my local lab . I can successfully run following command, 1. godeps -u dependencies.tsv 2. make install-dependencies 3. ...
12
votes
2answers
7k views

How to properly install Go Language in Ubuntu?

I'm trying follow these instructions to install Drive but I can't get Go to work properly. I keep getting the error: go tool: no such tool "6g" When I try to use go get [url]. I also get this error ...
0
votes
1answer
2k views

Cannot run go install on Ubuntu

When I run go install command for my custom packages on ubuntu 14.04 I got this error : go install: no install location for .go files listed on command line (GOBIN not set) How can i set $GOBIN ...
0
votes
1answer
2k views

Using 'drive' google drive cli

I installed the (quasi?) official gdrive linux cli based on instructions from howtogeek. This failed with the following message: $ go get github.com/odeke-em/drive/cmd/drive go tool: no such ...
5
votes
2answers
2k views

Installing the Go Language

How to correctly install and configure the Go Language in Ubuntu. There are many packages to choose from but which packages do I need to install and what do I need to configure afterwards to be able ...
4
votes
2answers
1k views

I've installed golang with accordance with the wiki yet “go get” is missing

I've installed everything go-related from synaptic and later added ppa as described in the wiki: https://wiki.ubuntu.com/Go yet I cannot do "go get" for example go get code.google.com/p/gorilla/mux ...
34
votes
7answers
14k views

Any PPAs for Google's Go Language?

Do you know of any URLs for PPAs of Google's Go Language?