Git Product home page Git Product logo

Comments (7)

springmeyer avatar springmeyer commented on July 24, 2024

that debug log does not show the actual error, so it is not possible to help you. You need to paste the terminal output. If you did not see any then you'd need to download the sources and run:

./configure && make

and then paste the output you see.

But, my guess is that you are installing the latest version against an older version of node. The latest version (2.1.x) only works with node v0.6 or greater. If you want node v0.4.x compatible node-sqlite3 then try the 2.0.18 version.

from node-sqlite3.

shanielh avatar shanielh commented on July 24, 2024

Thanks for the fast response. I'm using node 0.6.1.

The log from the console :
http://cl.ly/3r103t2V2j1r3c1h2N2H

from node-sqlite3.

kkaefer avatar kkaefer commented on July 24, 2024

@morishani, it looks like you don't have the header files of node 0.6 installed which are required for compiling extensions. How did you install node 0.6?

from node-sqlite3.

shanielh avatar shanielh commented on July 24, 2024

Via the macintosh installer found here : http://nodejs.org/#download

from node-sqlite3.

kkaefer avatar kkaefer commented on July 24, 2024

@morishani, for the time being, you have to install node manually from source. I recommend using nvm. The installer doesn't ship with the header files required for compiling extensions.

from node-sqlite3.

jsvine avatar jsvine commented on July 24, 2024

@morishani: I was running into the same problem, and the Development Seed guys very kindly helped to locate the problem. I had upgraded from NodeJS v0.4.1 to v0.6.7, but still had some of the old version's files and headers in my path. The fix, in three steps:

  1. Uninstall NodeJS
  2. rm -r /usr/local/include/node/* && rm -r /usr/bin/node* [though probably best to confirm these are the correct locations on your machine]
  3. Reinstall NodeJS.

from node-sqlite3.

kkaefer avatar kkaefer commented on July 24, 2024

With #61 merged, installation now uses node-gyp which downloads the header files for the current node version before compiling.

from node-sqlite3.

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.