Chinaunix首页 | 论坛 | 博客
  • 博客访问: 959349
  • 博文数量: 245
  • 博客积分: 11429
  • 博客等级: 上将
  • 技术积分: 2662
  • 用 户 组: 普通用户
  • 注册时间: 2009-08-15 00:16
文章存档

2011年(56)

2010年(174)

2009年(15)

分类: LINUX

2011-04-27 17:15:08

安装mysql-proxy 错误集锦

1.
checking pkg-config is at least version 0.9.0... yes
checking for LUA... yes
checking for GLIB... configure: error: Package requirements (glib-2.0 >= 2.16.0) were not met:

Requested 'glib-2.0 >= 2.16.0' but version of GLib is 2.12.3

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

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.
解决
   下载glib2.2以上的
wget
make && make install
设置环境变量
 1147  export GLIB_CFLAGS="-I/usr/local/glib2/include/glib-2.0"
 1148  export GLIB_LIBS="-L/usr/local/glib2/lib/glib-2.0"
 1149  export GMODULE_CFLAGS="-I/usr/local/glib2/include"
 1150  export GMODULE_LIBS="-L/usr/local/glib2/lib"
 1151  export GTHREAD_CFLAGS="-I/usr/local/glib2/include"
 1152  export GTHREAD_LIBS="-L/usr/local/glib2/lib"
重新编译就ok
2

    checking for LUA... no

    ... checked for Lua via pkg-config: No package 'lua' found. retrying with lua5.1

看错误信息是说找不到lua包。

解决方案:

 参数1.2步骤中所示,编译安装lua;

 设置环境变量:

    export LUA_CFLAGS="-I/usr/local/lua/include"

    export LUA_LIBS="-L/usr/local/lua/lib -llua -ldl"

注意变量中的路径应为lua实际安装路径,而后重新执行configure配置编译程序。

3
lib-ext.c:186: error: expected ?.?. ?.?.or ?.?.before ?.?.token
glib-ext.c:205: error: old-style parameter declarations in prototyped function definition
glib-ext.c:205: error: expected ?.?.at end of input
make[3]: *** [libmysql_chassis_la-glib-ext.lo] Error 1
make[3]: Leaving directory `/opt/mysql-proxy/mysql-proxy-0.7.1/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/opt/mysql-proxy/mysql-proxy-0.7.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/mysql-proxy/mysql-proxy-0.7.1'
make: *** [all] Error 2

wget ftp://ftp.pbone.net/mirror/ftp.trustix.com/pub/trustix/updates/2.2/rpms/glib-2.2.3-4tr.i586.rpm
wget ftp://ftp.isu.edu.tw/pub/Linux/Trustix/releases/trustix-2.2/i586/trustix/rpms/glib-devel-2.2.3-4tr.i586.rpm


阅读(3878) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~