Skip to content

npm install sqlite3 not working on mac os x 10.6.8 #50

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
shanielh opened this issue Nov 18, 2011 · 7 comments
Closed

npm install sqlite3 not working on mac os x 10.6.8 #50

shanielh opened this issue Nov 18, 2011 · 7 comments

Comments

@shanielh
Copy link

npm-debug.log can be found here :
http://cl.ly/121F0P2z1Z0k263b0j3y

Thanks.

@springmeyer
Copy link
Contributor

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.

@shanielh
Copy link
Author

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

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

@kkaefer
Copy link
Contributor

kkaefer commented Nov 18, 2011

@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?

@shanielh
Copy link
Author

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

@kkaefer
Copy link
Contributor

kkaefer commented Nov 21, 2011

@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.

@jsvine
Copy link

jsvine commented Feb 8, 2012

@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.

@kkaefer
Copy link
Contributor

kkaefer commented Apr 25, 2012

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

@kkaefer kkaefer closed this as completed Apr 25, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants