免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2396 | 回复: 2

[OpenBSD] OpenBSD支持mysql 5.1的ndb吗? [复制链接]

论坛徽章:
0
发表于 2009-12-30 15:55 |显示全部楼层
OpenBSD 4.6 支持mysql 5.1的ndb吗?
我用源码编译的时候报错,port上只有mysql 5.0.x,(我用gcc335和gcc424源码编译mysql 5.0.89正常),编译参数如下:

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 于 2009-12-30 21:57 编辑 ]

论坛徽章:
0
发表于 2010-01-04 10:49 |显示全部楼层

回复 #1 helpying 的帖子

已经解决:源码编译安装ncurses-5.7.tar.gz后再进行mysql的源码编译即可

论坛徽章:
0
发表于 2010-01-05 03:07 |显示全部楼层
经验贴,顶
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP