2
回答
linux安装程序报gcc: error trying to exec 'cc1': execvp: Not a directory安装了gcc了以下config.log
极速云服务器,低至1.04元/天>>>   
configure:3567: gcc -V >&5
gcc: '-V' option must have argument
configure:3571: $? = 1
configure:3594: checking for C compiler default output file name
configure:3616: gcc    conftest.c  >&5
gcc: error trying to exec 'cc1': execvp: Not a directory
configure:3620: $? = 1
configure:3658: result: 
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "ImageMagick"
| #define PACKAGE_TARNAME "ImageMagick"
| #define PACKAGE_VERSION "6.4.0"
| #define PACKAGE_STRING "ImageMagick 6.4.0"
| #define PACKAGE_BUGREPORT "http://www.imagemagick.org"
| #define PACKAGE "ImageMagick"
| #define VERSION "6.4.0"
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:3665: error: C compiler cannot create executables
See `config.log' for more details


# whereis gcc
gcc: /usr/bin/gcc /usr/lib/gcc /usr/libexec/gcc /usr/share/man/man1/gcc.1.gz

#  rpm -qa|grep gcc
gcc-c++-4.1.2-48.el5
gcc-4.1.2-48.el5
libgcc-4.1.2-48.el5
libgcc-4.1.2-48.el5
compat-libgcc-296-2.96-138

#cat /proc/version
Linux version 2.6.18-194.el5 (mockbuild@x86-005.build.bos.redhat.com) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-48)) #1 SMP Tue Mar 16 21:52:39 EDT 2010

求高手。。。
举报
yuanxu_zhao
发帖于5年前 2回/1K+阅
顶部