[GH-ISSUE #47] Can you do some support to make it work on ubuntu? #183

Closed
opened 2026-03-01 17:24:25 +03:00 by kerem · 6 comments
Owner

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

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
kerem closed this issue 2026-03-01 17:24:25 +03:00
Author
Owner

@abh commented on GitHub (Nov 28, 2013):

Are you using Go 1.0.x? Can you try with Go 1.1 or 1.2rc ?

<!-- gh-comment-id:29439582 --> @abh commented on GitHub (Nov 28, 2013): Are you using Go 1.0.x? Can you try with Go 1.1 or 1.2rc ?
Author
Owner

@sunsongxp commented on GitHub (Nov 28, 2013):

go version go1.0.2. I will try and report my results later.

<!-- gh-comment-id:29439617 --> @sunsongxp commented on GitHub (Nov 28, 2013): go version go1.0.2. I will try and report my results later.
Author
Owner

@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

<!-- gh-comment-id:29442565 --> @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
Author
Owner

@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?

<!-- gh-comment-id:29444124 --> @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?
Author
Owner

@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.

<!-- gh-comment-id:29445200 --> @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.
Author
Owner

@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

<!-- gh-comment-id:31830965 --> @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
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/geodns#183
No description provided.