f981545521
纸上得来终觉浅,绝知此事要躬行。

导航

 

1.apt-get install gcc
2.apt-get install make
3.apt-get install gdb


apt-get install build-essential  这个命令最方便,把所有要安装的全部安装好:build-essential是c语言的开发包,包含了gcc make gdb和libc函数库 很多工具。

 

 

ln -s /usr/bin/gcc-4.1 /usr/bin/gcc

安装不成功的解决办法:

你把source.list换成下面的这个,你的那个格式不对,有问题:

# cat /etc/apt/sources.list
deb http://mirrors.xmission.com/debian/ testing main non-free contrib
deb http://http.us.debian.org/debian testing main contrib non-free
deb http://ftp.us.debian.org/debian testing main non-free contrib

然后运行:

apt-get update

然后:

apt-get install build-essential

就行了

 

root@debian:/# gcc
gcc: no input files

这提示就安装完成了

posted on 2016-03-13 20:03  IMFY  阅读(204)  评论(0)    收藏  举报