From 7623c4bdfdf7380bcdddc6dc00a7a175119d8ccb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Cie=C5=9Blak?= Date: Sun, 26 Feb 2017 18:29:26 +0000 Subject: [PATCH 1/2] Use curl-config to find curl On BSDs headers will be in /usr/local/include which is not added to the include path automatically. --- generate/templates/templates/binding.gyp | 4 ++-- vendor/libgit2.gyp | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) 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" + " Date: Wed, 26 Sep 2018 07:44:41 +0200 Subject: [PATCH 2/2] Mention curl-config in readme --- README.md | 5 +++++ 1 file changed, 5 insertions(+) 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.