2010년 4월 10일 토요일

make intall 에러 시에

이놈의 프로젝트에는 개발뿐만아니라 서버도 설치해야 한다.. -_-;;

 

리눅스(redhat 9) 에 gcc가 없어서 어렵게 설치 (yum 설치 후 RHN 등록 에러.. YUM 등록정보 수정 후 PROFTPD를 설치 하려는데.. 아래와 같은 오류 발생... 설치가 중단됐다가 어렵사리 방법을 찾았다...(아래)

 

 

출처: http://ruby-lang.tistory.com/34

========================================================================================================================

2008/03/30 21:59 Linux/centos
mysql설치과정중 설정할때 계속 아래와 같은 오류가 나며, make가 생성되지 않습니다.
며칠째 고생인데, 문제가 뭔지를 모르겠습니다. 고수님들의 답변 부탁드립니다.

<내용>
[root@localhost mysql-4.1.8]# ./configure --prefix=/usr/local/mysql --localstatedir=/usr/local/mysql/data --with-charset=euckr
checking build system type... i686-pc-linux
checking host system type... i686-pc-linux
checking target system type... i686-pc-linux
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 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++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking whether we are using the GNU C++ compiler... no
checking whether g++ accepts -g... no
checking dependency style of g++... none
checking how to run the C preprocessor... gcc -E
checking "C Compiler version"... "gcc gcc (GCC) 4.1.2 20070925 (Red Hat 4.1.2-27)"
./configure: line 4208: g++: command not found
checking "C++ compiler version"... "g++ "
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... /lib/cpp
configure: error: C++ preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
[root@localhost mysql-4.1.8]# make
make: *** 타겟이 지정되지 않았고 메이크파일이 없습니다.  멈춤.


---------------------- 해결 --------------------------

[root@localhost mysql-4.1.8]# ./configure --prefix=/usr/local/mysql --localstatedir=/usr/local/mysql/data --with-charset=euckr
checking build system type... i686-pc-linux
checking host system type... i686-pc-linux
checking target system type... i686-pc-linux
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 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++... no
checking for c++... no

checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking whether we are using the GNU C++ compiler... no
checking whether g++ accepts -g... no
checking dependency style of g++... none
checking how to run the C preprocessor... gcc -E
checking "C Compiler version"... "gcc gcc (GCC) 4.1.2 20070925 (Red Hat 4.1.2-27)"
./configure: line 4208: g++: command not found
checking "C++ compiler version"... "g++ "
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... /lib/cpp
configure: error: C++ preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.

configure 할 때 에러가 발생했습니다.

개발툴을 설치하셔야 mysql 을 컴파일설치하실수 있습니다.

 yum grouplist

  위 명령으로 설치가능한 항목을 확인하시고,

하단의 내용과 관련있는 개발툴을 설치하세요.

설치방법 예는 아래와 같습니다.

 yum groupinstall 'Development Tools' 'Development Libraries'

 

 

===========================================================================================

yum groupinstall '개발용 라이브러리' '개발용도구'

 

이것도 주욱 설치되다가 트랜잭션 체크 에러 떨어지면서 불가 -_-;;

 

삽질은 계속된다.

댓글 없음:

댓글 쓰기