Closed liusongsen closed 11 years ago
package main
import ( "fmt" curl "github.com/andelf/go-curl" )
func main() { easy := curl.EasyInit() defer easy.Cleanup() if easy != nil { easy.Setopt(curl.OPT_URL, "http://www.google.com/") easy.Perform() } }
run result as: [ replay | done: 282.65ms ]
replay
Package libcurl was not found in the pkg-config search path. Perhaps you should add the directory containing `libcurl.pc' to the PKG_CONFIG_PATH environment variable No package 'libcurl' found exit status 1
exit status 2
package “libcurl” where?
sudo apt-get install libcurl3-dev
I'll add a notice to README :)
package main
import ( "fmt" curl "github.com/andelf/go-curl" )
func main() { easy := curl.EasyInit() defer easy.Cleanup() if easy != nil { easy.Setopt(curl.OPT_URL, "http://www.google.com/") easy.Perform() } }
run result as: [
replay
| done: 282.65ms ]pkg-config --cflags libcurl
package “libcurl” where?
sudo apt-get install libcurl3-dev