HandlerSocket-Plugin-for-MySQL icon indicating copy to clipboard operation
HandlerSocket-Plugin-for-MySQL copied to clipboard

not compile with mysql 5.5.9 (from ports) on Freebsd

Open sunra opened this issue 14 years ago • 6 comments

checking mysql source... cat: /usr/ports/databases/mysql55-server/work/mysql-5.5.9/configure.in: No such file or directory yes: Using /usr/ports/databases/mysql55-server/work/mysql-5.5.9, version checking mysql binary... yes: Using /usr/local/bin, version 5.5.9 basename: illegal option -- L usage: basename string [suffix] basename [-a] [-s suffix] string [...] configure: error: MySQL source version does not match MySQL binary version

sunra avatar Mar 01 '11 16:03 sunra

event not pass configure process

sunra avatar Mar 01 '11 16:03 sunra

accidentally closed it

sunra avatar Mar 01 '11 18:03 sunra

your mysql-server is't the same with mysql-src

wuwx avatar Apr 13 '11 13:04 wuwx

OpenSUSE 11.4 x32

I have same issue with mysql 5.5.11 ( which is using cmake ) and HandlerSocket 0883316.

Mysql source folder doesn't contain configure.in file after I do:

cmake . make make install DESTDIR="/usr/local/mysql-5.5.11"

configure.in file does not exist at all :( I guess they use a new building system and this file no longer exist:

... ... checking if g++ supports -c -o file.o... (cached) yes checking whether the g++ linker (/usr/i686-pc-linux-gnu/bin/ld) supports shared libraries... yes checking dynamic linker characteristics... (cached) GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking mysql source... cat: /root/src/mysql-5.5.11/configure.in: No such file or directory yes: Using /root/src/mysql-5.5.11, version checking mysql binary... yes: Using /usr/local/mysql-5.5.11/usr/local/mysql/bin, version 5.5.11 basename: invalid option -- 'L' Try `basename --help' for more information. configure: error: MySQL source version does not match MySQL binary version

tserver ahiguti-HandlerSocket-Plugin-for-MySQL-0883316 # ./configure --with-mysql-source=/root/src/mysql-5.5.11 --with-mysql-bindir=/usr/local/mysql-5.5.11/usr/local/mysql/bin

kutovoy avatar Apr 19 '11 14:04 kutovoy

"your mysql-server is't the same with mysql-src"

of course it same!. i testet it ! :)

do you complile handler socket with mysql version >= 5.5.9 ? seems to be - something changed deeply in mysql distribution from earlier versions..

sunra avatar Apr 21 '11 17:04 sunra

You can try to make the changes below on file 'configure'

diff configure.orig configure 14286,14288c14286,14288 < if test abasename $LIB_DIR = amysql ; then < MYSQL_LIB="-Ldirname $LIB_DIR $MYSQL_LIB"

< fi

  #if test a`basename $LIB_DIR` = amysql ; then
  #  MYSQL_LIB="-L`dirname $LIB_DIR` $MYSQL_LIB"
  #fi

14297,14299c14297,14299 < if test a$MYSQL_SOURCE_VERSION != a$MYSQL_BIN_VERSION ; then < as_fn_error "MySQL source version does not match MySQL binary version" "$LINENO" 5

< fi

if test a$MYSQL_SOURCE_VERSION != a$MYSQL_BIN_VERSION ; then

as_fn_error "MySQL source version does not match MySQL binary version" "$LINENO" 5

fi

liaoyurong avatar Jul 04 '11 02:07 liaoyurong