【发布时间】:2020-07-07 04:23:54
【问题描述】:
我正在尝试使用 sudo luarocks install lualdap 通过 luarocks 安装 lualdap,但我很高兴
Installing https://luarocks.org/lualdap-1.2.4.rc1-0.src.rock
Error: Could not find header file for LBER
No file lber.h in /usr/local/include
You may have to install LBER in your system and/or pass LBER_DIR or LBER_INCDIR to the luarocks command.
Example: luarocks install lualdap LBER_DIR=/usr/local
注意事项:
- 我在 Lua 5.3 上。
- 我已经安装了 OpenSSL 和 HTTP。
- 我试过
LBER_DIR=/usr/local参数。
我四处寻找我需要下载什么摇滚文件才能获得这个 lber.h 文件,但我没有任何运气。我怎样才能得到这个 lber.h 文件?
【问题讨论】:
-
查看python类似问题的答案:stackoverflow.com/questions/4768446/…
-
呵呵,我以为那是专门为 Python 设计的... libsasl2-dev 无法找到,但 libldap2-dev 工作!谢谢!如果您将其放在答案中,我可以为其他有此问题的人标记它