红联Linux门户
Linux帮助

mysql安装问题

发布时间:2007-10-11 15:15:11来源:红联作者:lovedarling
root@love:~/mysql-5.0.40# ./configure -prefix=/usr/local/mysql
checking build system type... i686-pc-linux-gnuoldld
checking host system type... i686-pc-linux-gnuoldld
checking target system type... i686-pc-linux-gnuoldld
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... no
checking "character sets"... default: latin1, collation: latin1_swedish_ci; comp iled in: latin1 latin1 utf8
checking whether to compile national Unicode collations... yes
checking whether build environment is sane... yes
checking whether make sets $(MAKE)... (cached) no
checking for gawk... (cached) mawk
checking for gcc... no
checking for cc... no
checking for cc... no
checking for cl... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
root@love:~/mysql-5.0.40# quit
bash: quit: command not found
root@love:~/mysql-5.0.40# mysql
bash: mysql: command not found
文章评论

共有 6 条评论

  1. lovedarling 于 2007-10-13 22:59:55发表:

    我的机子有点差,这找到了这样一张能装上,所以就装了这个,光驱不怎么好了

  2. gxf 于 2007-10-12 17:25:48发表:

    引用:
    原帖由 lovedarling 于 2007-10-12 16:10 发表
    安装还 是有问题,请帮忙再看一下谢谢,我用的是ubuntu5.0版本

    这样吧,干脆不要自己去编译了。官方网站上又二进制包下载的,直接

    把二进制包装好就行,不然也太麻烦了,还有就是你的UBUNTU也该升级了

    http://dev.mysql.com/downloads/mysql/5.1.html#win32

  3. lovedarling 于 2007-10-12 16:10:31发表:

    安装还 是有问题,请帮忙再看一下谢谢,我用的是ubuntu5.0版本

  4. lovedarling 于 2007-10-12 14:50:05发表:

    root@love:~/mysql-5.0.40# mysql
    bash: mysql: command not found
    root@love:~/mysql-5.0.40# ./configure --with-clien-ldflags=all-static--with-mysqld-ldflags=-all-static
    checking build system type... i686-pc-linux-gnu
    checking host system type... i686-pc-linux-gnu
    checking target system type... i686-pc-linux-gnu
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking for gawk... gawk
    checking whether make sets $(MAKE)... yes
    checking "character sets"... default: latin1, collation: latin1_swedish_ci; compiled in: latin1 latin1 utf8
    checking whether to compile national Unicode collations... yes
    checking whether build environment is sane... yes
    checking whether make sets $(MAKE)... (cached) yes
    checking for gawk... (cached) gawk
    checking for gcc... gcc
    checking for C compiler default output file name... a.out
    checking whether the C compiler works... yes
    checking whether we are cross compiling... no
    checking for suffix of executables...
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether gcc accepts -g... yes
    checking for gcc option to accept ANSI C... none needed
    checking for style of include used by make... GNU
    checking dependency style of gcc... gcc3
    checking for g++... g++
    checking whether we are using the GNU C++ compiler... yes
    checking whether g++ accepts -g... yes
    checking dependency style of g++... gcc3
    checking how to run the C preprocessor... gcc -E
    checking "C Compiler version"... "gcc gcc (GCC) 4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubuntu9)"checking "C++ compiler version"... "g++ g++ (GCC) 4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubuntu9)"
    checking for ranlib... ranlib
    checking for a sed that does not truncate output... /bin/sed
    checking for egrep... grep -E
    checking for ld used by gcc... /usr/bin/ld
    checking if the linker (/usr/bin/ld) is GNU ld... yes
    checking for /usr/bin/ld option to reload object files... -r
    checking for BSD-compatible nm... /usr/bin/nm -B
    checking whether ln -s works... yes
    checking how to recognise dependent libraries... pass_all
    checking for ANSI C header files... yes
    checking for sys/types.h... yes
    checking for sys/stat.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for memory.h... yes
    checking for strings.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for unistd.h... yes
    checking dlfcn.h usability... yes
    checking dlfcn.h presence... yes
    checking for dlfcn.h... yes
    checking how to run the C++ preprocessor... g++ -E
    checking for g77... no
    checking for f77... no
    checking for xlf... no
    checking for frt... no
    checking for pgf77... no
    checking for fort77... no
    checking for fl32... no
    checking for af77... no
    checking for f90... no
    checking for xlf90... no
    checking for pgf90... no
    checking for epcf90... no
    checking for f95... no
    checking for fort... no
    checking for xlf95... no
    checking for ifc... no
    checking for efc... no
    checking for pgf95... no
    checking for lf95... no
    checking for gfortran... no
    checking whether we are using the GNU Fortran 77 compiler... no
    checking whether accepts -g... no
    checking the maximum length of command line arguments... 32768
    checking command to parse /usr/bin/nm -B output from gcc object... yok
    checking for objdir... .libs
    checking for ar... ar
    checking for ranlib... (cached) ranlib
    checking for strip... strip
    checking if gcc supports -fno-rtti -fno-exceptions... no
    checking for gcc option to produce PIC... -fPIC
    checking if gcc PIC flag -fPIC works... yes
    checking if gcc static flag -static works... yes
    checking if gcc supports -c -o file.o... yes
    checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
    checking whether -lc should be explicitly linked in... no
    checking dynamic linker characteristics... GNU/Linux ld.so
    checking how to hardcode library paths into programs... immediate
    checking whether stripping libraries is possible... yes
    checking if libtool supports shared libraries... yes
    checking whether to build shared libraries... yes
    checking whether to build static libraries... yes
    configure: creating libtool
    appending configuration tag "CXX" to libtool
    checking for ld used by g++... /usr/bin/ld
    checking if the linker (/usr/bin/ld) is GNU ld... yes
    checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
    checking for g++ option to produce PIC... -fPIC
    checking if g++ PIC flag -fPIC works... yes
    checking if g++ static flag -static works... yes
    checking if g++ supports -c -o file.o... yes
    checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
    checking dynamic linker characteristics... GNU/Linux ld.so
    checking how to hardcode library paths into programs... immediate
    appending configuration tag "F77" to libtool
    checking for a BSD-compatible install... /usr/bin/install -c
    checking for bison... no
    checking for pdftex... no
    checking for tex... no
    checking "return type of sprintf"... "int"
    checking for uname... /bin/uname
    checking operating system... Linux
    checking if we should use 'skip-external-locking' as default for linux-gnu... yes
    checking for ln... /bin/ln
    checking for ln... /bin/ln
    checking for mv... /bin/mv
    checking for rm... /bin/rm
    checking for cp... /bin/cp
    checking for sed... /bin/sed
    checking for cmp... /usr/bin/cmp
    checking for chmod... /bin/chmod
    checking for hostname... /bin/hostname
    checking for gnutar... no
    checking for gtar... no
    checking for tar... tar
    checking for perl... /usr/bin/perl
    checking for doxygen... no
    checking for pdflatex... no
    checking for makeindex... no
    checking for icheck... no
    checking for ps... /bin/ps
    checking "how to check if pid exists"... "/bin/ps p $$PID | grep -v grep | grep $$MYSQLD > /dev/null"
    checking for kill... /bin/kill
    checking "for kill switches"... "/bin/kill -0 $$PID > /dev/null 2> /dev/null"
    checking for gcc option to accept ANSI C...
    checking whether --noexecstack is desirable for .S files... yes
    nm: lc-messages.o: no symbols
    nm: lc-monetary.o: no symbols
    nm: lc-numeric.o: no symbols
    nm: lc-time.o: no symbols
    nm: lc-paper.o: no symbols
    nm: lc-name.o: no symbols
    nm: lc-address.o: no symbols
    nm: lc-telephone.o: no symbols
    nm: lc-measurement.o: no symbols
    nm: lc-identification.o: no symbols
    nm: lc-collate.o: no symbols
    nm: old_atexit.o: no symbols
    nm: udiv_qrnnd.o: no symbols
    nm: mp_clz_tab.o: no symbols
    nm: getopt_init.o: no symbols
    nm: init-posix.o: no symbols
    nm: lseek64.o: no symbols
    nm: oldgetrlimit64.o: no symbols
    nm: getutmpx.o: no symbols
    checking if we should use assembler functions... no
    checking If we should should enable LOAD DATA LOCAL by default... no
    checking If we should should enable init-file... yes
    checking for getconf... getconf
    checking for CFLAGS value to request large file support... -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
    checking for LDFLAGS value to request large file support...
    checking for LIBS value to request large file support...
    checking for _FILE_OFFSET_BITS... 64
    checking for _LARGEFILE_SOURCE... 1
    checking for _LARGE_FILES... no
    checking for size_t... yes
    checking for dirent.h that defines DIR... yes
    checking for library containing opendir... none required
    checking for ANSI C header files... (cached) yes
    checking for sys/wait.h that is POSIX.1 compatible... yes
    checking fcntl.h usability... yes
    checking fcntl.h presence... yes
    checking for fcntl.h... yes
    checking float.h usability... yes
    checking float.h presence... yes
    checking for float.h... yes
    checking floatingpoint.h usability... no
    checking floatingpoint.h presence... no
    checking for floatingpoint.h... no
    checking ieeefp.h usability... no
    checking ieeefp.h presence... no
    checking for ieeefp.h... no
    checking limits.h usability... yes
    checking limits.h presence... yes
    checking for limits.h... yes
    checking for memory.h... (cached) yes
    checking pwd.h usability... yes
    checking pwd.h presence... yes
    checking for pwd.h... yes
    checking select.h usability... no
    checking select.h presence... no
    checking for select.h... no
    checking for stdlib.h... (cached) yes
    checking stddef.h usability... yes
    checking stddef.h presence... yes
    checking for stddef.h... yes
    checking for strings.h... (cached) yes
    checking for string.h... (cached) yes
    checking synch.h usability... no
    checking synch.h presence... no
    checking for synch.h... no
    checking sys/mman.h usability... yes
    checking sys/mman.h presence... yes
    checking for sys/mman.h... yes
    checking sys/socket.h usability... yes
    checking sys/socket.h presence... yes
    checking for sys/socket.h... yes
    checking netinet/in.h usability... yes
    checking netinet/in.h presence... yes
    checking for netinet/in.h... yes
    checking arpa/inet.h usability... yes
    checking arpa/inet.h presence... yes
    checking for arpa/inet.h... yes
    checking sys/timeb.h usability... yes
    checking sys/timeb.h presence... yes
    checking for sys/timeb.h... yes
    checking for sys/types.h... (cached) yes
    checking sys/un.h usability... yes
    checking sys/un.h presence... yes
    checking for sys/un.h... yes
    checking sys/vadvise.h usability... no
    checking sys/vadvise.h presence... no
    checking for sys/vadvise.h... no
    checking for sys/wait.h... (cached) yes
    checking term.h usability... no
    checking term.h presence... no
    checking for term.h... no
    checking for unistd.h... (cached) yes
    checking utime.h usability... yes
    checking utime.h presence... yes
    checking for utime.h... yes
    checking sys/utime.h usability... no
    checking sys/utime.h presence... no
    checking for sys/utime.h... no
    checking termio.h usability... yes
    checking termio.h presence... yes
    checking for termio.h... yes
    checking termios.h usability... yes
    checking termios.h presence... yes
    checking for termios.h... yes
    checking sched.h usability... yes
    checking sched.h presence... yes
    checking for sched.h... yes
    checking crypt.h usability... yes
    checking crypt.h presence... yes
    checking for crypt.h... yes
    checking alloca.h usability... yes
    checking alloca.h presence... yes
    checking for alloca.h... yes
    checking sys/ioctl.h usability... yes
    checking sys/ioctl.h presence... yes
    checking for sys/ioctl.h... yes
    checking malloc.h usability... yes
    checking malloc.h presence... yes
    checking for malloc.h... yes
    checking sys/malloc.h usability... no
    checking sys/malloc.h presence... no
    checking for sys/malloc.h... no
    checking sys/ipc.h usability... yes
    checking sys/ipc.h presence... yes
    checking for sys/ipc.h... yes
    checking sys/shm.h usability... yes
    checking sys/shm.h presence... yes
    checking for sys/shm.h... yes
    checking linux/config.h usability... no
    checking linux/config.h presence... no
    checking for linux/config.h... no
    checking sys/resource.h usability... yes
    checking sys/resource.h presence... yes
    checking for sys/resource.h... yes
    checking sys/param.h usability... yes
    checking sys/param.h presence... yes
    checking for sys/param.h... yes
    checking for floor in -lm... yes
    checking for gethostbyname_r in -lnsl_r... no
    checking for gethostbyname_r in -lnsl... yes
    checking for gethostbyname_r... yes
    checking for setsockopt... yes
    checking for yp_get_default_domain... yes
    checking for p2open... no
    checking for p2open in -lgen... no
    checking for bind... yes
    checking for library containing crypt... -lcrypt
    checking for sched_yield... yes
    checking for zlib compression library... system-wide zlib not found, using one bundled with MySQL
    checking whether SHM_HUGETLB is declared... yes
    checking for atomic operations... atomic_add atomic_sub
    checking if we should use pstack... no
    checking for int8... no
    checking "Linux threads"... "starting"
    checking "getconf GNU_LIBPTHREAD_VERSION"... "NPTL"
    "no need to check headers"
    checking "for pthread_create in -lpthread"... "yes"
    checking "named thread libs:"... "-lpthread"
    checking for strtok_r in -lpthread... yes
    checking for strtok_r... yes
    checking for dlopen in -ldl... yes
    checking for dlopen... yes
    checking for dlerror... yes
    checking for unistd.h... (cached) yes
    checking for restartable system calls... yes
    checking "need of special linking flags"... "-rdynamic"
    checking for an ANSI C-conforming const... yes
    checking for inline... inline
    checking for off_t... yes
    checking for struct stat.st_rdev... yes
    checking whether time.h and sys/time.h may both be included... yes
    checking whether struct tm is in sys/time.h or time.h... time.h
    checking needs mysys_new helpers... no
    checking for char... yes
    checking size of char... 1
    checking for char*... yes
    checking size of char*... 4
    checking for short... yes
    checking size of short... 2
    checking for int... yes
    checking size of int... 4
    checking for long... yes
    checking size of long... 4
    checking for long long... yes
    checking size of long long... 8
    checking size of off_t... 8
    checking if time_t is unsigned... no
    checking the need for #pragma interface/implementation... no
    checking whether byte ordering is bigendian... no
    checking base type of last arg to accept... socklen_t
    checking struct type to use with setrlimit... struct rlimit
    checking stack direction for C alloca... -1
    checking for working alloca.h... (cached) yes
    checking for alloca... yes
    checking if struct timespec has a ts_sec member... no
    checking if we have tzname variable... yes
    checking for type ulong... yes
    checking for type uchar... no
    checking for type uint... yes
    checking for type fp_except... no
    checking for type in_addr_t... yes
    checking if g++ supports bool types... yes
    checking if conversion of longlong to float works... yes
    checking for sigset_t... yes
    checking for off_t... (cached) yes
    checking for size_t... (cached) yes
    checking for u_int32_t... yes
    checking if pthread_yield takes zero arguments... yes
    checking if pthread_yield takes 1 argument... no
    checking for malloc.h... (cached) yes
    checking sys/cdefs.h usability... yes
    checking sys/cdefs.h presence... yes
    checking for sys/cdefs.h... yes
    checking for working alloca.h... yes
    checking for alloca... (cached) yes
    checking whether gcc needs -traditional... no
    checking return type of signal handlers... void
    checking for re_comp... yes
    checking for regcomp... yes
    checking for strdup... yes
    checking vis.h usability... no
    checking vis.h presence... no
    checking for vis.h... no
    checking for strlcat... no
    checking for strlcpy... no
    checking for issetugid... no
    checking for fgetln... no
    checking for getline... yes
    checking for flockfile... yes
    checking varargs.h usability... no
    checking varargs.h presence... no
    checking for varargs.h... no
    checking stdarg.h usability... yes
    checking stdarg.h presence... yes
    checking for stdarg.h... yes
    checking dirent.h usability... yes
    checking dirent.h presence... yes
    checking for dirent.h... yes
    checking locale.h usability... yes
    checking locale.h presence... yes
    checking for locale.h... yes
    checking ndir.h usability... no
    checking ndir.h presence... no
    checking for ndir.h... no
    checking sys/dir.h usability... yes
    checking sys/dir.h presence... yes
    checking for sys/dir.h... yes
    checking sys/file.h usability... yes
    checking sys/file.h presence... yes
    checking for sys/file.h... yes
    checking sys/ndir.h usability... no
    checking sys/ndir.h presence... no
    checking for sys/ndir.h... no
    checking sys/ptem.h usability... no
    checking sys/ptem.h presence... no
    checking for sys/ptem.h... no
    checking sys/pte.h usability... no
    checking sys/pte.h presence... no
    checking for sys/pte.h... no
    checking sys/select.h usability... yes
    checking sys/select.h presence... yes
    checking for sys/select.h... yes
    checking sys/stream.h usability... no
    checking sys/stream.h presence... no
    checking for sys/stream.h... no
    checking for sys/mman.h... (cached) yes
    checking curses.h usability... no
    checking curses.h presence... no
    checking for curses.h... no
    checking termcap.h usability... no
    checking termcap.h presence... no
    checking for termcap.h... no
    checking for termio.h... (cached) yes
    checking termbits.h usability... no
    checking termbits.h presence... no
    checking for termbits.h... no
    checking asm/termbits.h usability... yes
    checking asm/termbits.h presence... yes
    checking for asm/termbits.h... yes
    checking grp.h usability... yes
    checking grp.h presence... yes
    checking for grp.h... yes
    checking paths.h usability... yes
    checking paths.h presence... yes
    checking for paths.h... yes
    checking semaphore.h usability... yes
    checking semaphore.h presence... yes
    checking for semaphore.h... yes
    checking for lstat... yes
    checking for putenv... yes
    checking for select... yes
    checking for setenv... yes
    checking for setlocale... yes
    checking for strcoll... yes
    checking for tcgetattr... yes
    checking whether stat file-mode macros are broken... no
    checking for type of signal functions... posix
    checking whether programs are able to redeclare getpw functions... yes
    checking for TIOCGWINSZ in sys/ioctl.h... yes
    checking for FIONREAD in sys/ioctl.h... yes
    checking for TIOCSTAT in sys/ioctl.h... no
    checking if struct dirent has a d_ino member... yes
    checking if struct dirent has a d_namlen member... no
    checking whether signal handlers are of type void... yes
    checking wctype.h usability... yes
    checking wctype.h presence... yes
    checking for wctype.h... yes
    checking wchar.h usability... yes
    checking wchar.h presence... yes
    checking for wchar.h... yes
    checking langinfo.h usability... yes
    checking langinfo.h presence... yes
    checking for langinfo.h... yes
    checking for mbsrtowcs... yes
    checking for mbrtowc... yes
    checking for mbrlen... yes
    checking for wctomb... yes
    checking for wcwidth... yes
    checking for wcsdup... yes
    checking for mbstate_t... yes
    checking for nl_langinfo and CODESET... yes
    checking for tgetent in -lncurses... no
    checking for tgetent in -lcurses... no
    checking for tgetent in -ltermcap... no
    checking for tgetent in -ltinfo... no
    checking for termcap functions library... configure: error: No curses/termcap library found
    root@love:~/mysql-5.0.40#

  5. lovedarling 于 2007-10-12 08:50:23发表:

    哦,谢谢了

  6. gxf 于 2007-10-11 21:59:18发表:

    没有安装gcc吧

    gcc -v看一哈,如果没有输出那就要自己安装gcc了