Please forgive the newb-ness of this question.
I ran into the "no such host" issue described at https://code.google.com/p/go/issues/detail?id=3575#makechanges. I was told to post here.
In short, I tried the "go install -a -tags netgo net my-pkg" workaround but get a permission denied error. I eventually reinstalled go as as that led to other errors (see the post for more details).
Another proposed solution there is to mutex net.cgoLookupIPCNAME. How do I modify http://play.golang.org/p/C1WhYh4_jl to lock net.cgoLookupIPCNAME? (I do realize it won't run on the playground)
GOROOT must be set only when installing to a custom
location.""This is because you don't have permission to write to GOROOT".
I don't have GOROOT set since I installed Go in the default location.
From the docs "Note:GOROOTmust be set only when installing to a custom location."
sudo.)". So, I should NOT be installing go as root? Sorry for being thick...it's just the way I am ;)Can you share your code, or some code which demonstrates the issue? Please include details about the platform your are deploying on.
--
You received this message because you are subscribed to a topic in the Google Groups "golang-nuts" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/golang-nuts/-2E2pt6OuaU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to golang-nuts...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
Is there a way to enable DNS caching?
lucky(~/src) % go build -tags netgo netgo.go
lucky(~/src) % ldd ./netgo
linux-vdso.so.1 => (0x00007fffd65fe000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f19e2dc3000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f19e29fd000)
/lib64/ld-linux-x86-64.so.2 (0x00007f19e3001000)
lucky(~/src) % cat netgo.go
package main
import "net"
import "fmt"
func main() {
conn, err := net.Dial("tcp", "www.google.com:443")
fmt.Println(conn, err)
}
--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "golang-nuts" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/golang-nuts/-2E2pt6OuaU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to golang-nuts...@googlegroups.com.
James,
That also doesn't seem to make any difference, sadly. (Since I am new just want to make sure I did things correctly: I open a terminal, type "export CGO_ENABLED=0" then rebuild & run the crawler from that same terminal window)
So, via issue 9405 it may appear that the errors you are receiving are actually timeouts. Can you log the failing URL? There may be some commonality.
--
Is anyone else having the same issue on Mint/Ubuntu or other flavors of Linux?
--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
I followed your instructions but "ldd bin/resolve" keeps giving me:
Does this just affect Ubuntu or other linux distros as well?