Problem with install MySQL-Proxy 0.8.1 on CentOs 5.7

Asked by King™ on 2011-10-04

Hi all,

when a build MySQL 0.8.1 from source code on centos 5.7 (final), i get a below problem

1.--> ./configure LDFLAGS="-lm -ldl" LUA_CFLAGS="-I/usr/local/include/" LUA_LIBS=/usr/local/lib/liblua.a --> it normal
2 --> make and it show

[root@lb1 mysql-proxy-0.8.1]# make
make all-recursive
make[1]: Entering directory `/root/mysql-proxy-0.8.1'
Making all in cmake
make[2]: Entering directory `/root/mysql-proxy-0.8.1/cmake'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/root/mysql-proxy-0.8.1/cmake'
Making all in src
make[2]: Entering directory `/root/mysql-proxy-0.8.1/src'
make all-am
make[3]: Entering directory `/root/mysql-proxy-0.8.1/src'
/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I/us r/include/mysql -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -g -O2 -MT libmysql_chassis_glibext_la-glib-ext.lo -MD -MP -MF .deps/libmysql_chassis_glib ext_la-glib-ext.Tpo -c -o libmysql_chassis_glibext_la-glib-ext.lo `test -f 'glib -ext.c' || echo './'`glib-ext.c
../libtool: line 813: X--tag=CC: command not found
../libtool: line 846: libtool: ignoring unknown tag : command not found
../libtool: line 813: X--mode=compile: command not found
../libtool: line 979: *** Warning: inferring the mode of operation is deprecated .: command not found
../libtool: line 980: *** Future versions of Libtool will require --mode=MODE be specified.: command not found
../libtool: line 1123: Xgcc: command not found
../libtool: line 1123: X-DHAVE_CONFIG_H: command not found
../libtool: line 1123: X-I.: command not found
../libtool: line 1123: X-I..: command not found
../libtool: line 1123: X-I/usr/include/mysql: No such file or directory
../libtool: line 1123: X-I/usr/local/include/glib-2.0: No such file or directory
../libtool: line 1123: X-I/usr/local/lib/glib-2.0/include: No such file or direc tory
../libtool: line 1123: X-I/usr/local/include/glib-2.0: No such file or directory
../libtool: line 1123: X-I/usr/local/lib/glib-2.0/include: No such file or direc tory
../libtool: line 1123: X-g: command not found
../libtool: line 1123: X-O2: command not found
../libtool: line 1123: X-MT: command not found
../libtool: line 1123: Xlibmysql_chassis_glibext_la-glib-ext.lo: command not fou nd
../libtool: line 1123: X-MD: command not found
../libtool: line 1123: X-MP: command not found
../libtool: line 1123: X-MF: command not found
../libtool: line 1123: X.deps/libmysql_chassis_glibext_la-glib-ext.Tpo: No such file or directory
../libtool: line 1123: X-c: command not found
../libtool: line 1175: Xlibmysql_chassis_glibext_la-glib-ext.lo: command not fou nd
../libtool: line 1180: libtool: compile: cannot determine name of library object from `': command not found
make[3]: *** [libmysql_chassis_glibext_la-glib-ext.lo] Error 1
make[3]: Leaving directory `/root/mysql-proxy-0.8.1/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/root/mysql-proxy-0.8.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/mysql-proxy-0.8.1'
make: *** [all] Error 2

I very tired, day by day and not solution for my problem....

Please help me

Thanks you

Question information

Language:
English Edit question
Status:
Solved
For:
MySQL Proxy Edit question
Assignee:
No assignee Edit question
Solved by:
Jan Kneschke
Solved:
2012-02-17
Last query:
2012-02-17
Last reply:
2011-10-04
Best Jan Kneschke (jan-kneschke) said : #1

Am 04.10.2011 um 19:15 schrieb Nguyen Hoang Anh Tuan:

> Question #173226 on MySQL Proxy changed:
> https://answers.launchpad.net/mysql-proxy/+question/173226
>
> Description changed to:
> Hi all,
>
> when a build MySQL 0.8.1 from source code on centos 5.7 (final), i get a
> below problem
>
> 1.--> ./configure LDFLAGS="-lm -ldl" LUA_CFLAGS="-I/usr/local/include/" LUA_LIBS=/usr/local/lib/liblua.a --> it normal
> 2 --> make and it show

Did you ran "autogen.sh", or "libtoolize", or something like that in the source tree?

> [...]
> make all-am
> make[3]: Entering directory `/root/mysql-proxy-0.8.1/src'
> /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I/us r/include/mysql -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -g -O2 -MT libmysql_chassis_glibext_la-glib-ext.lo -MD -MP -MF .deps/libmysql_chassis_glib ext_la-glib-ext.Tpo -c -o libmysql_chassis_glibext_la-glib-ext.lo `test -f 'glib -ext.c' || echo './'`glib-ext.c
> ../libtool: line 813: X--tag=CC: command not found
> ../libtool: line 846: libtool: ignoring unknown tag : command not found

Can you please run:

$ ./libtool --version

in the srcdir?

These error-msg usually appear from incompatibilities between libtool-1.x and libtool-2.x.

regards,
  Jan

King™ (mr-kingcasino) said : #2

Ok, i am rebuild and it Ok..

Many Thanks jan-kneschke

King™ (mr-kingcasino) said : #3

Thanks Jan Kneschke, that solved my question.