GithubHelp home page GithubHelp logo

Comments (7)

JCMais avatar JCMais commented on July 3, 2024

Cannot find curl's header file.

Make sure you have libcurl devel package installed.

As you are using mac, you probably need to install xcode and the xcode command line tools.

from node-libcurl.

babaskate avatar babaskate commented on July 3, 2024

I'm getting an error, but different from above. I'm on node 0.10:

npm http GET https://registry.npmjs.org/node-libcurl
npm http 304 https://registry.npmjs.org/node-libcurl
npm http GET https://registry.npmjs.org/bindings
npm http GET https://registry.npmjs.org/nan
npm http 304 https://registry.npmjs.org/nan
npm http 304 https://registry.npmjs.org/bindings

> [email protected] install /somepath/grunt-tenon/node_modules/node-libcurl
> node tools/retrieve-win-deps && node tools/generate-stubs && node-gyp rebuild

  CXX(target) Release/obj.target/node-libcurl/src/node-libcurl.o
c++: error: unrecognized command line option '-stdlib=libc++'
make: *** [Release/obj.target/node-libcurl/src/node-libcurl.o] Error 1
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:797:12)
gyp ERR! System Darwin 13.4.0
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /somepath/grunt-tenon/node_modules/node-libcurl
gyp ERR! node -v v0.10.26
gyp ERR! node-gyp -v v0.13.0
gyp ERR! not ok 
npm ERR! [email protected] install: `node tools/retrieve-win-deps && node tools/generate-stubs && node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] install script.
npm ERR! This is most likely a problem with the node-libcurl package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node tools/retrieve-win-deps && node tools/generate-stubs && node-gyp rebuild
npm ERR! You can get their info via:
npm ERR!     npm owner ls node-libcurl
npm ERR! There is likely additional logging output above.

npm ERR! System Darwin 13.4.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "node-libcurl" "--save"
npm ERR! cwd /somepath/grunt-tenon
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.10
npm ERR! code ELIFECYCLE
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /somepath/grunt-tenon/npm-debug.log
npm ERR! not ok code 0

from node-libcurl.

JCMais avatar JCMais commented on July 3, 2024

@babaskate you probably need to update gcc (the c++ compiler, looks like the version you are using has no support for C++11).

from node-libcurl.

babaskate avatar babaskate commented on July 3, 2024

I'm using gcc version 4.8.3 on Mac 10.9.5. Which version are you compiling with? thanks.

from node-libcurl.

zach-delong avatar zach-delong commented on July 3, 2024

@JCMais That's exactly what it was, thanks! I totally forgot my machine had been re-provisioned and my installed libraries were gone... whoops...

from node-libcurl.

JCMais avatar JCMais commented on July 3, 2024

@babaskate Strange, the gcc you have looks good. Unfortunately I don't have a Mac to test what is going on.

On Debian 7 running gcc 4.7.2 I'm building just fine.

from node-libcurl.

JCMais avatar JCMais commented on July 3, 2024

Closing this as the issue was fixed.
If you still have some problem @babaskate, open a new issue.

from node-libcurl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.