gcc 설치후 에러 configure: error: C++ compiler cannot create executables

bora999의 이미지

gate라는 프로그램 설치를 위해서

fedora 11 에서 gcc버전 다운중입니다.

"페도라에도 backwards compatibility를 위해서 compat라는 이름으로 gcc나 glib등의 예전버전 패키지가 포함되어 있습니다. 그래서 최신 버전의 페도라를 깔아도 옛날 옛적 버전의 readhat linux에 맞춰나온 베더제공 소프트웨어들을 무리없이 쓸수 있습니다.
yum search gcc-compat 로 검색해 보시면 gcc2.9 버전, gcc3.3 대 버전의 gcc도 찾을 수 있을 거고요, yum search glibc-compat 정도로 검색 해보고 적당한 버전의 glic를 같이 깔면 됩니다. 컴파일을 위해서는 dev 패키지도 같이 깔아야 합니다."

로 확인하고 gcc 4.4에서 3.4로 인스톨 하고

"각 홈디렉토리 내에 ~/bin 디렉토리를 만들고 gcc 관련 파일을 넣습니다. 그리고 .profile에서 path를 ~/bin을 우선순위높게 잡아주고요. lib와 include도 비슷하게 잡아줄 수 있을 듯하네요. 아니면 Makefile에서 설정할 수도 있을테구요."

를 보고 설정 변경해서

gcc -v로 확인해서 버전 3.4인스톨 확인했습니다..

Reading specs from /usr/lib/gcc/i586-redhat-linux/3.4.6/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-languages=c,c++,f77 --disable-libgcj --host=i586-redhat-linux
Thread model: posix
gcc version 3.4.6 20060404 (Red Hat 3.4.6-13) 여기까지...

하지만.....

[root@localhost CLHEP]# ./configure --prefix=/home/boram/CLHEP
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 for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for ranlib... ranlib
checking for cl... no
checking for g++... no
checking for g++4... no
checking for c++... no
checking for icc... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking for gpp... no
checking for C++ compiler default output file name... configure: error: C++ compiler cannot create executables
See `config.log' for more 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 CLHEP configure 2.0.3.2, which was
generated by GNU Autoconf 2.59. Invocation command line was

$ ./configure

## --------- ##
## Platform. ##
## --------- ##

hostname = localhost.localdomain
uname -m = i686
uname -r = 2.6.29.4-167.fc11.i686.PAE
uname -s = Linux
uname -v = #1 SMP Wed May 27 17:28:22 EDT 2009

/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: /gccold
PATH: /usr/kerberos/sbin
PATH: /usr/lib/qt-3.3/bin
PATH: /usr/kerberos/bin
PATH: /usr/lib/ccache
PATH: /usr/local/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/local/sbin
PATH: /usr/sbin
PATH: /sbin
PATH: /home/boram/bin
PATH: /home/boram/bin
PATH: /root/bin
PATH: /root/bin

## ----------- ##
## Core tests. ##
## ----------- ##

configure:1318: checking build system type
configure:1336: result: i686-pc-linux-gnu
configure:1344: checking host system type
configure:1358: result: i686-pc-linux-gnu
configure:1366: checking target system type
configure:1380: result: i686-pc-linux-gnu
configure:1409: checking for a BSD-compatible install
configure:1464: result: /usr/bin/install -c
configure:1475: checking whether build environment is sane
configure:1518: result: yes
configure:1583: checking for gawk
configure:1599: found /usr/bin/gawk
configure:1609: result: gawk
configure:1619: checking whether make sets $(MAKE)
configure:1639: result: yes
configure:1820: checking for a BSD-compatible install
configure:1875: result: /usr/bin/install -c
configure:1886: checking whether ln -s works
configure:1890: result: yes
configure:1938: checking for ranlib
configure:1954: found /usr/bin/ranlib
configure:1965: result: ranlib
configure:2138: checking for cl
configure:2167: result: no
configure:2138: checking for g++
configure:2167: result: no
configure:2138: checking for g++4
configure:2167: result: no
configure:2138: checking for c++
configure:2167: result: no
configure:2138: checking for icc
configure:2167: result: no
configure:2138: checking for aCC
configure:2167: result: no
configure:2138: checking for CC
configure:2167: result: no
configure:2138: checking for cxx
configure:2167: result: no
configure:2138: checking for cc++
configure:2167: result: no
configure:2138: checking for FCC
configure:2167: result: no
configure:2138: checking for KCC
configure:2167: result: no
configure:2138: checking for RCC
configure:2167: result: no
configure:2138: checking for xlC_r
configure:2167: result: no
configure:2138: checking for xlC
configure:2167: result: no
configure:2138: checking for gpp
configure:2167: result: no
configure:2180: checking for C++ compiler version
configure:2183: g++ --version &5
./configure: line 2184: g++: command not found
configure:2186: $? = 127
configure:2188: g++ -v &5
./configure: line 2189: g++: command not found
configure:2191: $? = 127
configure:2193: g++ -V &5
./configure: line 2194: g++: command not found
configure:2196: $? = 127
configure:2219: checking for C++ compiler default output file name
configure:2222: g++ conftest.cc >&5
./configure: line 2223: g++: command not found
configure:2225: $? = 127
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "CLHEP"
| #define PACKAGE_TARNAME "clhep"
| #define PACKAGE_VERSION "2.0.3.2"
| #define PACKAGE_STRING "CLHEP 2.0.3.2"
| #define PACKAGE_BUGREPORT "http://savannah.cern.ch/projects/clhep/ "
| #define PACKAGE "clhep"
| #define VERSION "2.0.3.2"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2264: error: C++ compiler cannot create executables
See `config.log' for more details.

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=i686-pc-linux-gnu
ac_cv_build_alias=i686-pc-linux-gnu
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_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_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-linux-gnu
ac_cv_host_alias=i686-pc-linux-gnu
ac_cv_path_install='/usr/bin/install -c'
ac_cv_prog_AWK=gawk
ac_cv_prog_ac_ct_RANLIB=ranlib
ac_cv_prog_make_make_set=yes
ac_cv_target=i686-pc-linux-gnu
ac_cv_target_alias=i686-pc-linux-gnu

