2011-12-23 33 views
1

配置命令是GLIB:配置:錯誤:C編譯器不能在Windows中創建可執行文件

轉到油嘴目錄 - >運行此命令

./configure --prefix="Installation directory"

雖然配置油嘴數據包中,它顯示以下結果。

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. 

我使用MinGW的編譯GLib的從該package.I配置文件正在使用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 

如何解決這個問題?

+1

你有沒有試過看到'config.log'的細節呢? – 2011-12-23 07:23:13

+0

@ IgnacioVazquez-Abrams:更新了config.log的詳細信息。請檢查日誌詳細信息。 – karthik 2011-12-23 07:30:55

+0

我有同樣的錯誤,原因是在'CFLAGS ='O0 ...''O'之前缺少' - '。 – ilyaigpetrov 2015-07-11 17:05:41

回答

1

有你有錯誤:

.../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 

不同的用戶也許...?

+0

@伊斯梅爾:如何解決這個錯誤?我的系統中沒有行政許可。請提出如何解決這個問題。 – karthik 2011-12-25 12:53:57

+0

你應該問有權限的人修復這些目錄的權限。或者,也可以從其他地方複製文件,然後使用您的副本。 – 2011-12-27 15:42:50

+0

@ Ismael:爲您的解決方案+1。 – karthik 2011-12-28 05:17:08

相關問題