lua - 配置:错误:找不到 lua-libs
问题描述
我有一个liblua5.2-dev
手动安装的 Raspbian 发行版:
sudo apt-get install lua5.2 liblua5.2-dev liblua50-dev liblualib50-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
liblua5.2-dev is already the newest version.
lua5.2 is already the newest version.
The following extra packages will be installed:
liblua50 liblualib50 lua50
The following NEW packages will be installed:
liblua50 liblua50-dev liblualib50 liblualib50-dev lua50
0 upgraded, 5 newly installed, 0 to remove and 11 not upgraded.
Need to get 194 kB of archives.
After this operation, 413 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://mirrordirector.raspbian.org/raspbian/ jessie/main liblua50 armhf 5.0.3-7 [45.3 kB]
Get:2 http://mirrordirector.raspbian.org/raspbian/ jessie/main liblualib50 armhf 5.0.3-7 [31.0 kB]
Get:3 http://mirrordirector.raspbian.org/raspbian/ jessie/main lua50 armhf 5.0.3-7 [25.7 kB]
Get:4 http://mirrordirector.raspbian.org/raspbian/ jessie/main liblua50-dev armhf 5.0.3-7 [55.4 kB]
Get:5 http://mirrordirector.raspbian.org/raspbian/ jessie/main liblualib50-dev armhf 5.0.3-7 [36.2 kB]
Fetched 194 kB in 2s (87.6 kB/s)
Selecting previously unselected package liblua50.
(Reading database ... 119455 files and directories currently installed.)
Preparing to unpack .../liblua50_5.0.3-7_armhf.deb ...
Unpacking liblua50 (5.0.3-7) ...
Selecting previously unselected package liblualib50.
Preparing to unpack .../liblualib50_5.0.3-7_armhf.deb ...
Unpacking liblualib50 (5.0.3-7) ...
Selecting previously unselected package lua50.
Preparing to unpack .../lua50_5.0.3-7_armhf.deb ...
Unpacking lua50 (5.0.3-7) ...
Selecting previously unselected package liblua50-dev.
Preparing to unpack .../liblua50-dev_5.0.3-7_armhf.deb ...
Unpacking liblua50-dev (5.0.3-7) ...
Selecting previously unselected package liblualib50-dev.
Preparing to unpack .../liblualib50-dev_5.0.3-7_armhf.deb ...
Unpacking liblualib50-dev (5.0.3-7) ...
Processing triggers for man-db (2.7.5-1~bpo8+1) ...
Setting up liblua50 (5.0.3-7) ...
Setting up liblualib50 (5.0.3-7) ...
Setting up lua50 (5.0.3-7) ...
Setting up liblua50-dev (5.0.3-7) ...
update-alternatives: using /usr/bin/lua-config50 to provide /usr/bin/lua-config (lua-configuration) in auto mode
Setting up liblualib50-dev (5.0.3-7) ...
Processing triggers for libc-bin (2.19-18+deb8u10) ...
当我检查时Lua
:
Lua 5.2.3 Copyright (C) 1994-2013 Lua.org. PUC-Rio
我正在尝试编译Janus,但无法Gnu Make (4.0)
在没有错误的情况下完成配置(从 Janus 目录中):
...
checking for usrsctp_finish in -lusrsctp... no
checking for LIBCURL... yes
checking for doxygen... no
checking for dot... no
checking for gengetopt... yes
checking for TRANSPORTS... yes
checking for MHD... yes
checking for lws_create_vhost in -lwebsockets... no
checking for amqp_error_string2 in -lrabbitmq... no
checking for MQTTAsync_create in -lpaho-mqtt3a... no
checking for nn_socket in -lnanomsg... no
checking for PLUGINS... yes
checking for SOFIA... yes
checking for LIBRE... no
checking for LIBRE... no
checking for OPUS... yes
checking for OGG... yes
checking for LUA... no
checking for LUA... no
configure: error: lua-libs not found. See README.md for installation instructions or use --disable-plugin-lua
我已经阅读了 README.md,其中没有提到 Lua。
我已经查看了有关该主题的许多帖子,但没有解决问题:
- 没有找到包'lua',但我已经安装了它
- https://github.com/simoncozens/sile/issues/296
- Raspbian 是一个 Debian 发行版,所以我认为这可能会有所帮助。
所有人都假设缺少标题,但没有一个具体指出如何获取标题 - 只建议安装开发包来获取它们,我已经这样做了。
是否缺少或设置错误的环境变量?我对此的理解缺少什么?
解决方案
查看Janus 源代码中的 configure.ac 文件,我发现当 PKG_CHECK_MODULES 对“lua”和“lua5.3”都失败时,会发生您看到的错误。没有检查“lua5.2”。
您可以安装 liblua5.3-dev,或修改 configure.ac 以查找 lua5.2。
推荐阅读
- css - vs code live sass 编译器不更新文件
- javascript - 提交突变后 QueryRenderer 不更新
- qt - 如何检测 qt 标签(或任何小部件)是否具有所需的所有空间?
- xaml - Xamarin.Forms:如何自动隐藏第一个 CollectionView
- java - 如何在scala中的for循环中应用继续并产生多个值?
- c++ - 将向量移动到 unordered_set
- r - 用插值替换缺失数据
- javascript - 我如何将日期从 appcomponent .ts 传递到对话框?
- c# - 如何从在多台笔记本电脑上运行的 WPF 应用程序访问白名单 Azure SQL db
- php - 如何在小部件后端创建表单并将其显示在小部件末尾的某个区域?