Chinaunix

标题: OpenBSD 4.6 支持mysql 5.1的ndb吗? [打印本页]

作者: helpying    时间: 2010-01-03 09:47
标题: OpenBSD 4.6 支持mysql 5.1的ndb吗?
OpenBSD 4.6 支持mysql 5.1的ndb吗?
我用源码编译的时候报错,port上只有mysql 5.0.x,(我用gcc335和gcc424源码编译mysql 5.0.89正常,去掉nbd也正常),编译参数如下:

make clean;
CFLAGS="-O2" CXX=gcc CXXFLAGS="-O2"\
./configure --prefix=/w/mysqld51 --datadir=/w/mysqld51/var --sysconfdir=/w/mysqld51/etc \
--with-low-memory --enable-assembler --with-mysqld-user=mysql \
--with-plugins=max --without-libedit --with-readline --without-debug \
--enable-largefile --with-big-tables --with-extra-charsets=all \
--with-unix-socket-path=/w/mysqld51/var/mysql.sock --with-tcp-port=3307 \
--with-ndb-port=8800 --with-ndb-ccflags=CFLAGS;
gmake

错误如下:
libtool: compile:  g++ -DHAVE_CONFIG_H -DNDEBUG -I. -I../../../../../include -I. -I../../../../../include -I../../../../../storage/ndb/include -I../../../../../include -I../../../../../mysys -I../../../../../storage/ndb/include -I../../../../../storage/ndb/include/util -I../../../../../storage/ndb/include/portlib -I../../../../../storage/ndb/include/logger CFLAGS -O3 -fno-implicit-templates -fno-exceptions -fno-rtti -MT NdbTCP.lo -MD -MP -MF .deps/NdbTCP.Tpo -c NdbTCP.cpp  -fPIC -DPIC -o .libs/NdbTCP.o
g++: cannot specify -o with -c or -S and multiple compilations
gmake[5]: *** [NdbTCP.lo] Error 1
gmake[5]: Leaving directory `/w/tmp/mysql-5.1.41/storage/ndb/src/common/portlib'
gmake[4]: *** [all-recursive] Error 1


gmake[4]: Leaving directory `/w/tmp/mysql-5.1.41/storage/ndb/src/common'
gmake[3]: *** [all-recursive] Error 1
gmake[3]: Leaving directory `/w/tmp/mysql-5.1.41/storage/ndb/src'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/w/tmp/mysql-5.1.41/storage/ndb'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/w/tmp/mysql-5.1.41/storage'
gmake: *** [all-recursive] Error 1

而取消ndb后正常:
make clean;
CFLAGS="-O2" CXX=gcc CXXFLAGS="-O2"\
./configure --prefix=/w/mysqld51 --datadir=/w/mysqld51/var --sysconfdir=/w/mysqld51/etc \
--with-low-memory --enable-assembler --with-mysqld-user=mysql \
--with-plugins=max-no-ndb --without-libedit --with-readline --without-debug \
--enable-largefile --with-big-tables --with-extra-charsets=all \
--with-unix-socket-path=/w/mysqld51/var/mysql.sock --with-tcp-port=3307
gmake
作者: helpying    时间: 2010-01-04 10:47
标题: 回复 #1 helpying 的帖子
已经解决:源码编译安装ncurses-5.7.tar.gz后再进行mysql的源码编译即可




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2