mariano / node-db-drizzle

Drizzle database bindings for Node.js
http://nodejsdb.org
24 stars 2 forks source link

node-waf can't find drizzle.h #1

Closed eholzinger closed 13 years ago

eholzinger commented 13 years ago

Trying to install node-db-drizzle on OS X 10.6.7.

Drizzle is installed and working (Node, too, obviously) drizzle.h is at /usr/local/include/libdrizzle-1.0/libdrizzle/ as well as in the src dir of the git repository.

Tried to install via npm for several hours and got nowhere, so switched to the git clone version in the README.

node-waf configure returns this:

Checking for program g++ or c++ : /usr/bin/g++ Checking for program cpp : /usr/bin/cpp Checking for program ar : /usr/bin/ar Checking for program ranlib : /usr/bin/ranlib Checking for g++ : ok
Checking for node path : ok /usr/lib/node Checking for node prefix : ok /usr Checking for library drizzle : yes Checking for header libdrizzle/drizzle.h : not found

I have tried modifying wscript to give the full path, partial path, fiddled with obj.includes and just can't seem to find the right combination where configure will find the header.

Thoughts?

mariano commented 13 years ago

Yeah the problem seems to be that the header dir libdrizzle/ is within /usr/local/include/libdrizzle-1.0 instead of directly in /usr/local/include. Can I ask you how did you install Drizzle to get it there? Try creating a symlink. Standing in /usr/local/include do:

$ ln -s libdrizzle libdrizzle-1.0/libdrizzle

If that doesn't work or if you can't touch that path, try modifying wscript and replacing obj.includes with:

obj.includes = ["lib/", "/usr/local/include/libdrizzle-1.0/"]

and also commenting out lines 36 and 37 (the conf.check_cxx call to check for drizzle.h)

Let me know how it goes.