debian和ubuntu不同、狠多软件都没有预置安装、比如vim啦、比如gcc啦、比如bzip2啦、比如sudo啦、都是顶烦的、600多M的光盘到时里面都装着啥来着、或者说光盘有安装时并没有预置安装进去、使用apt-get安装某些软件时、会弹出叫迩插入光盘的提示、都什么年代来还插插插的、直接联网吧、修改一下soure的文件夹
vim /etc/apt/sources.list
打开后会看到这个
# deb cdrom:[Debian GNU/Linux 6.0.3 _Squeeze_ - Official amd64 CD Binary-1 20111008-14:36]/ squeeze main
##I don't want to use cd with install
# deb cdrom:[Debian GNU/Linux 6.0.3 _Squeeze_ - Official amd64 CD Binary-1 20111008-14:36]/ squeeze main
deb http://mirrors.geekbone.org/debian/ squeeze main
deb-src http://mirrors.geekbone.org/debian/ squeeze main
deb http://security.debian.org/ squeeze/updates main
deb-src http://security.debian.org/ squeeze/updates main
# squeeze-updates, previously known as 'volatile'
deb http://mirrors.geekbone.org/debian/ squeeze-updates main
deb-src http://mirrors.geekbone.org/debian/ squeeze-updates main
其中deb cdrom:指的就是从cd中安装、如果迩不想从cd来安装、那么就注释掉它吧、
然后是安装编译环境、可以1、2、3来安装、或者直接build-essential全部安装
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函数库 很多工具。