andelf / go-curl

golang curl(libcurl) binding.
Apache License 2.0
478 stars 130 forks source link

No package 'libcurl' found #7

Closed liusongsen closed 11 years ago

liusongsen commented 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 ]

pkg-config --cflags libcurl

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

andelf commented 11 years ago

I'll add a notice to README :)