-
Notifications
You must be signed in to change notification settings - Fork 793
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issues installing and setting up server. #48
Comments
Ubuntu's golang package is very old and no longer supported. Just download the latest binary tarball from golang.org and unpack in /opt/go and set GOROOT=/opt/go and add $GOROOT/bin to the path. Then Sent from the future
|
Thanks for the quick reply. I attempted your suggestion but it still fails: sudo go get github.com/fiorix/freegeoip - this finishes but i get a lot of these errors: But if i push ahead and try: go build Thanks! |
I think i've narrowed it down but I don't know how to fix it the right way. it tries to find "github.com/fiorix/go-redis/redis" in "/usr/lib/go/src/" |
Just do Sent from the future
|
unfortunately i get Edit: I changed the go path to the home directory /go and then it works (as expected since my user doesnt have access to /usr/lib/) only error i get is: I am on ubuntu 12.04 and Im using: http://code.google.com/p/go/downloads/detail?name=go1.2.1.linux-amd64.tar.gz&can=2&q= Edit2: |
It runs successfully. Thanks a lot. Edit: freegeoip.conf is the answer to my question. |
Yeah, you got it. :) |
Hi,
Thanks for the awesome freegeoip. I am attempting to run a server of my own so that I won't have to affect your servers.
I have never used go before so please bear with my lack of knowledge.
The process I used is:
install go: sudo apt-get install golang
install other reqs: sudo apt-get install build-essential libsqlite3-dev pkg-config
get your git code: sudo go get github.com/fiorix/freegeoip
attempting to build:
cd /usr/lib/go/src/pkg/github.com/fiorix/freegeoip
and then: go build
First I ran into:
/usr/lib/go/src/pkg/github.com/fiorix/go-redis/redis/redis.go:265: function ends without a return statement
After fixing the above by moving the return from the else outside the else statement, I get the following issue(while attempting go run):
/usr/lib/go/src/pkg/github.com/fiorix/freegeoip/freegeoip.go:273: enc.Indent undefined (type *xml.Encoder has no field or method Indent)
I hope you can help me fix the issue.
Thanks!
The text was updated successfully, but these errors were encountered: