Meituan-Dianping / Meituan-Dianping/DBProxy
运行 msql-proxy 报 GLib version too old 错误
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 2.3k
- Forks
- 554
- PR merge metrics
- No merged PRs in 30d
Description
./mysql-proxy
** (process:6014): CRITICAL **: chassis-frontend.c:79(chassis_frontend_init_glib)GLib version too old (micro mismatch), got: lib=2.40.2, headers=2.42.0
glib-2.42 是按照用户手册中的安装方式安装的
试过 修改 bootstrap.sh 为
#!/bin/sh
base=$(cd "$(dirname "$0")"; pwd)
cd $base
GLIB_CFLAGS="-I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include" \
GLIB_LIBS="-L/usr/local/lib -lglib-2.0" \
GMODULE_CFLAGS="-pthread -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include" \
GMODULE_LIBS="-L/usr/local/lib -Wl,--export-dynamic -lgmodule-2.0 -pthread -lrt" \
GTHREAD_CFLAGS="-pthread -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include" \
GTHREAD_LIBS="-L/usr/local/lib -lgthread-2.0 -pthread -lrt" \
./configure --prefix=/usr/local/mysql-proxy CFLAGS="-g -O0"
也不行。
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the error from ./mysql-proxy and inspect the GLib version check reported at chassis-frontend.c:79. Review bootstrap.sh and the attempted GLIB_CFLAGS, GLIB_LIBS, GMODULE_* and GTHREAD_* settings; done means the proxy builds and starts without the reported library/header version mismatch.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- databases
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100