简体   繁体   中英

Unable to compile mysql-proxy into an rpm

I am trying to compile and package mysql-proxy-0.8.4.tar.gz into rpm. I followed the instructions to build

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

I get this error

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)

I checked my build machine and I have all the build dependencies, I can see that pkg-config listing lua libraries

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

Could someone let me know what am I missing?

That error is telling you that you might need to pass --with-lua to rpmbuild when you build the package.

You also, as @hjpotter92 was getting at, likely need to install the lua-devel package to go along with the lua package.

Try installing that first and then re-running your command and see if the error changes.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM