All things Sysadmin
Just another manic Monday

MySQL Proxy on RHEL5

April 10th, 2008 by Erik Ljungstrom

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.

Posted in MySQL

5 Responses

  1. Jonathan

    Cheers for that – appreciated.

  2. Jonathan

    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

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

  4. Daniel

    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

    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 Comment

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.