Gcc GLIB:configure:error:C编译器无法在windows中创建可执行文件
配置命令是 转到Glib目录->运行此命令Gcc GLIB:configure:error:C编译器无法在windows中创建可执行文件,gcc,cygwin,mingw,glib,msys,Gcc,Cygwin,Mingw,Glib,Msys,配置命令是 转到Glib目录->运行此命令 /configure--prefix=“安装目录” 在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 gaw
/configure--prefix=“安装目录”
在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.
我正在使用minGW从GLib包编译配置文件。我正在使用msysversion1.0和gcc4.6.1版本
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
不同的用户可能…?你有没有尝试查看那些详细信息?@IgnacioVazquez Abrams:更新了config.log详细信息。请检查日志详细信息。我也有同样的错误,原因是
CFLAGS=“O0…
@Ismael:如何解决此错误?我的系统中没有管理权限。请建议如何克服此问题。您应该要求有权限的人修复这些目录的权限。或者,从其他地方复制文件并使用您的副本。@Ismael:+1作为您的解决方案。