Skip to content

NodeGit does not compile on FreeBSD, with curl/curl.h not found #1429

Closed

Description

@mfechner

try to install nodegit on FreeBSD with:

npm install nodegit

you get:

> node lifecycleScripts/preinstall && node lifecycleScripts/install

[nodegit] Running pre-install script
[nodegit] Configuring libssh2.
[nodegit] Running install script
node-pre-gyp
ERR! Tried to download(403): https://nodegit.s3.amazonaws.com/nodegit/nodegit/nodegit-v0.20.3-node-v59-freebsd-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for nodegit@0.20.3 and node@9.3.0 (node-v59 ABI, unknown) (falling back to source compile with node-gyp)
gmake: Entering directory '/usr/home/user/git/project/node_modules/nodegit/build'
CC(target) Release/obj.target/libgit2/vendor/libgit2/src/annotated_commit.o
CC(target) Release/obj.target/libgit2/vendor/libgit2/src/apply.o
CC(target) Release/obj.target/libgit2/vendor/libgit2/src/attr_file.o
CC(target) Release/obj.target/libgit2/vendor/libgit2/src/attr.o
CC(target) Release/obj.target/libgit2/vendor/libgit2/src/attrcache.o
CC(target) Release/obj.target/libgit2/vendor/libgit2/src/blame_git.o
CC(target) Release/obj.target/libgit2/vendor/libgit2/src/blame.o
CC(target) Release/obj.target/libgit2/vendor/libgit2/src/blob.o
CC(target) Release/obj.target/libgit2/vendor/libgit2/src/branch.o
CC(target) Release/obj.target/libgit2/vendor/libgit2/src/buf_text.o
CC(target) Release/obj.target/libgit2/vendor/libgit2/src/buffer.o
CC(target) Release/obj.target/libgit2/vendor/libgit2/src/cache.o
CC(target) Release/obj.target/libgit2/vendor/libgit2/src/checkout.o
CC(target) Release/obj.target/libgit2/vendor/libgit2/src/cherrypick.o
CC(target) Release/obj.target/libgit2/vendor/libgit2/src/clone.o
CC(target) Release/obj.target/libgit2/vendor/libgit2/src/commit_list.o
CC(target) Release/obj.target/libgit2/vendor/libgit2/src/commit.o
CC(target) Release/obj.target/libgit2/vendor/libgit2/src/config_cache.o
CC(target) Release/obj.target/libgit2/vendor/libgit2/src/config_file.o
CC(target) Release/obj.target/libgit2/vendor/libgit2/src/config.o
CC(target) Release/obj.target/libgit2/vendor/libgit2/src/crlf.o
CC(target) Release/obj.target/libgit2/vendor/libgit2/src/curl_stream.o
../vendor/libgit2/src/curl_stream.c:12:10: fatal error: 'curl/curl.h' file not found
#include <curl/curl.h>
         ^~~~~~~~~~~~~
1 error generated.

But curl is installed:

ls -las /usr/local/include/curl/curl.h
101 -rw-r--r--  1 root  wheel  101966 Dec  8 09:30 /usr/local/include/curl/curl.h

Activity

  1. rcjsuen commented on Jan 22, 2018

    @rcjsuen
    Member

    See #1237.

  2. mfechner commented on Jan 23, 2018

    @mfechner
    Author

    Thanks a lot, the patch provide there fixes the problem.

  3. antoinell commented on Jul 3, 2018

    @antoinell

    Can you reopen this issue and apply the patch in #1237 as it is necessary to compile the C code of nodegit such as vendor/libgit2/src/streams/curl.c.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions