I am trying to install 'vet' tool using go get, and I am getting this error:
root#ubuntu:~/docker# go get code.google.com/p/go.tools/cmd/vet
# code.google.com/p/go.tools/cmd/vet
../go/src/code.google.com/p/go.tools/cmd/vet/asmdecl.go:10: import /root/go/pkg/linux_amd64/bytes.a: not a package file
I tried to find the solution on internet, couldn't find anything helpful. Could you guys please help me figure out what could be causing this? TIA.
Okay, so the problem was I was using go 1.2.1, I upgraded it to 1.4.2 and everything is working fine now. Thanks, #Ainar-G for pointing it out.
Related
So I installed gorilla/mux to use it for my API by typing this code on terminal
go get -u github.com/gorilla/mux
And since it didn't return any errors (nor any texts) I thought the install was successful. But When I started to use "mux. "something, vscode showed that the name "mux" is not declared. Does anyone had any similar experience or know how to solve the problem? Thanks in advance.
(Using go1.18.3)
Your project doesn't have go.sum file.
Run go mod tidy and you will be good to go.
I have been trying to install chaosmonkey following the instruction from here using go
However, I have not been able to successfully resolve the issue for the past day. I keep getting the below error and if I try installing other packages using go get, it install it without any issue so I believe my path is correct.
go: downloading github.com/netflix/chaosmonkey v2.0.2+incompatible
go get: module github.com/netflix/chaosmonkey#v2.0.2 found (v2.0.2+incompatible), but does not contain package github.com/netflix/chaosmonkey/cmd/chaosmonkey
There is not much information on the internet and any help would be appreciated!
I am unfamiliar with Grunt and I tried to follow steps to install it. I am getting this error and I have tried for a week to get it to work. Can anyone please help me. I am an undergrad student and don't have that much know how with it. I followed the installation instructions on the website. and know its a task error. but after that I cant find any working solutions.
Apparently the error is inside the js file.
npm rebuild node-sass
This one helped me.
warning: noob question ahead :-)
I was trying to run go get github.com/astaxie/beego but it does nothing. I have been running examples I picked up from the internet and I installed gotour successfully. Any idea why?
Turns out my setup was messed up. I purged everything and installed golang using this nifty script: https://github.com/moovweb/gvm. It takes care of everything. Thanks #peterSO for the help.
If it doesn't show anything, it doesn't mean nothing works. Try doing the same with '-v' flag
go get -v github.com/astaxie/beego
Besides, all your downloads will be saved (most probably) somewhere to your '~' directory ('~/go/src' in my case), not in your current terminal directory
if on Ubuntu/Debian?, try the golang package for installing go. it seems to work for me quite well.
I've been playing around with Google Go, I love the power behind it and decided to try out some libraries. I tried using goinstall to install github.com/mattn/go-gtk/gtk but when I try to compile an example I'm getting:
can't find import: github.com/mattn/go-gtk/gtk
I've heard that others have problems with goinstall, is there anything I can do to fix this? I also saw that some people fixed this by putting the path as something like github.com/mattn/go-gtk/gtk/gtk.so but it's still not working for me.
Use:
go install github.com/mattn/go-gtk/gtk
and it will download and install this library in $GOPATH/src
Use following command to install necessary packages
go get github.com/mattn/go-gtk