MySQL主从同步、读写分离配置步骤、问题解决(三)

2014-11-24 14:29:42 · 作者: · 浏览: 5
fix.

Alternatively, you may set the environment variables GLIB_CFLAGS

and GLIB_LIBS to avoid the need to call pkg-config.

See the pkg-config man page for more details.

解决办法:

1、查看系统已经安装glib的rpm包;

glibc-2.5-49.el5_5.4

glibc-headers-2.5-49.el5_5.4

glib2-2.12.3-4.el5_3.1

glibc-common-2.5-49.el5_5.4

glibc-devel-2.5-49.el5_5.4

2、下载安装glib-2.18.4.tar.gz

4、刚开始使用系统里rpm所指定的mysq_config时,mysql-proxy安装报错,信息如下;

configure: error: mysql_config not exists or not executable, use $ ./configure --with-mysql=/path/to/mysql_config

看到帮助安装文档里要求如下:

--with-mysql[=PATH] Include MySQL support. PATH is the path to 'mysql_config'。

解决办法就是:安装包中的第6步。