Buildings Mysql-Proxy 0.6.0 On Centos 5.2
Mostly, follow this guy’s advice. This worked, but I had seem to have to make a few changes to have lua working. I’m not a big centos/rhel user so this advice should be followed only in the absence of greater clue, but it worked for me:
On the Mysql proxy step of the above guide, untar mysql proxy and move the archive to a new name:
tar xzf mysql-proxy-0.6.0.tar.gz
mv mysql-proxy-0.6.0.tar.gz mysql-proxy-0.6.0.tar.gz.0
Then edit the spec file, look for the line with %define with_lua 1, and delete the if and endif above and below it to set with_lua always on (I’m sure this is not the preferred way to do this).
vi mysql-proxy-0.6.0/mysql-proxy.spec
Next you have to tar it back up, and rpmbuild. Unfortunately, I had a lib problem, and a pkconfig problem, so I had to grab the lua pc file, and set a LD flag.
tar zcf mysql-proxy-0.6.0.tar.gz mysql-proxy-0.6.0
cp lua-5.1.4/etc/lua.pc /usr/lib/pkgconfig/
LDFLAGS=-ldl rpmbuild -ta mysql-proxy-0.6.0.tar.gz
Then install the rpm as described in the original guide
rpm -ivh ~/rpmbuild/RPMS/i386/mysql-proxy-0.6.0-0.i386.rpm
[...] bookmarks tagged proxy Buildings Mysql-Proxy 0.6.0 On Centos 5.2 saved by 1 others malonezone bookmarked on 10/31/08 | [...]
[...] http://www.gunfist.com/techy/2008/10/buildings-mysql-proxy-060-on-centos-52/ [...]
rpmbuild -ta –define ‘with_lua 1′ mysql-proxy-0.6.0.tar.gz
Aha, cheers!