Compile mysql-proxy 0.6.0

Source: Internet
Author: User

I compiled mysql-proxy 0.6.0 in centos 5.0.

MySQL 5.1.22 RC has been installed before.

To compile mysql-proxy 0.6.0, Lua 5.1 and glib 2.6.0 or later versions are required.

Centos 5 does not have a Lua package. Download The Lua 5.1.2 source code, decompress the package, and run make Linux install.

However, if the./configure file cannot find the Lua database under mysql-proxy, You have to manually add the lua_cflags and lua_libs parameters as follows:

Lua_cflags = "-I/usr/local/include "/
Lua_libs = "-l/usr/local/lib-llua-LDL "/
Ldflags = "-lm "/
./Configure -- prefix =/usr/local/MySQL-proxy

Then make; make install

Done!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.