andelf / go-curl

golang curl(libcurl) binding.
Apache License 2.0
485 stars 131 forks source link

CGO_ENABLED=0 go get github.com/andelf/go-curl #16

Closed mejinke closed 11 years ago

mejinke commented 11 years ago

sh-3.2# CGO_ENABLED=0 go get github.com/andelf/go-curl

github.com/andelf/go-curl

../../../../github.com/andelf/go-curl/c-callback.c:2 6c: No such file or directory: stdio.h

andelf commented 11 years ago

you SHOULD use CGO_ENABLED=1 go get github.com/andelf/go-curl

mejinke commented 11 years ago

sh-3.2# CGO_ENABLED=1 go get github.com/andelf/go-curl

runtime/cgo

clang: warning: argument unused during compilation: '-pthread'

runtime/cgo

clang: error: no such file or directory: 'libgcc.a'

My system is OS X 10.9 there has been this problem, so I generally use CGO_ENABLED = 0

andelf commented 11 years ago

try update your go install. https://github.com/mxcl/homebrew/issues/17913 https://github.com/mxcl/homebrew/pull/19782 It's not a go-curl bug.