데비안에서 소스로 설치하려고 하는데 않되요?
데비안 woody베이스시스템만 설치한 상태에서
소스로 mysql설치하려고 gcc설치하고
mysql소스풀고 configure했는데 에러가 생겨요
다른 리눅스에선 gcc설치도 필요없이 잘 만 되는데
왜 그러죠?
에러 메시지 입니다.
checking for gcc... gcc
checking for C compiler default output... configure: error: C compiler
cannot create executables
check `config.log' for details.
config.log입니다.
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by configure, which was
generated by GNU Autoconf 2.57. Invocation command line was
$ ./configure
## --------- ##
## Platform. ##
## --------- ##
hostname = localhost
uname -m = i686
uname -r = 2.4.18-bf2.4
uname -s = Linux
uname -v = #1 Son Apr 14 09:53:28 CEST 2002
/usr/bin/uname -p = unknown
/bin/uname -X = unknown
/bin/arch = i686
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin
PATH: /usr/bin/X11
## ----------- ##
## Core tests. ##
## ----------- ##
configure:1580: checking build system type
configure:1598: result: i686-pc-linuxlibc1
configure:1606: checking host system type
configure:1620: result: i686-pc-linuxlibc1
configure:1628: checking target system type
configure:1642: result: i686-pc-linuxlibc1
configure:1670: checking for a BSD-compatible install
configure:1724: result: /usr/bin/install -c
configure:1735: checking whether build environment is sane
configure:1753: result: yes
configure:1786: checking for gawk
configure:1815: result: no
configure:1786: checking for mawk
configure:1802: found /usr/bin/mawk
configure:1812: result: mawk
configure:1822: checking whether make sets $(MAKE)
configure:1846: result: no
configure:2110: checking whether to enable maintainer-specific portions of Makefiles
configure:2119: result: no
configure:2135: checking whether build environment is sane
configure:2153: result: yes
configure:2156: checking whether make sets $(MAKE)
configure:2180: result: no
configure:2227: checking for gawk
configure:2253: result: mawk
configure:2309: checking for gcc
configure:2325: found /usr/bin/gcc
configure:2335: result: gcc
configure:2579: checking for C compiler version
configure:2582: gcc --version </dev/null >&5
gcc (GCC) 3.3.3 (Debian 20040401)
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
configure:2585: $? = 0
configure:2587: gcc -v </dev/null >&5
Reading specs from /usr/lib/gcc-lib/i486-linux/3.3.3/specs
Configured with: ../src/configure -v --enable-languages=c,c++,java,f77,pascal,objc,ada,treelang --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared --with-system-zlib --enable-nls --without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu --enable-debug --enable-java-gc=boehm --enable-java-awt=xlib --enable-objc-gc i486-linux
Thread model: posix
gcc version 3.3.3 (Debian 20040401)
configure:2590: $? = 0
configure:2592: gcc -V </dev/null >&5
gcc: `-V' option must have argument
configure:2595: $? = 1
configure:2619: checking for C compiler default output
configure:2622: gcc conftest.c >&5
/usr/bin/ld: cannot open crt1.o: No such file or directory
collect2: ld returned 1 exit status
configure:2625: $? = 1
configure: failed program was:
| #line 2598 "configure"
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "mysql"
| #define VERSION "4.0.18"
| #define PROTOCOL_VERSION 10
| #define DOT_FRM_VERSION 6
| #define SYSTEM_TYPE "pc-linuxlibc1"
| #define MACHINE_TYPE "i686"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2664: error: C compiler cannot create executables
See `config.log' for more details.
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_build=i686-pc-linuxlibc1
ac_cv_build_alias=i686-pc-linuxlibc1
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXCPP_set=
ac_cv_env_CXXCPP_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_F77_set=
ac_cv_env_F77_value=
ac_cv_env_FFLAGS_set=
ac_cv_env_FFLAGS_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_host=i686-pc-linuxlibc1
ac_cv_host_alias=i686-pc-linuxlibc1
ac_cv_path_install='/usr/bin/install -c'
ac_cv_prog_AWK=mawk
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_make_make_set=no
ac_cv_target=i686-pc-linuxlibc1
ac_cv_target_alias=i686-pc-linuxlibc1
## ----------------- ##
## Output variables. ##
## ----------------- ##
ACLOCAL='${SHELL} /root/tmp/mysql-4.0.18/missing --run aclocal-1.7'
ALLOCA=''
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR='${SHELL} /root/tmp/mysql-4.0.18/missing --run tar'
AR=''
AS=''
ASSEMBLER_FALSE=''
ASSEMBLER_TRUE=''
ASSEMBLER_sparc32_FALSE=''
ASSEMBLER_sparc32_TRUE=''
ASSEMBLER_sparc64_FALSE=''
ASSEMBLER_sparc64_TRUE=''
ASSEMBLER_x86_FALSE=''
ASSEMBLER_x86_TRUE=''
AUTOCONF='${SHELL} /root/tmp/mysql-4.0.18/missing --run autoconf'
AUTOHEADER='${SHELL} /root/tmp/mysql-4.0.18/missing --run autoheader'
AUTOMAKE='${SHELL} /root/tmp/mysql-4.0.18/missing --run automake-1.7'
AVAILABLE_LANGUAGES='czech danish dutch english estonian french german greek hungarian italian japanese korean norwegian norwegian-ny polish portuguese romanian russian slovak spanish swedish ukrainian'
AVAILABLE_LANGUAGES_ERRORS=' czech/errmsg.sys danish/errmsg.sys dutch/errmsg.sys english/errmsg.sys estonian/errmsg.sys french/errmsg.sys german/errmsg.sys greek/errmsg.sys hungarian/errmsg.sys italian/errmsg.sys japanese/errmsg.sys korean/errmsg.sys norwegian/errmsg.sys norwegian-ny/errmsg.sys polish/errmsg.sys portuguese/errmsg.sys romanian/errmsg.sys russian/errmsg.sys slovak/errmsg.sys spanish/errmsg.sys swedish/errmsg.sys ukrainian/errmsg.sys'
AWK='mawk'
CC='gcc'
CCAS=''
CCASFLAGS=''
CCDEPMODE=''
CC_VERSION=''
CFLAGS=' '
CHARSETS_NEED_SOURCE=''
CHARSET_OBJS=''
CHARSET_SRCS=''
CHECK_PID=''
CHMOD=''
CLIENT_EXTRA_LDFLAGS=''
CLIENT_LIBS=''
CMP=''
COMPILATION_COMMENT=''
COMPILE_PSTACK_FALSE=''
COMPILE_PSTACK_TRUE=''
CONF_COMMAND='./configure '
CP=''
CPP=''
CPPFLAGS=''
CXX=''
CXXCPP=''
CXXDEPMODE=''
CXXFLAGS=' '
CXXLDFLAGS=''
CXX_VERSION=''
CYGPATH_W='echo'
DEFS=''
DEPDIR=''
DOT_FRM_VERSION='6'
DVIS=''
ECHO='echo'
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
F77=''
FFLAGS=''
FIND_PROC=''
GETCONF=''
GXX=''
HOSTNAME='localhost'
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='${SHELL} $(install_sh) -c -s'
IS_LINUX=''
KILL=''
LD=''
LDFLAGS=''
LIBDL=''
LIBOBJS=''
LIBS=''
LIBTOOL=''
LIB_EXTRA_CCFLAGS=''
LM_CFLAGS=''
LN=''
LN_CP_F=''
LN_S=''
LOCAL_FALSE=''
LOCAL_TRUE='#'
LTLIBOBJS=''
MACHINE_TYPE='i686'
MAINT='#'
MAINTAINER_MODE_FALSE=''
MAINTAINER_MODE_TRUE='#'
MAKEINFO='${SHELL} /root/tmp/mysql-4.0.18/missing --run makeinfo'
MAKE_BINARY_DISTRIBUTION_OPTIONS=''
MAKE_SHELL=''
MT_INCLUDES=''
MT_LD_ADD=''
MV=''
MYSQLD_DEFAULT_SWITCHES=''
MYSQLD_EXTRA_LDFLAGS=''
MYSQLD_USER=''
MYSQL_BASE_VERSION='4.0'
MYSQL_NO_DASH_VERSION='4.0.18'
MYSQL_SERVER_SUFFIX=''
MYSQL_TCP_PORT=''
MYSQL_TCP_PORT_DEFAULT='3306'
MYSQL_UNIX_ADDR=''
MYSQL_VERSION_ID='40018'
NOINST_LDFLAGS=''
OBJEXT=''
PACKAGE='mysql'
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
PDFMANUAL=''
PERL5=''
PERL=''
PROTOCOL_VERSION='10'
PS=''
RANLIB=''
RM=''
SAVE_ASFLAGS=''
SAVE_CFLAGS=''
SAVE_CXXFLAGS=''
SAVE_CXXLDFLAGS=''
SAVE_LDFLAGS=''
SED=''
SET_MAKE='MAKE=make'
SHARED_LIB_VERSION='12:0:0'
SHELL='/bin/sh'
STRIP=''
SYSTEM_TYPE='pc-linuxlibc1'
TAR=''
TERMCAP_LIB=''
THREAD_LOBJECTS=''
THREAD_LPROGRAMS=''
VERSION='4.0.18'
WRAPLIBS=''
YACC=''
ac_ct_AR=''
ac_ct_CC='gcc'
ac_ct_CXX=''
ac_ct_F77=''
ac_ct_GETCONF=''
ac_ct_RANLIB=''
ac_ct_STRIP=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__fastdepCXX_FALSE=''
am__fastdepCXX_TRUE=''
am__include=''
am__leading_dot='.'
am__quote=''
bdb_includes=''
bdb_libs=''
bdb_libs_with_path=''
bench_dirs=''
bindir='${exec_prefix}/bin'
build='i686-pc-linuxlibc1'
build_alias=''
build_cpu='i686'
build_os='linuxlibc1'
build_vendor='pc'
datadir='${prefix}/share'
default_charset=''
docs_dirs=''
exec_prefix='NONE'
fs_dirs=''
host='i686-pc-linuxlibc1'
host_alias=''
host_cpu='i686'
host_os='linuxlibc1'
host_vendor='pc'
includedir='${prefix}/include'
infodir='${prefix}/info'
innodb_includes=''
innodb_libs=''
innodb_system_libs=''
install_sh='/root/tmp/mysql-4.0.18/install-sh'
isam_libs=''
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
libmysqld_dirs=''
linked_client_targets=''
linked_netware_sources=''
localstatedir='${prefix}/var'
mandir='${prefix}/man'
netware_dir=''
oldincludedir='/usr/include'
openssl_includes=''
openssl_libs=''
orbit_idl=''
orbit_includes=''
orbit_libs=''
prefix='NONE'
program_transform_name='s,x,x,'
pstack_dirs=''
pstack_libs=''
readline_dir=''
readline_link=''
sbindir='${exec_prefix}/sbin'
server_scripts=''
sharedstatedir='${prefix}/com'
sql_client_dirs=''
sql_server_dirs=''
sysconfdir='${prefix}/etc'
target='i686-pc-linuxlibc1'
target_alias=''
target_cpu='i686'
target_os='linuxlibc1'
target_vendor='pc'
thread_dirs=''
tools_dirs=''
uname_prog=''
vio_dir=''
vio_libs=''
## ------------- ##
## Output files. ##
## ------------- ##
AVAILABLE_LANGUAGES_ERRORS_RULES='./ac_available_languages_fragment'
## ----------- ##
## confdefs.h. ##
## ----------- ##
#define DOT_FRM_VERSION 6
#define MACHINE_TYPE "i686"
#define PACKAGE "mysql"
#define PACKAGE_BUGREPORT ""
#define PACKAGE_NAME ""
#define PACKAGE_STRING ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define PROTOCOL_VERSION 10
#define SYSTEM_TYPE "pc-linuxlibc1"
#define VERSION "4.0.18"
configure: exit 77
gcc 3.3.3?? woody base system 맞나요?혹시 g
gcc 3.3.3?? woody base system 맞나요?
혹시 gcc도 컴파일해서 설치하신건가요?
debian에 이미 mysql이 패키지로 제공될텐데 특별한 옵션을 줘서 설치하시려는건가요?
gcc가 실행파일을 못 만드는 녀석이라고 하면서 에러가 났습니다. 그렇다
gcc가 실행파일을 못 만드는 녀석이라고 하면서 에러가 났습니다. 그렇다면 config.log에서 gcc관련 부분, 혹은 실행파일 생성 부분을 찾아보셔야겠죠.
cannot open crt1.o: No such file or directory
이 부분을 구글링해봤더니 데비안에서 apt-get update && apt-get install libc6-dev을 해주시면 해결된다고 나옵니다.
구글 많이 사랑해주세요. :)
관심에 감사
woody cd 1번만 가지고 설치한 base system이고요
gcc는 sid소스를 가지고 apt로 설치해서
버전3.3.3입니다.
mysql만이 아니고 다른 프로그램도 소스로 설치할 수가 없습니다.
답변에 감사
이런 방법이 있었군요
"구글" 학생들이 만들었다고하는데 참 좋군요
댓글 달기