MySQL Proxy on RHEL5

Just a little timesaver; When attempting to install mysql proxy on RHEL5, you will most likely soon be staring at this message:

...
checking for LUA... checking for LUA... configure: error: Package requirements (lua5.1 >= 5.1) were not met:

No package 'lua5.1' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables LUA_CFLAGS
and LUA_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

First thing you do is: yum install lua-devel, but sadly, RHEL5 ships with LUA 5.0, and the latest release of mysql proxy requires LUA 5.1. Luckily there are RPMs around which works perfectly fine unless you absolutely want to compile from source. RPMs can be found here.

Once LUA is installed, you’ll also need libevent which is a straight forward compile.

About Erik Ljungstrom

I'm Erik Ljungstrom and I work in a datacenter as a technical team leader. In this blog I will mostly jot down things I consider noteworthy things I encounter in my work. For more information, please see http://northernmost.org
This entry was posted in MySQL and tagged , , , . Bookmark the permalink.

5 Responses to MySQL Proxy on RHEL5

  1. Jonathan says:

    Cheers for that – appreciated.

  2. Jonathan says:

    FYI If you’re just looking at mysql-proxy for load balancing / failover purposes, and don’t need lua scripting, you can ./configure –without-lua …

  3. admin says:

    Yes, this is true. Should’ve mentioned that! Thanks for the comment!

  4. Daniel says:

    Latest MySQL proxy requires lua 5.1 regardless of –without-lua argument:

    checking if with lua… configure: error: MySQL Proxy can’t be built using –without-lua, lua 5.1 is required

    Just fyi :)

  5. Sk says:

    i have installed all the rpm’s but still getting these erros

    checking for LUA… no
    checking for LUA… configure: error: Package requirements (lua5.1 >= 5.1) were not met:

    No package ‘lua5.1′ found

    Consider adjusting the PKG_CONFIG_PATH environment variable if you
    installed software in a non-standard prefix.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>