diff --git a/README.md b/README.md index 6a5eda33c..d98b144df 100644 --- a/README.md +++ b/README.md @@ -102,6 +102,11 @@ In Ubuntu: sudo apt-get install libssl-dev ``` +Additionally, you need `curl-config` on your system. You need one of these packages: + * libcurl4-gnutls-dev + * libcurl4-nss-dev + * libcurl4-openssl-dev + If you are still encountering problems while installing, you should try the [Building from source](http://www.nodegit.org/guides/install/from-source/) instructions. diff --git a/generate/templates/templates/binding.gyp b/generate/templates/templates/binding.gyp index 09a5a017b..673696386 100644 --- a/generate/templates/templates/binding.gyp +++ b/generate/templates/templates/binding.gyp @@ -92,9 +92,9 @@ } ], [ - "OS=='linux' or OS=='mac'", { + "OS=='linux' or OS=='mac' or OS.endswith('bsd')", { "libraries": [ - "-lcurl" + "