사이트 내 전체검색
PHP
[MySQL] configure: error: no acceptable C compiler found in $PATH (2009-08-19 수정)
로빈아빠
https://cmd.kr/php/733 URL이 복사되었습니다.

본문

[root@localhost mysql]# ./configure --prefix=/usr/local/mysql --localstatedir=/usr/local/mysql/data --sysconfdir=/etc --without-debug --with-charset=euckr --with-extra-charsets=all --with-plugins=innobase
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 a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking "character sets"... default: euckr, collation: euckr_korean_ci; compiled in: euckr latin1 utf8 binary armscii8 ascii big5 cp1250 cp1251 cp1256 cp1257 cp850 cp852 cp866 cp932 dec8 eucjpms euckr gb2312 gbk geostd8 greek hebrew hp8 keybcs2 koi8r koi8u latin1 latin2 latin5 latin7 macce macroman sjis swe7 tis620 ucs2 ujis 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... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/usr/local/mysql':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.


[ 방법1 ]
$PATH (경로) 설정에 문제가 있어서 컴파일러가 발견되지 않았을 가능성이 있습니다.

rpm -qa | grep gcc 명령을 해서 gcc 가 나오는지도 확인

확인 예)
[root@mylinux root]# rpm -qa | grep gcc
libgcc-3.4.6-10
gcc-3.4.6-10                      --> 여기 설치되었다고 나오네요 ^^
[root@localhost mysql]#

위와 비슷한 결과가 나오면 컴파일러가 설치되어 있는 것입니다.
설치가 되어 있다면 $PATH 에 gcc가 들어 있는 디렉토리를 추가합니다.


[ 방법2 ]
[root@localhost mysql]# rpm -qa | grep gcc
libgcc-3.4.6-10
[root@localhost mysql]# yum install gcc    이용해서 설치합니다.


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

yum grouplist
위 명령으로 설치가능한 항목을 확인, 하단의 내용과 관련있는 개발툴을 설치하세요.

설치방법 예는 아래와 같습니다.
yum groupinstall 'Development Tools' 'Development Libraries'


참고자료
네이버 지식인 ( opensrc )
네이버 지식인 ( opensrc )

댓글목록

등록된 댓글이 없습니다.

PHP
871 (5/18P)

Search

Copyright © Cmd 명령어 3.137.160.137