## ----------------- ##
## Output variables. ##
## ----------------- ##

ACLOCAL='${SHELL} /home/boram/CLHEP/2.0.3.2/CLHEP/missing --run aclocal-1.9'
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR='${SHELL} /home/boram/CLHEP/2.0.3.2/CLHEP/missing --run tar'
AM_CXXFLAGS=''
AM_LDFLAGS=''
AR=''
ARFLAGS=''
AUTOCONF='${SHELL} /home/boram/CLHEP/2.0.3.2/CLHEP/missing --run autoconf'
AUTOHEADER='${SHELL} /home/boram/CLHEP/2.0.3.2/CLHEP/missing --run autoheader'
AUTOMAKE='${SHELL} /home/boram/CLHEP/2.0.3.2/CLHEP/missing --run automake-1.9'
AWK='gawk'
BUILD_SHARED_FALSE=''
BUILD_SHARED_TRUE=''
BUILD_STATIC_FALSE=''
BUILD_STATIC_TRUE=''
BUILD_VISUAL_FALSE=''
BUILD_VISUAL_TRUE=''
COPY_P=''
CPPFLAGS=''
CXX='g++'
CXXCPP=''
CXXDEPMODE=''
CXXFLAGS=''
CYGPATH_W='echo'
DEFS=''
DEPDIR=''
DIFF_Q=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EXEEXT=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='${SHELL} $(install_sh) -c -s'
LDFLAGS=''
LIBOBJS=''
LIBS=''
LN_S='ln -s'
LTLIBOBJS=''
MAKEINFO='${SHELL} /home/boram/CLHEP/2.0.3.2/CLHEP/missing --run makeinfo'
MY_LD=''
MY_SHFLAGS=''
MY_SHLINK=''
MY_SHNAME=''
OBJEXT=''
PACKAGE='clhep'
PACKAGE_BUGREPORT='http://savannah.cern.ch/projects/clhep/ '
PACKAGE_NAME='CLHEP'
PACKAGE_STRING='CLHEP 2.0.3.2'
PACKAGE_TARNAME='clhep'
PACKAGE_VERSION='2.0.3.2'
PATH_SEPARATOR=':'
RANLIB='ranlib'
SET_MAKE=''
SHELL='/bin/sh'
SHEXT=''
STRIP=''
USE_GMAKE_FALSE=''
USE_GMAKE_TRUE=''
VERSION='2.0.3.2'
ac_ct_CXX='g++'
ac_ct_RANLIB='ranlib'
ac_ct_STRIP=''
am__fastdepCXX_FALSE=''
am__fastdepCXX_TRUE=''
am__include=''
am__leading_dot='.'
am__quote=''
am__tar='${AMTAR} chof - "$$tardir"'
am__untar='${AMTAR} xf -'
bindir='${exec_prefix}/bin'
build='i686-pc-linux-gnu'
build_alias=''
build_cpu='i686'
build_os='linux-gnu'
build_vendor='pc'
datadir='${prefix}/share'
exec_prefix='NONE'
host='i686-pc-linux-gnu'
host_alias=''
host_cpu='i686'
host_os='linux-gnu'
host_vendor='pc'
includedir='${prefix}/include'
infodir='${prefix}/info'
install_sh='/home/boram/CLHEP/2.0.3.2/CLHEP/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localstatedir='${prefix}/var'
mandir='${prefix}/man'
mkdir_p='mkdir -p --'
oldincludedir='/usr/include'
prefix='NONE'
program_transform_name='s,x,x,'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
subdirs=' Units Vector Evaluator GenericFunctions Geometry Random Matrix RandomObjects RefCount Cast Exceptions'
sysconfdir='${prefix}/etc'
target='i686-pc-linux-gnu'
target_alias=''
target_cpu='i686'
target_os='linux-gnu'
target_vendor='pc'
use_exceptions='#undef ENABLE_ZOOM_EXCEPTIONS'

## ----------- ##
## confdefs.h. ##
## ----------- ##

#define PACKAGE "clhep"
#define PACKAGE_BUGREPORT "http://savannah.cern.ch/projects/clhep/ "
#define PACKAGE_NAME "CLHEP"
#define PACKAGE_STRING "CLHEP 2.0.3.2"
#define PACKAGE_TARNAME "clhep"
#define PACKAGE_VERSION "2.0.3.2"
#define VERSION "2.0.3.2"

configure: exit 77

이유가 무엇일까요...ㅜㅜㅜ

parkon의 이미지

흠, c++이나 g++이 없다고 나오는 군요,

프람프트 상에서 c++이나 g++ 쳐도 그런 명령어 없다고 나오는 건지,
있음 어느 디렉토리에 있는지,
그 디렉토리가 저 위 configure script에 등록되었는지 우선 알아 보시는게 좋지 않을까요 ?

bora999의 이미지

어떻게 알아보는건지 알수있을까요?^^;;

사실은 초보라서

어디서부터 문제인지 잘 모르겠습니다...

ipes4579의 이미지

gcc만 설치할 것이 아니라 gcc-c++ 등 여러가지 관련 패키지들을 설치하셔야 합니다.

그냥 용량도 얼마 안하니 맘편하게 gcc로 검색해서 나오는거 다 설치하세요. ^^ libgcc, cpp 이런거 다요~ ^^

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.