无法将mysql-proxy编译为rpm

时间:2014-07-09 18:22:51

标签: mysql lua mysql-proxy

我正在尝试编译并将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

有人能让我知道我错过了什么吗?

1 个答案:

答案 0 :(得分:0)

该错误告诉您在构建程序包时可能需要将--with-lua传递给rpmbuild。

正如@ hjpotter92所说,你也可能需要安装lua-devel软件包以配合lua软件包。

首先尝试安装,然后重新运行命令,看看错误是否发生了变化。