如何修复 Ubuntu ./configure error: lua not found

问题:

当你尝试构建某些软件时运行 ./configure,你看到类似这样的错误消息

configure_error.txt
checking for lua >= 5.1... no
configure: error: lua not found

解决方案

安装包含开发文件的最新 Lua 版本。首先尝试:

install_liblua.sh
sudo apt -y install liblua5.4-dev

如果找不到该包,尝试

install_liblua_5_3.sh
sudo apt -y install liblua5.3-dev

并继续尝试 liblua5.2-devliblua5.1-devliblua5.0-dev。哪个版本可行取决于你的 Ubuntu 版本。


Check out similar posts by category: Linux