levelup fails to compile on OSX 10.8 #34

Closed
tanepiper opened this Issue Nov 22, 2012 · 14 comments

Comments

Projects
None yet
7 participants

Trying to install levelup via npm (actually was trying to install pouchdb but this dependency always fails).

NPM log https://gist.github.com/4132175

This is on - OSX 10.8.2, node v0.8.14

(as an FYI, I downloaded it via git and 'npm install' in the directory - compiles fine so looks like a broken version on NPM rather than the repo)

Owner

rvagg commented Nov 22, 2012

Is it possible you're running a debug version of Node? rvagg#17
That gist is verbose but surprisingly unhelpful, very odd.

Owner

juliangruber commented Nov 22, 2012

@rvagg you need to start tagging things so we can go back in time

nvm, no commit since 0.3.1 should have changed anything respecting that issue

Owner

juliangruber commented Nov 22, 2012

can you run node-gyp rebuild inside the directory that npm created at node_modules/levelup and paste the output?

@rvagg @juliangruber No, I'm running a normal build of node on this machine - weirdly node-gyp is not in my paths it seems (i.e. command not found: node-gyp) yet as I mentioned it does build fine if I get it from source and do npm install in the directory, just not from the version fetched from NPM itself.

Owner

rvagg commented Nov 23, 2012

@tanepiper node-gyp is installed with Node now but not linked up to your bin directory, npm uses it internally so it's obscured. if you npm install node-gyp -g you'll get it linked up, or you can run it directly with /usr/local/lib/node_modules/node-gyp/bin/node-gyp.js (or where ever your global node_modules are installed) and achieve the same effect.

Owner

0x00A commented Dec 30, 2012

I'm running the same version of darwin and I had a similar problem. I reinstalled x-code command line tools and after that it worked fine.

Owner

juliangruber commented Dec 30, 2012

Native LebelDB rewrite...anyone? :)

Owner

0x00A commented Dec 30, 2012

iirc fs module would need some serious love before that would be worth doing.

Owner

juliangruber commented Dec 30, 2012

mh..mkay

chesles commented Dec 30, 2012

I heard somewhere that somebody was working on a pure JS leveldb library, but I never saw a repo and I don't know what kind of progress they made. I assume it would be quite a bit of work though, if it's possible at all.

Owner

rvagg commented Dec 30, 2012

this is @janl's (pipe) dream apparently, regardless of how much it'd suck performance-wise it'd certainly be fun!

janl commented Dec 30, 2012

I dont think it'd suck at all, but I have no code to prove it ;)

Owner

juliangruber commented Dec 31, 2012

go for it! :)

Owner

ralphtheninja commented Feb 21, 2013

Closing. @tanepiper holler if this is still a problem!

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