为什么我安装软件总是出现以下的提示:
checking for gcc... no
checking for cc... no
checking for cc... no
checking for cl... no
是不是没有安装gcc的原因呢?
但是我下载了gcc-4.1.0.tar.bz2 解压出gcc-4.1.0 然后执行以下命令及出现的提示,有谁知道我在哪里出错了
[root@localhost tools]# pwd
/root/tools
[root@localhost tools]# cd gcc-4.1.0
[root@localhost gcc-4.1.0]# pwd
/root/tools/gcc-4.1.0
[root@localhost gcc-4.1.0]# ./configure
creating cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for a BSD compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for gcc... no
checking for cc... no
configure: error: no acceptable cc found in $PATH
[root@localhost gcc-4.1.0]#


羽飞 于 2008-01-22 13:58:04发表:
把机子连上网
用yum
yum install gcc
我正在解决问题的,我想马上就好了的!
deepwhite 于 2007-11-27 10:37:29发表:
你使用的RHEL?
那就自己去rpmfind上面慢慢找、下载相应的包吧。
木易 于 2007-11-24 22:36:06发表:
按照楼上所说的安装yum出现了相似的问题
1.安装gcc-3.1-1
[root@localhost rpm]# yum localinstall gcc-3.1-1.i386.rpm
Loading "installonlyn" plugin
Loading "rhnplugin" plugin
This system is not registered with RHN.
RHN support will be disabled.
Setting up Local Package Process
Examining gcc-3.1-1.i386.rpm: gcc - 3.1-1.i386
Marking gcc-3.1-1.i386.rpm to be installed
Setting up repositories
No Repositories Available to Set Up
Reading repository metadata in from local files
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Package gcc.i386 0:3.1-1 set to be updated
--> Running transaction check
--> Processing Dependency: cpp = 3.1 for package: gcc
--> Finished Dependency Resolution
Error: Missing Dependency: cpp = 3.1 is needed by package gcc
[root@localhost rpm]#
2.安装 gcc-4.0.2-8
[root@localhost rpm]# yum localinstall gcc-4.0.2-8.fc4.i386.rpm
Loading "installonlyn" plugin
Loading "rhnplugin" plugin
This system is not registered with RHN.
RHN support will be disabled.
Setting up Local Package Process
Examining gcc-4.0.2-8.fc4.i386.rpm: gcc - 4.0.2-8.fc4.i386
Marking gcc-4.0.2-8.fc4.i386.rpm to be installed
Setting up repositories
No Repositories Available to Set Up
Reading repository metadata in from local files
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Package gcc.i386 0:4.0.2-8.fc4 set to be updated
--> Running transaction check
--> Processing Dependency: glibc-devel >= 2.2.90-12 for package: gcc
--> Finished Dependency Resolution
Error: Missing Dependency: glibc-devel >= 2.2.90-12 is needed by package gcc
[root@localhost rpm]#
3.安装gcc-4.1.2-12
[root@localhost rpm]# yum localinstall gcc-4.1.2-12.i386.rpm
Loading "installonlyn" plugin
Loading "rhnplugin" plugin
This system is not registered with RHN.
RHN support will be disabled.
Setting up Local Package Process
Examining gcc-4.1.2-12.i386.rpm: gcc - 4.1.2-12.i386
Marking gcc-4.1.2-12.i386.rpm to be installed
Setting up repositories
No Repositories Available to Set Up
Reading repository metadata in from local files
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Package gcc.i386 0:4.1.2-12 set to be updated
--> Running transaction check
--> Processing Dependency: cpp = 4.1.2-12 for package: gcc
--> Processing Dependency: glibc-devel >= 2.2.90-12 for package: gcc
--> Processing Dependency: libgomp = 4.1.2-12 for package: gcc
--> Processing Dependency: libgcc >= 4.1.2-12 for package: gcc
--> Finished Dependency Resolution
Error: Missing Dependency: cpp = 4.1.2-12 is needed by package gcc
Error: Missing Dependency: glibc-devel >= 2.2.90-12 is needed by package gcc
Error: Missing Dependency: libgomp = 4.1.2-12 is needed by package gcc
Error: Missing Dependency: libgcc >= 4.1.2-12 is needed by package gcc
[root@localhost rpm]#
木易 于 2007-11-24 22:27:56发表:
安了一下午还没有安装好,郁闷 ,下面我把安装中出现的错误都贴出来,让大家看看怎样可以解决
1.安装gcc-3.1-1说缺少cpp 3.1 我在网上搜了很久没有找到这个版本,我的机子里现在的版本是4.0.2
[root@localhost rpm]#rpm -ivh gcc-3.1-1.i386.rpm
error: Failed dependencies:
cpp = 3.1 is needed by gcc-3.1-1.i386
[root@localhost rpm]# rpm -q cpp
cpp-4.0.2-8.fc4
2.安装 gcc-4.0.2-8.fc4.i386说glibc-devel版本必须大于2.2.90-12,然后我安装glibc-devel-2.3.2-11.9.i386.rpm 系统要求glibc的版本必须是 2.3.2 ,我现在机子里的glibc的版本是2.5-12,将glibc的版本降低老的 2.3.2一下子出了一堆错误,不知是什么意思,由于太长我只复制其中的一部分。
[root@localhost rpm]#rpm -ivh gcc-4.0.2-8.fc4.i386.rpm
warning: gcc-4.0.2-8.fc4.i386.rpm: Header V3 DSA signature: NOKEY, key ID 4f2a6fd2
error: Failed dependencies:
glibc-devel >= 2.2.90-12 is needed by gcc-4.0.2-8.fc4.i386
[root@localhost rpm]#
[root@localhost Desktop]# rpm -ivh glibc-devel-2.3.2-11.9.i386.rpm
warning: glibc-devel-2.3.2-11.9.i386.rpm: Header V3 DSA signature: NOKEY, key ID db42a60e
error: Failed dependencies:
glibc = 2.3.2 is needed by glibc-devel-2.3.2-11.9.i386
[root@localhost rpm]# rpm -q glibc
glibc-2.5-12
[root@localhost rpm]# rpm -Uvh --oldpackage glibc-2.3.2-15.i386.rpm
....................
.....................
rtld(GNU_HASH) is needed by (installed) xorg-x11-drv-s3-0.4.1-2.1.i386
rtld(GNU_HASH) is needed by (installed) xorg-x11-drv-jamstudio-1.1.0-1.1.i386
rtld(GNU_HASH) is needed by (installed) xorg-x11-drv-glint-1.1.1-4.1.i386
rtld(GNU_HASH) is needed by (installed) xorg-x11-drv-i810-1.6.5-9.2.el5.i386
rtld(GNU_HASH) is needed by (installed) xorg-x11-drv-i128-1.2.0-4.i386
rtld(GNU_HASH) is needed by (installed) xorg-x11-drv-calcomp-1.1.0-1.1.i386
rtld(GNU_HASH) is needed by (installed) xorg-x11-drv-fbdev-0.3.0-2.i386
rtld(GNU_HASH) is needed by (installed) xorg-x11-drv-ati-6.6.3-3.2.el5.i386
rtld(GNU_HASH) is needed by (installed) xorg-x11-drv-citron-2.2.0-1.1.i386
rtld(GNU_HASH) is needed by (installed) xorg-x11-drv-neomagic-1.1.1-2.1.i386
rtld(GNU_HASH) is needed by (installed) xorg-x11-drv-chips-1.1.1-2.1.i386
rtld(GNU_HASH) is needed by (installed) xorg-x11-drv-mga-1.4.2-5.el5.i386
rtld(GNU_HASH) is needed by (installed) xorg-x11-drv-tseng-1.1.0-3.1.i386
rtld(GNU_HASH) is needed by (installed) xorg-x11-drv-ur98-1.1.0-1.1.i386
rtld(GNU_HASH) is needed by (installed) xorg-x11-drv-elo2300-1.1.0-1.1.i386
rtld(GNU_HASH) is needed by (installed) synaptics-0.14.4-8.fc6.i386
rtld(GNU_HASH) is needed by (installed) linuxwacom-0.7.4.3-2.el5.i386
rtld(GNU_HASH) is needed by (installed) lv-4.51-8.1.i386
rtld(GNU_HASH) is needed by (installed) xen-libs-3.0.3-25.el5.i386
rtld(GNU_HASH) is needed by (installed) lrzsz-0.12.20-22.1.i386
rtld(GNU_HASH) is needed by (installed) scim-libs-1.4.4-39.el5.i386
rtld(GNU_HASH) is needed by (installed) scim-1.4.4-39.el5.i386
rtld(GNU_HASH) is needed by (installed) scim-tables-0.5.6-7.i386
rtld(GNU_HASH) is needed by (installed) scim-bridge-0.4.5-7.el5.i386
rtld(GNU_HASH) is needed by (installed) libwvstreams-4.2.2-2.1.i386
rtld(GNU_HASH) is needed by (installed) isdn4k-utils-3.2-50.1.i386
rtld(GNU_HASH) is needed by (installed) wvdial-1.54.0-5.2.2.1.i386
rtld(GNU_HASH) is needed by (installed) scim-bridge-gtk-0.4.5-7.el5.i386
rtld(GNU_HASH) is needed by (installed) minicom-2.1-3.i386
rtld(GNU_HASH) is needed by (installed) scim-qtimm-0.9.4-5.i386
rtld(GNU_HASH) is needed by (installed) scim-pinyin-0.5.91-15.el5.i386
rtld(GNU_HASH) is needed by (installed) scim-chewing-0.3.1-10.el5.i386
rtld(GNU_HASH) is needed by (installed) scim-chinese-standard-0.0.2-1.el5.i386
rtld(GNU_HASH) is needed by (installed) libvirt-python-0.1.8-15.el5.i386
rtld(GNU_HASH) is needed by (installed) libvirt-0.1.8-15.el5.i386
rtld(GNU_HASH) is needed by (installed) xen-3.0.3-25.el5.i386
rtld(GNU_HASH) is needed by (installed) stardict-2.4.5-5.i386
rtld(GNU_HASH) is needed by (installed) gnome-python2-gnomekeyring-2.16.0-1.fc6.i386
rtld(GNU_HASH) is needed by (installed) virt-manager-0.2.6-7.el5.i386
rtld(GNU_HASH) is needed by (installed) gnome-applet-vm-0.1.2-1.el5.i386
rtld(GNU_HASH) is needed by (installed) libgomp-4.1.1-52.el5.i386
/etc/ld.so.conf.d is needed by (installed) qt-3.3.6-20.el5.i386
/usr/bin/gencat is needed by (installed) redhat-lsb-3.1-12.2.EL.i386
/usr/bin/getconf is needed by (installed) redhat-lsb-3.1-12.2.EL.i386
/usr/bin/localedef is needed by (installed) redhat-lsb-3.1-12.2.EL.i386
......................
......................
3.安装gcc-4.1.2-12缺的文件更多了
[root@localhost rpm]# rpm -ivh gcc-4.1.2-12.i386.rpm
warning: gcc-4.1.2-12.i386.rpm: Header V3 DSA signature: NOKEY, key ID 4f2a6fd2
error: Failed dependencies:
cpp = 4.1.2-12 is needed by gcc-4.1.2-12.i386
glibc-devel >= 2.2.90-12 is needed by gcc-4.1.2-12.i386
libgcc >= 4.1.2-12 is needed by gcc-4.1.2-12.i386
libgomp = 4.1.2-12 is needed by gcc-4.1.2-12.i386
[root@localhost rpm]#
deepwhite 于 2007-11-24 20:36:45发表:
还是用yum吧。
yum install gcc
或者在gcc-4.1.2-12.i386.rpm的文件夹下输入:
yum localinstall gcc-4.1.2-12.i386.rpm
[ 本帖最后由 deepwhite 于 2007-11-24 20:37 编辑 ]
木易 于 2007-11-24 16:20:14发表:
后来我下载了rpm包的gcc,但是还是安装不上去
[root@localhost Desktop]# rpm -ivh gcc-4.1.2-12.i386.rpm
warning: gcc-4.1.2-12.i386.rpm: Header V3 DSA signature: NOKEY, key ID 4f2a6fd2
error: Failed dependencies:
cpp = 4.1.2-12 is needed by gcc-4.1.2-12.i386
glibc-devel >= 2.2.90-12 is needed by gcc-4.1.2-12.i386
libgcc >= 4.1.2-12 is needed by gcc-4.1.2-12.i386
libgomp = 4.1.2-12 is needed by gcc-4.1.2-12.i386
libgomp.so.1 is needed by gcc-4.1.2-12.i386
[root@localhost Desktop]#
有谁知道是什么原因帮以下呀,我在网上搜了半天也没有看到解决的办法