【问题标题】:Where to get liber.h file/package for Lua?哪里可以得到 Lua 的 liber.h 文件/包?
【发布时间】: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 工作!谢谢!如果您将其放在答案中,我可以为其他有此问题的人标记它

标签: lua luarocks


【解决方案1】:

lber.h 不是特定于 Lua 的文件,而是需要安装在系统上才能编译 lualdap 岩石的库的一部分。

在类似 Ubuntu 的系统上,您可以通过以下方式安装它:

sudo apt-get install libldap2-dev

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2010-12-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多