centos 5.2编译mysql时犯错
时间:2015-01-07 21:39 来源:linux.it.net.cn 作者:IT
make 信息
g++ -O3 -DDBUG_OFF -fno-implicit-templates -fno-exceptions -fno-rtti -rdynamic -o .libs/mysql mysql.o readline.o sql_string.o completion_hash.o /usr/lib/libncursesw.so.5 ../cmd-line-utils/libedit/libedit.a ../libmysql/.libs/libmysqlclient.so -lcrypt -lnsl -lm -lz -Wl,--rpath -Wl,/usr/lib64/mysql
/usr/lib/libncursesw.so.5: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make[2]: *** [mysql] Error 1
make[2]: Leaving directory `/service/www/mysql-5.0.62/client'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/service/www/mysql-5.0.62'
make: *** [all] Error 2
系统环境
centos 5.2 x86_64
./configure LDFLAGS=-L/usr/lib64 --prefix=/opt/mysql --with-named-curses-libs=/usr/lib/libncursesw.so.5 --with-charset=gb2312 --with-extra-charsets=all --with-unix-socket-path=/opt/mysql/var/mysql.sock<
解决方法
已经解决
答案是去掉 -with-named-curses-libs=/usr/lib/libncursesw.so.5
(责任编辑:IT)
make 信息
解决方法
(责任编辑:IT) |