NodeJS npm安装LDAP客户端错误代码1

时间:2019-03-16 03:33:37

标签: node.js ldap openldap ldap-client

安装openldap-devel后,我的错误仍然存​​在。

我正在Linux 3.10.0-514.6.1.el7.x86_64上运行。对于我来说,使用npm install安装ldap-client软件包是一个很大的障碍。有人可以帮我吗?我无法使用libldap2-dev在Linux上安装yum。但是我已经成功安装了这两个软件包:sudo yum install python-develsudo yum install openldap-devel。看来apt-get仅适用于Debian / Ubuntu,用于安装libldap2-dev。我的想法已经用完了,花了我更长的时间来部署系统。

ldap-client@3.1.3 install Project/node_modules/ldap-client
node-gyp rebuild
make: Entering directory /home/Workspace/slack-weare/node_modules/ldap- 
client/build' CXX(target) Release/obj.target/LDAPCnx/LDAP.o In file 
included from ../LDAP.cc:2:0: ../LDAPCnx.h:5:18: fatal error: ldap.h: 
No such file or directory compilation terminated. make: *** 
[Release/obj.target/LDAPCnx/LDAP.o] Error 1

我做了一些功课。

https://github.com/linkedin/oncall/issues/130

https://github.com/digicoop/kaiwa/issues/4

https://github.com/kvspb/nginx-auth-ldap/issues/5

https://github.com/kvspb/nginx-auth-ldap/issues/156

https://github.com/kvspb/nginx-auth-ldap/issues/48

0 个答案:

没有答案