jeremycx / node-LDAP

LDAP binding for node.js
MIT License
221 stars 43 forks source link

latest version of LDAP not working with node 6 #32

Closed stephendecourcy closed 10 years ago

stephendecourcy commented 11 years ago
npm ERR! LDAP@1.1.5 install: `node-gyp rebuild`
npm ERR! `sh "-c" "node-gyp rebuild"` failed with 1
npm ERR! 
npm ERR! Failed at the LDAP@1.1.5 install script.
npm ERR! This is most likely a problem with the LDAP package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get their info via:
npm ERR!     npm owner ls LDAP
npm ERR! There is likely additional logging output above.
npm ERR! 
npm ERR! System Linux 2.6.32-44-server
npm ERR! command "node" "/usr/local/bin/npm" "install" "."
npm ERR! cwd /opt/feedhenry/fh-dynoman/data/demo/home/apps/demo-b5hyfb60ccuhjwmombzb0vmm-dev/src/cloud
npm ERR! node -v v0.6.17
npm ERR! npm -v 1.1.21
npm ERR! code ELIFECYCLE
npm ERR! message LDAP@1.1.5 install: `node-gyp rebuild`
npm ERR! message `sh "-c" "node-gyp rebuild"` failed with 1
npm ERR! errno {}
npm ERR! 
npm not ok
 code: 1]]
stephendecourcy commented 11 years ago

Just to clarify the latest ldap version version works fine with node 8 and older versions (1.0.4) work fine with node 6.

jeremycx commented 11 years ago

So which version is failing build, exactly?

I think you may be saying that the current github version works, but the npm version does not. Is this correct?

stephendecourcy commented 11 years ago

Hi Jeremy.

Including this line in the package.json file results in a failure to build.

"LDAP" : "*"

Change to this and it works fine

"LDAP" : "1.0.4"

Stephen

On Mon, Jun 17, 2013 at 6:12 PM, Jeremy Childs notifications@github.comwrote:

So which version is failing build, exactly?

I think you may be saying that the current github version works, but the npm version does not. Is this correct?

— Reply to this email directly or view it on GitHubhttps://github.com/jeremycx/node-LDAP/issues/32#issuecomment-19559573 .

Stephen de Courcy

Mob. 085 78 78 518

dnikitadeshmukh commented 11 years ago

Hi, I was facing similar problem but on installing 1.0.4 of the LDAP library i get the following error :

module.js:340 throw err; ^ Error: Cannot find module './build/Release/LDAP' at Function.Module._resolveFilename (module.js:338:15) at Function.Module._load (module.js:280:25) at Module.require (module.js:364:17) at require (module.js:380:17) at Object. (/home/nikitad/Profiles/profilesprototype/profiles/node_modules/LDAP/LDAP.js:7:22) at Module._compile (module.js:456:26) at Object.Module._extensions..js (module.js:474:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Module.require (module.js:364:17)

Please Help..

Thanks ~Nikita

jeremycx commented 11 years ago

Which node version are you building under?

jeremycx commented 11 years ago

... and OS would be handy to know, too.

dnikitadeshmukh commented 11 years ago

Hi, On Ubuntu: OS-12.10 Node v0.10.10

on CentOS-v6.4 Node v0.10.18