关于安装mysql的问题~~~~~~
我看了论坛里的帖子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
请问这是怎么回事?我该怎么做?
关于安装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
#
关于安装mysql的问题~~~~~~
gcc和make的版本是什么?关于安装mysql的问题~~~~~~
gcc是2.95.3make是3.80
关于安装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: *** Error 137
make: Leaving directory `/export/spare/temp/mysql-3.23.53/sql'
make: *** Error 1
make: Leaving directory `/export/spare/temp/mysql-3.23.53/sql'
make: *** Error 1
make: Leaving directory `/export/spare/temp/mysql-3.23.53'
make: *** Error 2
#
关于安装mysql的问题~~~~~~
原帖由 "南非蜘蛛"]gcc和make的版本是什么?我翻看了所有相关的帖子,看到你曾经说过“mysql十分挑gcc和make的版本
”,那gcc和make要什么版本才可以呀?版本越高越好吗?还有看到有人说要装ncurses包,请问ncurses包具体是起什么作用的?(感谢版主!)
关于安装mysql的问题~~~~~~
要注意你的环境变量啊!安装了gcc,gmake,你还得保证用的就是它!
看看你的PATH变量,要把gcc,gmake在的目录放在前面!
还有最好,在./configure时,最好加上CC=gcc,CXX=gcc
关于安装mysql的问题~~~~~~
现在我已经make过了,要是重新./configure是不是应该先make clean?关于安装mysql的问题~~~~~~
少C标准函数库在SUNFREEWARE.COM
libsdtc
关于安装mysql的问题~~~~~~
原帖由 "elk" 发表:少C标准函数库
在SUNFREEWARE.COM
libsdtc
我在SUNFREEWARE.COM上怎么没找到libsdtc搜索也搜索不到呀?