免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12345下一页
最近访问板块 发新帖
查看: 10394 | 回复: 40
打印 上一主题 下一主题

关于安装mysql的问题~~~~~~ [复制链接]

论坛徽章:
1
2015年辞旧岁徽章
日期:2015-03-03 16:54:15
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2003-06-03 17:15 |只看该作者 |倒序浏览
我看了论坛里的帖子http://chinaunix.net/forum/viewtopic.php?t=16493&highlight=proftpd
按照安装步骤,到了该做./configure --prefix=/usr/local/mysql的时候出现了错误,提示是:checking return type of sprintf... configure: error: can not run test program while cross compiling

请问这是怎么回事?我该怎么做?

论坛徽章:
1
2015年辞旧岁徽章
日期:2015-03-03 16:54:15
2 [报告]
发表于 2003-06-03 17:42 |只看该作者

关于安装mysql的问题~~~~~~

是到这里出错的:
# ./configure --prefix=/usr/local/mysql
loading cache ./config.cache
checking host system type... sparc-sun-solaris2.8
checking target system type... sparc-sun-solaris2.8
checking build system type... sparc-sun-solaris2.8
checking for a BSD compatible install... ./install-sh -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... (cached) yes
checking for working aclocal... missing
checking for working autoconf... found
checking for working automake... missing
checking for working autoheader... missing
checking for working makeinfo... missing
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... (cached) yes
checking for gawk... (cached) nawk
checking for gcc... (cached) gcc
checking whether the C compiler (gcc   ) works... yes
checking whether the C compiler (gcc   ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for c++... (cached) c++
checking whether the C++ compiler (c++   ) works... yes
checking whether the C++ compiler (c++   ) is a cross-compiler... yes
checking whether we are using GNU C++... (cached) yes
checking whether c++ accepts -g... (cached) yes
checking how to run the C preprocessor... (cached) gcc -E
checking for ranlib... (cached) ranlib
checking for ld used by GCC... (cached) /usr/ccs/bin/ld
checking if the linker (/usr/ccs/bin/ld) is GNU ld... (cached) no
checking for BSD-compatible nm... (cached) /usr/ccs/bin/nm -p
checking whether ln -s works... (cached) yes
loading cache ./config.cache within ltconfig
checking for object suffix... o
checking for executable suffix... (cached) no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.lo... yes
checking if gcc supports -fno-rtti -fno-exceptions ... yes
checking if gcc static flag -static works... -static
checking if the linker (/usr/ccs/bin/ld) is GNU ld... no
checking whether the linker (/usr/ccs/bin/ld) supports shared libraries... yes
checking command to parse /usr/ccs/bin/nm -p output... ok
checking how to hardcode library paths into programs... immediate
checking for /usr/ccs/bin/ld option to reload object files... -r
checking dynamic linker characteristics... solaris2.8 ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for objdir... .libs
creating libtool
loading cache ./config.cache
checking for a BSD compatible install... ./install-sh -c
checking for bison... bison -y
checking for pdftex... no
checking return type of sprintf... configure: error: can not run test program wh
ile cross compiling
#

论坛徽章:
0
3 [报告]
发表于 2003-06-03 17:59 |只看该作者

关于安装mysql的问题~~~~~~

gcc和make的版本是什么?

论坛徽章:
1
2015年辞旧岁徽章
日期:2015-03-03 16:54:15
4 [报告]
发表于 2003-06-03 18:32 |只看该作者

关于安装mysql的问题~~~~~~

gcc是2.95.3
make是3.80

论坛徽章:
1
2015年辞旧岁徽章
日期:2015-03-03 16:54:15
5 [报告]
发表于 2003-06-03 18:33 |只看该作者

关于安装mysql的问题~~~~~~

刚才我换了一个mysql的版本,现在./configure --prefix=/usr/local/mysql 的时候就没事了,可在make的时候又有这样的错误:
ld.so.1: ./gen_lex_hash: fatal: libstdc++.so.2.10.0: open failed: No such file o
r directory
Killed
make[3]: *** [lex_hash.h] Error 137
make[3]: Leaving directory `/export/spare/temp/mysql-3.23.53/sql'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/export/spare/temp/mysql-3.23.53/sql'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/export/spare/temp/mysql-3.23.53'
make: *** [all-recursive-am] Error 2
#

论坛徽章:
1
2015年辞旧岁徽章
日期:2015-03-03 16:54:15
6 [报告]
发表于 2003-06-03 18:58 |只看该作者

关于安装mysql的问题~~~~~~

[quote]原帖由 "南非蜘蛛"]gcc和make的版本是什么?[/quote 发表:
     

我翻看了所有相关的帖子,看到你曾经说过“mysql十分挑gcc和make的版本
”,那gcc和make要什么版本才可以呀?版本越高越好吗?还有看到有人说要装ncurses包,请问ncurses包具体是起什么作用的?(感谢版主!)

论坛徽章:
0
7 [报告]
发表于 2003-06-03 19:14 |只看该作者

关于安装mysql的问题~~~~~~

要注意你的环境变量啊!
安装了gcc,gmake,你还得保证用的就是它!
看看你的PATH变量,要把gcc,gmake在的目录放在前面!
还有最好,在./configure时,最好加上CC=gcc,CXX=gcc

论坛徽章:
1
2015年辞旧岁徽章
日期:2015-03-03 16:54:15
8 [报告]
发表于 2003-06-03 20:37 |只看该作者

关于安装mysql的问题~~~~~~

现在我已经make过了,要是重新./configure是不是应该先make clean?

论坛徽章:
0
9 [报告]
发表于 2003-06-03 20:47 |只看该作者

关于安装mysql的问题~~~~~~

少C标准函数库
在SUNFREEWARE.COM
libsdtc

论坛徽章:
1
2015年辞旧岁徽章
日期:2015-03-03 16:54:15
10 [报告]
发表于 2003-06-03 21:21 |只看该作者

关于安装mysql的问题~~~~~~

原帖由 "elk" 发表:
少C标准函数库
在SUNFREEWARE.COM
libsdtc
   

我在SUNFREEWARE.COM上怎么没找到libsdtc搜索也搜索不到呀?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP