mirror of
https://github.com/abh/geodns.git
synced 2026-04-27 11:55:50 +03:00
[GH-ISSUE #47] Can you do some support to make it work on ubuntu? #328
Labels
No labels
bug
bug
enhancement
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/geodns#328
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @sunsongxp on GitHub (Nov 28, 2013).
Original GitHub issue: https://github.com/abh/geodns/issues/47
I tried install geodns on ubuntu a number of times, but failed. It seems there are some problems in terms of packages dependencies. Besides, I also got the error message:
/usr/lib/go/src/pkg/github.com/abh/dns/edns.go:230: function ends without a return statement
without a clue
The steps I tried:
sudo apt-get install golang
sudo apt-get install mercurial
sudo apt-get install libgeoip-dev
export GOPATH=/usr/lib/go
sudo go get github.com/abh/geodns
I haven't tried to install it on centos, so I cannot tell if I tried to install it in wrong way.
Thanks
@abh commented on GitHub (Nov 28, 2013):
Are you using Go 1.0.x? Can you try with Go 1.1 or 1.2rc ?
@sunsongxp commented on GitHub (Nov 28, 2013):
go version go1.0.2. I will try and report my results later.
@sunsongxp commented on GitHub (Nov 28, 2013):
I succeeded at last, here are the rough steps to make it work on ubuntu:
Install latest version of go:
http://golang.org/doc/install
sudo apt-get install mercurial
sudo apt-get install libgeoip-dev
sudo apt-get install bzr
export PATH=$PATH:/usr/local/go/bin
export GOPATH=/home/username/workspace/go/
cd /home/username/workspace/go/
go get launchpad.net/gocheck
go get github.com/abh/geodns
cd /home/username/workspace/go/src/github.com/abh/geodns
go test
go build
@abh commented on GitHub (Nov 28, 2013):
Sorry, I should have mentioned something else first: I occasionally make a binary builds of GeoDNS available, too: https://github.com/abh/geodns/releases -- I do have a few (older) Ubuntu based deployments so I believe it should work there, too.
That looks right for doing a "from source install" of Go. I actually usually use that (on my mac) to make cross-compiles easy, but it shouldn't be necessary...
Did you try the binary builds from golang.org?
@sunsongxp commented on GitHub (Nov 28, 2013):
It's ok. I am glad I can do some contributions.
I actually use a binary build. I did not build go from source.
@anuaimi commented on GitHub (Jan 8, 2014):
thanks for documenting how to do this. I've created a bash script based on the instructions here.
https://gist.github.com/anuaimi/93e3e4f6bd08aa71ffb2