2011-12-23 5 views
1

구성 명령 입심 디렉토리로 이동GLIB : 구성 : 오류 : C 컴파일러는

입니다 창에서 실행 파일을 만들 수 없습니다 - 실행> 그것은을

./configure --prefix="Installation directory"

동안이 창에서 입심 패키지를 구성하여이 명령을 다음 결과를 보여줍니다. 내가 입심 package.I에서 구성 파일을 컴파일 할 수는 MinGW을 사용하고

checking for a BSD-compatible install... /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 whether to enable maintainer-specific portions of Makefiles... no 
checking build system type... i686-pc-mingw32 
checking host system type... i686-pc-mingw32 
checking for the BeOS... no 
checking for Win32... yes 
checking for Mac OS X Carbon support... checking for style of include used by make... GNU 
checking for gcc... gcc 
checking for C compiler default output file name... 
configure: error: in `/e/Projects/AVG/Tasks/SVGTask/RSVG/src/glib': 
configure: error: C compiler cannot create executables 
See `config.log' for more details. 

mSys version 1.0 and Gcc 4.6.1 version을 사용하고 있습니다.

Cygwin과 msys가 모두 내 시스템에 설치되어 있습니다.

심지어 cygwin으로 시도했지만 결과는 같습니다.

편집

로그인 세부 사항 :

에서 제공하는 오류 정보는 로그이 문제를 해결하는 방법

gcc version 4.6.1 (GCC) 
    configure:3363: $? = 0 
    configure:3370: gcc -V >&5 
    gcc.exe: error: unrecognized option '-V' 
    gcc.exe: fatal error: no input files 
    compilation terminated. 
    configure:3374: $? = 1 
    configure:3397: checking for C compiler default output file name 
    configure:3419: gcc E:\Projects\AVG\Tasks\SVGTask\RSVG\include  E:\Projects\AVG\Tasks\SVGTask\RSVG\lib conftest.c >&5 
    d:/mingw/bin/../lib/gcc/mingw32/4.6.1/../../../../mingw32/bin/ld.exe: cannot find E:\Projects\AVG\Tasks\SVGTask\RSVG\include: Permission denied 
    d:/mingw/bin/../lib/gcc/mingw32/4.6.1/../../../../mingw32/bin/ld.exe: cannot find E:\Projects\AVG\Tasks\SVGTask\RSVG\lib: Permission denied 
    collect2: ld returned 1 exit status 
    configure:3423: $? = 1 
    configure:3461: result: 
    configure: failed program was: 
    /* confdefs.h. */ 
    #define PACKAGE_NAME "glib" 
    #define PACKAGE_TARNAME "glib" 
    #define PACKAGE_VERSION "2.20.5" 
    #define PACKAGE_STRING "glib 2.20.5" 
    #define PACKAGE_BUGREPORT "http://bugzilla.gnome.org/enter_bug.cgi?product=glib" 
    #define GLIB_MAJOR_VERSION 2 
    #define GLIB_MINOR_VERSION 20 
    #define GLIB_MICRO_VERSION 5 
    #define GLIB_INTERFACE_AGE 5 
    #define GLIB_BINARY_AGE 2005 
    /* end confdefs.h. */ 

    int main() 
    { 

     ; 
    return 0; 
    } 
    configure:3467: error: in `/e/Projects/AVG/Tasks/SVGTask/RSVG/src/glib': 
    configure:3470: error: C compiler cannot create executables 

에 포함? 어쩌면

.../ld.exe: cannot find E:\Projects\AVG\Tasks\SVGTask\RSVG\include: Permission denied 
.../ld.exe: cannot find E:\Projects\AVG\Tasks\SVGTask\RSVG\lib: Permission denied 

다른 사용자 ... :이

+1

'config.log'를 아직 보지 못하셨습니까? –

+0

@ IgnacioVazquez-Abrams : config.log 세부 정보를 업데이트했습니다. 로그 세부 정보를 확인하십시오. – karthik

+0

필자도 같은 오류가 발생했습니다. 그 이유는 CFLAGS = "O0 ..."에서 'O'앞에 '-'가 없기 때문입니다. – ilyaigpetrov

답변

1

당신은 오류가?

+0

@ 이스마엘 :이 오류를 해결하는 방법? 나는 내 시스템에 행정 권한이 없다. 이것을 극복 할 수있는 방법을 제안 해주십시오. – karthik

+0

권한이있는 사람에게 해당 디렉토리의 권한을 수정하도록 요청해야합니다. 또는 다른 방법으로 파일을 복사하고 대신 복사본을 사용하십시오. –

+0

@ Ismael : 귀하의 솔루션에 +1. – karthik