简体   繁体   English

GLIB:配置:错误:C编译器无法在Windows中创建可执行文件

[英]GLIB: configure: error: C compiler cannot create executables in windows

Configure Command is 现“配置命令”为

Go to Glib Directory -> run this command 转到Glib目录->运行此命令

./configure --prefix="Installation directory"

While configure the Glib package in windows, It shows the following results. 在Windows中配置Glib软件包时,它显示以下结果。

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.

I am using minGW to compile the configure file from GLib package.I am using mSys version 1.0 and Gcc 4.6.1 version . 我正在使用minGW从GLib mSys version 1.0 and Gcc 4.6.1 version编译配置文件。我正在使用mSys version 1.0 and Gcc 4.6.1 version

Both Cygwin and msys are installed in my system. Cygwin和msys都安装在我的系统中。

Even I tried with cygwin but the results are same. 即使我尝试使用cygwin但结果相同。

EDIT 编辑

Log Details: 日志详细信息:

Provided the Error details contains in the log 提供的错误详细信息包含在日志中

  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

How to solve this issue? 如何解决这个问题?

There you have the errors: 那里有错误:

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

Different users maybe...? 可能是不同的用户...?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 配置错误:C 编译器无法创建可执行文件 - configure error: C compiler cannot create executables pyenv 配置:错误:C 编译器无法创建可执行文件 - pyenv configure: error: C compiler cannot create executables 配置:错误:安装或配置 — C 编译器无法创建可执行文件 - configure: error: installation or configuration — C compiler cannot create executables 配置:错误:C 编译器无法创建可执行文件 - Mac Sierra - configure: error: C compiler cannot create executables - Mac Sierra 配置:错误:C 编译器无法创建可执行文件(macOS:Big Sur) - configure: error: C compiler cannot create executables (macOS: Big Sur) MacOS:配置:错误:C 编译器无法创建可执行文件 - MacOS: configure: error: C compiler cannot create executables 配置失败,显示“ C编译器无法创建可执行文件” - configure fails with “C compiler cannot create executables” 配置:错误:Fortran 编译器无法创建可执行文件 - configure: error: Fortran compiler cannot create executables 错误:C编译器无法创建可执行文件 - error: C compiler cannot create executables HDF-EOS配置失败,“ C编译器无法创建可执行文件” - HDF-EOS configure fails, “C compiler cannot create executables”
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM