无法将mysql-proxy编译为rpm包。

我正在尝试将mysql-proxy-0.8.4.tar.gz编译打包成rpm包。我按照构建的说明进行了操作:

[root@localhost mysql-proxy]# rpmbuild -ta --clean mysql-proxy-0.8.4.tar.gz

我遇到了以下错误:

checking which pkg-config file to use to find Lua... configure: error: MySQL Proxy can't be built using --without-lua, lua 5.1 is required
error: Bad exit status from /var/tmp/rpm-tmp.r6iTWn (%build)

RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.r6iTWn (%build)

我检查了我的构建机器,我有所有的构建依赖项,并且我可以看到pkg-config列出了lua库

[root@localhost mysql-proxy]# pkg-config --list-all | less
lua                        Lua - An Extensible Extension Language

请问我缺少了什么?

点赞
用户258523
用户258523

那个错误提示你在构建软件包时可能需要传递 --with-lua 参数给 rpmbuild 命令。

正如 @hjpotter92 所说,你还需安装 lua-devel 包以及 lua 包。

尝试先安装它,然后再运行你的命令,看看错误是否改变。

2014-07-09 18:35:11