linux安装程序报gcc: error trying to exec 'cc1': execvp: Not a directory安装了gcc了以下config.log
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 求高手。。。
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
请问redhat安装cc有下载地址吗?一直没找到。服务器上没有联网
先安装cc试试
没人吗??