安装完纯净版的系统,一般没有GCC,没有网络,现在开始—— 1、设置网络 没有网络不能联网,便不能通过apt-get install gcc安装。 自动获取IP: # ifconfig eth0 up //激活网卡 # dhclient -r //释放IP # dhclient //获取IP # ifconfig //查看eth0是否配置成功 2、编辑更新源# vi /etc/apt/soures.list 添加源: #………………………… # Line commented out by installer because it failed to verify: deb http://mirrors.163.com/debian/ lenny main contrib non-free deb-src http://mirrors.163.com/debian lenny main contrib non-free # Line commented out by installer because it failed to verify: deb http://volatile.debian.org/debian-volatile lenny/volatile main # Line commented out by installer because it failed to verify: deb-src http://volatile.debian.org/debian-volatile lenny/volatile main 更新:# apt-get update 3、安装GCC# apt-get install gcc ok!!