MySQL Forums
Forum List  »  Router & Proxy

trying to compile mysql-proxy from bzr
Posted by: erik landerholm
Date: June 20, 2009 10:33PM

Hi-
I followed the instructions on here:
http://bazaar.launchpad.net/~mysql-proxy-developers/mysql-proxy/trunk/annotate/head%3A/INSTALL

for ubuntu.

I have installed all the dependencies and using this command:
apt-get install \
pkg-config \
liblua5.1-0 \
liblua5.1-dev \
libevent-dev \
libevent1 \
libglib2.0-0 \
libglib2.0-dev \
libmysqlclient-dev

I configured mysql-proxy like this:
./configure --with-lua=lua5.1

The only thing I wasn't sure about what setting mysql_home in the path. This is what my path looks like:
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/lib/mysql

When I run make I get this error:
libtool: link: (cd ".libs" && rm -f "libmysql-proxy.so.0" && ln -s "libmysql-proxy.so.0.0.0" "libmysql-proxy.so.0")
libtool: link: (cd ".libs" && rm -f "libmysql-proxy.so" && ln -s "libmysql-proxy.so.0.0.0" "libmysql-proxy.so")
libtool: link: ( cd ".libs" && rm -f "libmysql-proxy.la" && ln -s "../libmysql-proxy.la" "libmysql-proxy.la" )
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/lua5.1 -I/usr/include/mysql -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DLUAEXTDIR="\"/usr/local/lib/mysql-proxy/lua\"" -DPLUGINDIR="\"/usr/local/lib/mysql-proxy/plugins\"" -g -O2 -MT mysql_binlog_dump-mysql-binlog-dump.o -MD -MP -MF ".deps/mysql_binlog_dump-mysql-binlog-dump.Tpo" -c -o mysql_binlog_dump-mysql-binlog-dump.o `test -f 'mysql-binlog-dump.c' || echo './'`mysql-binlog-dump.c; \
then mv -f ".deps/mysql_binlog_dump-mysql-binlog-dump.Tpo" ".deps/mysql_binlog_dump-mysql-binlog-dump.Po"; else rm -f ".deps/mysql_binlog_dump-mysql-binlog-dump.Tpo"; exit 1; fi
/bin/bash ../libtool --tag=CC --mode=link gcc -g -O2 -o mysql-binlog-dump mysql_binlog_dump-mysql-binlog-dump.o -lglib-2.0 -Wl,--export-dynamic -lgmodule-2.0 -lglib-2.0 libmysql-chassis.la -pthread -lgthread-2.0 -lrt -lglib-2.0 libmysql-proxy.la
libtool: link: gcc -g -O2 -o .libs/mysql-binlog-dump mysql_binlog_dump-mysql-binlog-dump.o -Wl,--export-dynamic -pthread ./.libs/libmysql-chassis.so ./.libs/libmysql-proxy.so /home/erik/mysql-proxy/src/.libs/libmysql-chassis.so -levent /usr/lib/liblua5.1.so -lm -ldl /usr/lib/libgmodule-2.0.so /usr/lib/libgthread-2.0.so -lrt /usr/lib/libglib-2.0.so -pthread
./.libs/libmysql-chassis.so: undefined reference to `evutil_make_socket_nonblocking'
./.libs/libmysql-chassis.so: undefined reference to `event_base_new'
collect2: ld returned 1 exit status
make[3]: *** [mysql-binlog-dump] Error 1
make[3]: Leaving directory `/home/erik/mysql-proxy/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/erik/mysql-proxy/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/erik/mysql-proxy'
make: *** [all] Error 2

Any help would be much obliged.
Thanks
Erik

Options: ReplyQuote


Subject
Views
Written By
Posted
trying to compile mysql-proxy from bzr
4972
June 20, 2009 10:33PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.