免费注册 查看新帖 |

Chinaunix

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

求助rhel6.1安装mysql4.1.18编译错误 [复制链接]

论坛徽章:
0
发表于 2015-09-11 21:28 |显示全部楼层
rm -f libvio.a
ar cru libvio.a vio.o viosocket.o viossl.o viosslfactories.o
ranlib libvio.a
/bin/sh ../libtool --preserve-dup-deps --mode=link gcc  -DDBUG_OFF -O3 -m64    -rdynamic  -o test-ssl  test-ssl.o ../dbug/libdbug.a libvio.a ../mysys/libmysys.a ../strings/libmystrings.a  -lpthread -lcrypt -lnsl -lm  -lpthread
/bin/sh ../libtool --preserve-dup-deps --mode=link gcc  -DDBUG_OFF -O3 -m64    -rdynamic  -o test-sslclient  test-sslclient.o ../dbug/libdbug.a libvio.a ../mysys/libmysys.a ../strings/libmystrings.a  -lpthread -lcrypt -lnsl -lm  -lpthread
gcc -DDBUG_OFF -O3 -m64 -rdynamic -o test-ssl test-ssl.o  ../dbug/libdbug.a libvio.a ../mysys/libmysys.a ../strings/libmystrings.a -lpthread -lcrypt -lnsl -lm -lpthread
gcc -DDBUG_OFF -O3 -m64 -rdynamic -o test-sslclient test-sslclient.o  ../dbug/libdbug.a libvio.a ../mysys/libmysys.a ../strings/libmystrings.a -lpthread -lcrypt -lnsl -lm -lpthread
/bin/sh ../libtool --preserve-dup-deps --mode=link gcc  -DDBUG_OFF -O3 -m64    -rdynamic  -o test-sslserver  test-sslserver.o ../dbug/libdbug.a libvio.a ../mysys/libmysys.a ../strings/libmystrings.a  -lpthread -lcrypt -lnsl -lm  -lpthread
gcc -DDBUG_OFF -O3 -m64 -rdynamic -o test-sslserver test-sslserver.o  ../dbug/libdbug.a libvio.a ../mysys/libmysys.a ../strings/libmystrings.a -lpthread -lcrypt -lnsl -lm -lpthread
make[2]: Leaving directory `/root/tools/mysql-4.1.18/vio'
Making all in sql
make[2]: Entering directory `/root/tools/mysql-4.1.18/sql'
if gcc -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME="\"/usr/local/mysql\"" -DDATADIR="\"/usr/local/mysql/var\"" -DSHAREDIR="\"/usr/local/mysql/share/mysql\"" -DHAVE_CONFIG_H -I. -I. -I.. -I../innobase/include -I../include -I../include -I../regex -I.     -DDBUG_OFF -O3 -m64 -felide-constructors -fno-exceptions -fno-rtti   -fno-implicit-templates -fno-exceptions -fno-rtti -DUSE_MYSYS_NEW -DDEFINE_CXA_PURE_VIRTUAL -MT gen_lex_hash.o -MD -MP -MF ".deps/gen_lex_hash.Tpo" -c -o gen_lex_hash.o gen_lex_hash.cc; \
         then mv -f ".deps/gen_lex_hash.Tpo" ".deps/gen_lex_hash.Po"; else rm -f ".deps/gen_lex_hash.Tpo"; exit 1; fi
