gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-11-30 00:04:53 25 4
gpt4 key购买 nike

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

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

最佳答案

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

正如 @hjpotter92 所说,您可能需要安装 lua-devel 软件包才能与 lua 软件包一起安装。

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

关于mysql - 无法将 mysql-proxy 编译为 rpm,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24661153/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com