Bug #58888 mysql-proxy hardcodes /usr/lib for plugin location on 64bit platform
Submitted: 12 Dec 2010 14:43 Modified: 16 Dec 2010 0:07
Reporter: Ruben Kerkhof Email Updates:
Status: Verified Impact on me:
Category:MySQL Proxy Severity:S3 (Non-critical)
Version:0.8.1 OS:Linux
Assigned to: CPU Architecture:Any
Triage: Needs Triage: D3 (Medium)

[12 Dec 2010 14:43] Ruben Kerkhof
mysql-proxy is searching for lua plugins in /usr/lib/mysql-proxy/lua, but installing them in /usr/lib64/mysql-proxy/lua

On a 64-bit platform, it would be nice if it searched in /usr/lib64/mysql-proxy/lua instead.

How to repeat:
Compile mysql-proxy:
./configure --build=x86_64-unknown-linux-gnu --host=x86_64-unknown-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info

Start it:
[ruben@vm 1.fc15]$ sudo mysql-proxy
2010-12-12 15:41:03: (critical) loading module '/usr/lib/mysql-proxy/plugins/libadmin.so' failed: /usr/lib/mysql-proxy/plugins/libadmin.so: cannot open shared object file: No such file or directory
2010-12-12 15:41:03: (critical) setting --plugin-dir=<dir> might help
[16 Dec 2010 0:07] Sveta Smirnova
Thank you for the report.

Verified as described.