Comments (8)
- update your Go installation. See https://code.google.com/p/go/downloads/list or http://golang.org/doc/install
- Please set
GOPATH
and nevergo get
anything as root or sudo. See http://golang.org/doc/code.html
from goquery.
Thanks @DisposaBoy !
from goquery.
I had run "go get" as sudo, and am now trying to fix my mistake. I have been at this for hours now, does anyone have any pointers? Thanks!
from goquery.
@olanmatt I'm guessing you haven't removed the files from your GOROOT. Packages inside GOROOT takes precedence over GOPATH, so you'll have to remove all third-party(non-go distrbuted) files and directories from there otherwise go get
, etc. will just continue to try use them,
from goquery.
Thanks for the warning about the root user. In case it was just a PoC (Proof of Concept) in VirtualBox, but we have security vision, even :) I will do as you guided me. Thanks, guys :)
from goquery.
@DisposaBoy Thanks for the response! I managed to remove the package from GOROOT, but am still confused how I would go get without using sudo as I am getting permission denied. Is there a way to install the package I am missing? Thanks again.
from goquery.
You have to set your $GOPATH environment variable. I suggest you take the time to read the article that Disposaboy posted : http://golang.org/doc/code.html
It explains the setup required for a working Go environment. You'll want to point GOPATH to a directory that you have access (without root, that is).
from goquery.
On Ubuntu 13.04 with the go version in apt
(1.0.2), I got the same error. sudo add-apt-repository ppa:duh/golang
did not help, since the latest version was 1.1.1. I finally followed http://blog.labix.org/2013/06/15/in-flight-deb-packages-of-go, which will create a deb
from a official package. With
$ godeb 1.1.2 # will create a .deb package for your platform
$ sudo apt-get purge golang-*
$ sudo dpkg -i go-VERSION-PLATFORM.deb
it's all fine and I have a fresh go version go1.1.2 linux/amd64
installation.
from goquery.
Related Issues (20)
- dealing with profiles in script tags. HOT 3
- Selection `Next` method continuously returns new selection even if there are no `html.nodes` left HOT 2
- Get Contents items on first level of container HOT 1
- How to achieve the effect of BeautifulSoup get_text? HOT 5
- GoQuery using up excess memory HOT 2
- BUG: Attr func can not get data if attr data have " Symbols HOT 1
- can't find nodes!
- QueryParams in links are encoded incorrectly HOT 1
- GoQuery Not Matching Element HOT 2
- How to count the number of words before and after a selection across a document? HOT 2
- If an id attribute contains dots tag will not be found HOT 2
- Find(selector)??????
- I am sorry, i can't find. May be some error. HOT 1
- Cant parse <tr> without <table> element. HOT 2
- how to get text 'CZ/KHN' HOT 3
- :first :first-child test failed,the expected nodes are not filtered out HOT 1
- Good
- How to query a shadow DOM? HOT 3
- Add a generic form of `Selection.Map` (requiring a more recent Go version) HOT 4
- Question about parsing nested tables and finding outer elements HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from goquery.