/bin/sh ../libtool --preserve-dup-deps --mode=link gcc  -DDBUG_OFF -O3 -m64 -felide-constructors -fno-exceptions -fno-rtti   -fno-implicit-templates -fno-exceptions -fno-rtti -DUSE_MYSYS_NEW -DDEFINE_CXA_PURE_VIRTUAL  -rdynamic  -o gen_lex_hash  gen_lex_hash.o ../myisam/libmyisam.a ../myisammrg/libmyisammrg.a ../heap/libheap.a ../vio/libvio.a ../mysys/libmysys.a ../dbug/libdbug.a ../regex/libregex.a ../strings/libmystrings.a -lz   -lpthread -lcrypt -lnsl -lm  -lpthread
gcc -DDBUG_OFF -O3 -m64 -felide-constructors -fno-exceptions -fno-rtti -fno-implicit-templates -fno-exceptions -fno-rtti -DUSE_MYSYS_NEW -DDEFINE_CXA_PURE_VIRTUAL -rdynamic -o gen_lex_hash gen_lex_hash.o  ../myisam/libmyisam.a ../myisammrg/libmyisammrg.a ../heap/libheap.a ../vio/libvio.a ../mysys/libmysys.a ../dbug/libdbug.a ../regex/libregex.a ../strings/libmystrings.a -lz -lpthread -lcrypt -lnsl -lm -lpthread
./gen_lex_hash > lex_hash.h
make  all-recursive
make[3]: Entering directory `/root/tools/mysql-4.1.18/sql'
Making all in share
make[4]: Entering directory `/root/tools/mysql-4.1.18/sql/share'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/tools/mysql-4.1.18/sql/share'
make[4]: Entering directory `/root/tools/mysql-4.1.18/sql'
/bin/sh ../libtool --preserve-dup-deps --mode=link gcc  -DDBUG_OFF -O3 -m64 -felide-constructors -fno-exceptions -fno-rtti   -fno-implicit-templates -fno-exceptions -fno-rtti -DUSE_MYSYS_NEW -DDEFINE_CXA_PURE_VIRTUAL  -rdynamic  -o mysql_tzinfo_to_sql  mysql_tzinfo_to_sql.o -all-static ../myisam/libmyisam.a ../myisammrg/libmyisammrg.a ../heap/libheap.a ../vio/libvio.a ../mysys/libmysys.a ../dbug/libdbug.a ../regex/libregex.a ../strings/libmystrings.a -lz   -lpthread -lcrypt -lnsl -lm  -lpthread
if gcc -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME="\"/usr/local/mysql\"" -DDATADIR="\"/usr/local/mysql/var\"" -DSHAREDIR="\"/usr/local/mysql/share/mysql\"" -DHAVE_CONFIG_H -I. -I. -I.. -I../innobase/include -I../include -I../include -I../regex -I.     -DDBUG_OFF -O3 -m64 -felide-constructors -fno-exceptions -fno-rtti   -fno-implicit-templates -fno-exceptions -fno-rtti -DUSE_MYSYS_NEW -DDEFINE_CXA_PURE_VIRTUAL -MT sql_lex.o -MD -MP -MF ".deps/sql_lex.Tpo" -c -o sql_lex.o sql_lex.cc; \
         then mv -f ".deps/sql_lex.Tpo" ".deps/sql_lex.Po"; else rm -f ".deps/sql_lex.Tpo"; exit 1; fi
gcc -DDBUG_OFF -O3 -m64 -felide-constructors -fno-exceptions -fno-rtti -fno-implicit-templates -fno-exceptions -fno-rtti -DUSE_MYSYS_NEW -DDEFINE_CXA_PURE_VIRTUAL -rdynamic -o mysql_tzinfo_to_sql mysql_tzinfo_to_sql.o -static  ../myisam/libmyisam.a ../myisammrg/libmyisammrg.a ../heap/libheap.a ../vio/libvio.a ../mysys/libmysys.a ../dbug/libdbug.a ../regex/libregex.a ../strings/libmystrings.a -lz -lpthread -lcrypt -lnsl -lm -lpthread
/usr/bin/ld: cannot find -lz
collect2: ld returned 1 exit status
make[4]: *** [mysql_tzinfo_to_sql] 错误 1
make[4]: *** 正在等待未完成的任务....
make[4]: Leaving directory `/root/tools/mysql-4.1.18/sql'
make[3]: *** [all-recursive] 错误 1
make[3]: Leaving directory `/root/tools/mysql-4.1.18/sql'
make[2]: *** [all] 错误 2
make[2]: Leaving directory `/root/tools/mysql-4.1.18/sql'
make[1]: *** [all-recursive] 错误 1
make[1]: Leaving directory `/root/tools/mysql-4.1.18'
make: *** [all] 错误 2

论坛徽章:
45
2016猴年福章徽章
日期:2016-02-18 16:42:24平安夜徽章
日期:2015-12-27 09:46:0315-16赛季CBA联赛之八一
日期:2015-12-15 17:08:23黄金圣斗士
日期:2015-12-11 09:16:31天蝎座
日期:2015-12-11 09:16:22戌狗
日期:2015-12-11 09:16:19程序设计版块每周发帖之星
日期:2015-12-11 09:15:21操作系统版块每周发帖之星
日期:2015-12-11 09:15:16IT运维版块每周发帖之星
日期:2015-12-11 09:15:09IT运维版块每月发帖之星
日期:2015-12-11 09:15:01CU十四周年纪念徽章
日期:2015-12-11 09:14:40操作系统版块每日发帖之星
日期:2015-12-11 09:13:36
发表于 2015-09-23 14:09 |显示全部楼层

编译的时候出现"/usr/bin/ld: cannot find -lz"错误,需要安装zlib-dev这个包
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP