mysql-proxy编译安装

1、需要以下软件
lua-5.1.4.tar.gz
glib-2.6.0.tar.gz              
libevent-1.4.14b-stable.tar.gz
mysql-proxy-0.6.0.tar.gz
mysql-5.1.45.tar.gz

2、安装lua
tar xzvf lua-5.1.4.tar.gz
cd lua-5.1.4
make linux INSTALL_TOP= /usr/local/lua
make install

3、安装glib
tar xzvf glib-2.6.0.tar.gz
cd xzvf glib-2.6.0
./configure --prefix=/usr/local/glib
make&&make install
echo "/usr/local/glib/lib" >> /etc/ld.so.conf
ldconfig


4、安装libevent
tar xzvf libevent-1.4.14b-stable.tar.gz
cd libevent-1.4.14b
./configure&&make&&make install

5、mysql安装略。。

6、安装mysql-proxy
tar xzvf mysql-proxy-0.6.0.tar.gz
cd mysql-proxy-0.6.0
LDFLAGS="-lm -ldl" GLIB_CFLAGS="-I/usr/local/glib/include/glib-2.0 -I/usr/local/glib/lib/glib-2.0/include" GLIB_LIBS=/usr/local/glib/lib/libglib-2.0.so LUA_CFLAGS="-I/usr/local/lua/lib" LUA_LIBS=/usr/local/lua/lib/liblua.a ./configure --prefix=/usr/local/proxy --with-mysql=/usr/local/mysql/bin/mysql_config
make
make install

 

你可能感兴趣的:(mysql,数据库,职场,休闲)