2011-12-23 18 views
1

設定コマンドは、口が達者DirectoryへGLIB:のconfigure:エラー:Cコンパイラは

移動されているWindowsで実行可能ファイルを作成することはできません - >ウィンドウに口が達者なパッケージを設定しながら

./configure --prefix="Installation directory"

このコマンドを実行し、それ以下の結果を示す。私はGLibのpackage.Iからのconfigureファイルをコンパイルするために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で試しましたが、結果は同じです。

EDIT

ログの詳細:

提供されるエラーの詳細はログこの問題を解決する方法

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

@ Ismael:どのようにこのエラーを解決するには?私は私のシステムで行政上の特権を持っていません。これを克服する方法を提案してください。 – karthik

+0

これらのディレクトリのアクセス権を修正する権限を持つ人に尋ねるべきです。または、別の場所からファイルをコピーし、代わりにコピーを使用することもできます。 –

+0

@ Ismael:あなたの解決策は+1。 – karthik

関連する問題