mysql装不上
我的系统是magic 1.1 final,mysql是tool盘里自带的src.rpm,版本4.0.12,同一目录下还有myodbc和mysqlcc两个东东,在编译mysql时出现以下出错信息:depmode=gcc3 /bin/sh ../depcomp \
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I./../include -I../include -O3 -DDBUG_OFF -O2 -g -march=i686-c `test -f sort.c || echo './'`sort.c
/bin/sh ../libtool --mode=link gcc-O3 -DDBUG_OFF -O2 -g -march=i686 -rdynamic-o isamchkisamchk.o sort.o libnisam.a ../mysys/libmysys.a ../dbug/libdbug.a ../strings/libmystrings.a -lpthread -lz -lcrypt -lnsl -lm-lpthread
mkdir .libs
gcc -O3 -DDBUG_OFF -O2 -g -march=i686 -rdynamic -o isamchk isamchk.o sort.olibnisam.a ../mysys/libmysys.a ../dbug/libdbug.a ../strings/libmystrings.a -lpthread -lz -lcrypt -lnsl -lm -lpthread
../mysys/libmysys.a(my_tempnam.o)(.text+0x50): In function `my_tempnam':
/usr/src/redhat/BUILD/mysql-4.0.12/mysys/my_tempnam.c:128: the use of `tempnam' is dangerous, better use `mkstemp'
../mysys/libmysys.a(raid.o)(.text+0x95): In function `my_raid_create':
/usr/src/redhat/BUILD/mysql-4.0.12/mysys/raid.cc:119: undefined reference to `operator new(unsigned)'
../mysys/libmysys.a(raid.o)(.text+0x11f):/usr/src/redhat/BUILD/mysql-4.0.12/mysys/raid.cc:130: undefined reference to `operator delete(void*)'
../mysys/libmysys.a(raid.o)(.text+0x175): In function `my_raid_open':
/usr/src/redhat/BUILD/mysql-4.0.12/mysys/raid.cc:141: undefined reference to `operator new(unsigned)'
../mysys/libmysys.a(raid.o)(.text+0x1fc):/usr/src/redhat/BUILD/mysql-4.0.12/mysys/raid.cc:152: undefined reference to `operator delete(void*)'
../mysys/libmysys.a(raid.o)(.text+0x715): In function `my_raid_close':
/usr/src/redhat/BUILD/mysql-4.0.12/mysys/raid.cc:277: undefined reference to `operator delete(void*)'
collect2: ld returned 1 exit status
make: *** Error 1
make: Leaving directory `/usr/src/redhat/BUILD/mysql-4.0.12/isam'
make: *** Error 1
make: Leaving directory `/usr/src/redhat/BUILD/mysql-4.0.12'
make: *** Error 2
error: Bad exit status from /var/tmp/rpm-tmp.93663 (%build)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.93663 (%build)
各位老大帮帮忙,我现在急需架一个数据库,非常需要一个好用的mysql,最好是src.rpm的。 你可以去下载他的源码版本,然后编译,我用的是1.2pre4,用源码安装没有问题!看截图:
$ ps -ax |grep mysql
1189 ? S 0:00 /bin/sh /usr/local/mysql/bin/mysqld_safe --user=mysql
1213 ? S 0:00 /usr/local/mysql/libexec/mysqld --basedir=/usr/local/mysql --datadir=/usr/local/mysql/var --user=mysql --pid-file=/usr/local/mysql/var/MagicLinux.pid --skip-locking
4009 pts/3 S 0:00 grep mysql
$ src.rpm就是源代码的……
不过用redhat的src.rpm不一定能够编译通过的,建议你从我的FTP上面下载for 1.2的mysql服务器试试看
ftp://yjz.kmip.net/Tools/server/mysql 我说的不是src.rpm源码包,我也曾编译过mysql的src.rpm,但是安装不上,我说的源码包是指mysql-4.0.16.tar.gz:) src.rpm里面解开来就有tar.gz的,understand?
如果你运行rpm -ivh xxx.src.rpm就可以在/usr/src/redhat/BUILD下面看到了。
页:
[1]