Closed bodypheo closed 7 years ago
I also get an error message.
A more detailed error message:
make: Entering directory `/var/www/etherpad-lite/node_modules/ep_ldapauth/node_modules/ldapjs/node_modules/buffertools/build'
CXX(target) Release/obj.target/buffertools/buffertools.o
../buffertools.cc:19:52: error: ‘Arguments’ does not name a type
../buffertools.cc:19:63: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive]
../buffertools.cc:21:33: error: ‘Arguments’ does not name a type
../buffertools.cc:21:44: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive]
../buffertools.cc: In member function ‘v8::Handlev8::Value {anonymous}::UnaryAction
I got the same issue, when I installed this plugin using command line
npm install ep_ldapauth
or installing it using the admin/plugin interface
Nevertheless I made it running and working. :) Here is what I did. Make sure you have git installed.
got to the folder where you installed etherpad-lite cd node_modules git clone https://github.com/tykeal/ep_ldapauth ep_ldapauth mkdir ep_ldapauth/node_modules git clone https://github.com/mcavage/node-ldapjs ep_ldapauth/node_modules/ldapjs git clone https://github.com/Pita/async-stacktrace ep_ldapauth/node_modules/async-stacktrace mkdir ep_ldapauth/node_modules/ldapjs/node_modules git clone https://github.com/mcavage/node-asn1 ep_ldapauth/node_modules/ldapjs/node_modules/asn1 git clone https://github.com/mcavage/node-assert-plus ep_ldapauth/node_modules/ldapjs/node_modules/assert-plus git clone https://github.com/trentm/node-bunyan ep_ldapauth/node_modules/ldapjs/node_modules/bunyan git clone https://github.com/trentm/node-dashdash ep_ldapauth/node_modules/ldapjs/node_modules/dashdash git clone https://github.com/MathieuTurcotte/node-backoff ep_ldapauth/node_modules/ldapjs/node_modules/backoff git clone https://github.com/pfmooney/node-ldap-filter ep_ldapauth/node_modules/ldapjs/node_modules/ldap-filter git clone https://github.com/isaacs/once ep_ldapauth/node_modules/ldapjs/node_modules/once git clone https://github.com/davepacheco/node-vasync ep_ldapauth/node_modules/ldapjs/node_modules/vasync git clone https://github.com/davepacheco/node-verror ep_ldapauth/node_modules/ldapjs/node_modules/verror mkdir ep_ldapauth/node_modules/ldapjs/node_modules/backoff/node_modules git clone https://github.com/MathieuTurcotte/node-precond ep_ldapauth/node_modules/ldapjs/node_modules/backoff/node_modules/precond mkdir ep_ldapauth/node_modules/ldapjs/node_modules/dashdash/node_modules git clone https://github.com/mcavage/node-assert-plus ep_ldapauth/node_modules/ldapjs/node_modules/dashdash/node_modules/assert-plus mkdir ep_ldapauth/node_modules/ldapjs/node_modules/ldap-filter/node_modules git clone https://github.com/mcavage/node-assert-plus ep_ldapauth/node_modules/ldapjs/node_modules/ldap-filter/node_modules/assert-plus mkdir ep_ldapauth/node_modules/ldapjs/node_modules/once/node_modules git clone https://github.com/npm/wrappy ep_ldapauth/node_modules/ldapjs/node_modules/once/node_modules/wrappy mkdir ep_ldapauth/node_modules/ldapjs/node_modules/vasync/node_modules git clone https://github.com/davepacheco/node-verror ep_ldapauth/node_modules/ldapjs/node_modules/vasync/node_modules/verror mkdir ep_ldapauth/node_modules/ldapjs/node_modules/vasync/node_modules/verror/node_modules git clone https://github.com/davepacheco/node-extsprintf ep_ldapauth/node_modules/ldapjs/node_modules/vasync/node_modules/verror/node_modules/extsprintf mkdir ep_ldapauth/node_modules/ldapjs/node_modules/verror/node_modules git clone https://github.com/davepacheco/node-extsprintf ep_ldapauth/node_modules/ldapjs/node_modules/verror/node_modules/extsprintf
Maybe you need to adjust the user access rights to the files afterwards. With me it was
chown -R etherpad:etherpad .
Then just restart the etherpad-server and it should work.
bin/run.sh
I hope that helps. :)
@froiloc since it sounds like the dependencies just need to be updated, if you could submit a patch that updates the dependencies appropriately I would be more than happy to merge it. Heck, I'll likely bump the version and release a new package if you do (provided I can remember how to ;) )
@tykeal Hi, the problem are not the dependecies of your ep_ldapauth project. It's the dependencies of the modules your project uses. So I'm not quite sure a patch of your project would make any difference. :(
I'm afraid the only feasible solution right now is to install the ldapjs in the manner I proposed. Until ldapjs is repacked properly for the usage with npm.
Sorry, that I cannot be of any help in this matter.
Ah, I didn't realize that. As I've mentioned, I don't really work much on this as it isn't a high priority to me, part of the reason this is on GitHub, I hope / expect folks that care to actually contribute some because, frankly I don't care enough outside of, is it secure, and does it deal with my use case ;)
The latest ldapjs release (0.7.1) will install,but doesn't work. My work around was to do the following:
npm install https://github.com/tykeal/ep_ldapauth.git\#ecf6e5490ea2e22e59cc70d18879c5a7942ce6a1
cd node_modules/ep_ldapauth
npm install https://github.com/mcavage/node-ldapjs.git\#acc1ca8f4314fd9d67561feabc8ce4c235076a5e
This should be resolved with the latest release of the module (v0.3.0)
Hello I ve tried to install it on an etherpad install and after running npm install ep_ldapauth I got this error: Any idea what could be? I am not very used to npm. Thanks
npm ERR! Linux 3.10.0-229.1.2.el7.x86_64 npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "ep_ldapauth" npm ERR! node v0.12.4 npm ERR! npm v2.10.1 npm ERR! code ELIFECYCLE
npm ERR! buffertools@1.1.0 install:
node-gyp rebuild
npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the buffertools@1.1.0 install script 'node-gyp rebuild'. npm ERR! This is most likely a problem with the buffertools 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 buffertools npm ERR! There is likely additional logging output above.npm ERR! Please include the following file with any support request: npm ERR! /root/etherpad-lite/npm-debug.log