LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 694|回复: 3

为什么说我没装gcc

[复制链接]
发表于 2006-10-30 15:29:42 | 显示全部楼层 |阅读模式
我用dpkg -l|grep gcc有如下信息

ii  gcc-3.3-base                      3.3.6-10                       The GNU Compiler Collection (base package)
ii  gcc-4.0                           4.0.2-8                        The GNU C compiler
ii  gcc-4.0-base                      4.0.2-8                        The GNU Compiler Collection (base package)
ii  libgcc1                           4.0.2-8                        GCC support library

为什么我用gcc -o main a.c时说没有gcc命令
发表于 2006-10-30 15:37:19 | 显示全部楼层
建议你把 gcc 这个包装上估计就有了
回复 支持 反对

使用道具 举报

发表于 2006-10-30 16:41:27 | 显示全部楼层
ln -s /usr/bin/gcc-<x.y> /usr/bin/gcc
ln -s /usr/bin/g++-<x.y> /usr/bin/g++

<x.y> is the default version,maybe gcc-4.0 ?
回复 支持 反对

使用道具 举报

发表于 2006-10-30 19:47:35 | 显示全部楼层
aptitude install gcc
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表