想通过光盘装redhatlinux9的gcc,出现下列错误,请指教!
本来想装vsftpd的,但是:
[root@juanzi001 root]# cd vsftpd-1.2.0
[root@juanzi001 vsftpd-1.2.0]# make
gcc -c main.c -O2 -Wall -W -Wshadow -idirafter dummyinc
make: gcc: Command not found
make: *** [main.o] Error 127
[root@juanzi001 vsftpd-1.2.0]# cd
[root@juanzi001 root]# ls
anaconda-ks.cfg gcc-c++-3.2.2-5.i386.rpm install.log install.log.syslog vsftpd-1.2.0 vsftpd-1.2.0.tar.gz
[root@juanzi001 root]# rpm -ivh gcc-c++-3.2.2-5.i386.rpm
warning: gcc-c++-3.2.2-5.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e
error: Failed dependencies:
gcc = 3.2.2-5 is needed by gcc-c++-3.2.2-5
libstdc++-devel = 3.2.2 is needed by gcc-c++-3.2.2-5
又尝试这个:
[root@juanzi001 RPMS]# rpm -ivh gcc*
warning: gcc-3.2.2-5.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e
error: Failed dependencies:
binutils >;= 2.12.90.0.7-1 is needed by gcc-3.2.2-5
cpp = 3.2.2-5 is needed by gcc-3.2.2-5
glibc-devel >;= 2.2.90-12 is needed by gcc-3.2.2-5
libstdc++-devel = 3.2.2 is needed by gcc-c++-3.2.2-5
libf2c = 3.2.2-5 is needed by gcc-g77-3.2.2-5
libgnat = 3.2.2-5 is needed by gcc-gnat-3.2.2-5
libgcj >;= 3.2.2 is needed by gcc-java-3.2.2-5
libgcj-devel >;= 3.2.2 is needed by gcc-java-3.2.2-5
libobjc = 3.2.2-5 is needed by gcc-objc-3.2.2-5
[root@juanzi001 RPMS]#
请教这是什么错误呢?
谢谢!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(8)
libstdc++-devel = 3.2.2 is needed by gcc-c++-3.2.2-5
这句的意思是你要先装libstdc++-devel
redhat-config-packages
选择编辑工具,它会自己安装关于gcc的所有包.
我用的是最小安装,,,,test界面,该怎么办呢?
[root@juanzi001 root]# redhat-config-packages
Unable to import gtk module. This may be due to running without
$DISPLAY set. Exception was:
could not open display
Traceback (most recent call last):
File "/usr/share/redhat-config-packages/MainWindow.py", line 11, in ?
sys.exit(0)
NameError: name 'sys' is not defined
[root@juanzi001 RPMS]# rpm -ivh libstdc++-3.2.2-5.i386.rpm
warning: libstdc++-3.2.2-5.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e
Preparing... ########################################### [100%]
package libstdc++-3.2.2-5 is already installed
[root@juanzi001 root]# rpm -ivh gcc*
warning: gcc-3.2.2-5.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e
error: Failed dependencies:
binutils >;= 2.12.90.0.7-1 is needed by gcc-3.2.2-5
cpp = 3.2.2-5 is needed by gcc-3.2.2-5
glibc-devel >;= 2.2.90-12 is needed by gcc-3.2.2-5
libstdc++-devel = 3.2.2 is needed by gcc-c++-3.2.2-5
libf2c = 3.2.2-5 is needed by gcc-g77-3.2.2-5
libgnat = 3.2.2-5 is needed by gcc-gnat-3.2.2-5
libgcj >;= 3.2.2 is needed by gcc-java-3.2.2-5
libgcj-devel >;= 3.2.2 is needed by gcc-java-3.2.2-5
libobjc = 3.2.2-5 is needed by gcc-objc-3.2.2-5
请问这个 2.12.90.0.7-1是那里的包,光盘上怎么找不到呢?
难道再没有其他办法了吗?
老是没有这个没有哪个的,,,,,,,,,,,,,,,
进入目录后 先 别忙着make 先运行一下./configure
还有就是把你系统里的ftp工具先rpm -e 掉 试试吧
不行的话只有一步步按照系统提示缺什么装什么了
make: gcc: Command not found
根据这一句,你的gcc没有安装成功,用redhat-config-packages添加gcc吧。
我用的是最小安装,,,,test界面,该怎么办呢?
[root@juanzi001 root]# redhat-config-packages
Unable to import gtk module. This may be due to running without
$DISPLAY set. Exception was:
could not open display
Traceback (most recent call last):
File "/usr/share/redhat-config-packages/MainWindow.py", line 11, in ?
sys.exit(0)
NameError: name 'sys' is not defined
不起作用,这个!