不上网络在ubuntu7.04下安装编译环境的方法

字体大小: 中小 标准 ->行高大小: 标准
不用上网也可以安装build-essential

解决方案1:
如果你有Ubuntu-7.04-alternate-i386.iso这张盘的话就好办了,没有的话在windows下下载后挂装进来,下载地址:http://mirror.rootguide.org/ubuntu-releases/feisty/ubuntu-7.04-alternate-i386.iso
比如我的alternate盘ISO文件放在/home/woncomp/下,那么开启终端,挂载这张镜像:

$ sudo mount -o loop /home/woncomp/ubuntu-7.04-alternate-i386.iso /cdrom/

然后添加光盘介质为更新源

$ sudo apt-cdrom -m add

这样就可以直接安装build-essential

$ sudo apt-get install build-essential

但是如果你的盘是LiveCD的话(ISO文件为Ubuntu_7.04_20061221_1610.iso 或者文件名上有desktop字样)…………建议你去下载一张alternate或者DVD!

此文章由 http://www.ositren.com 收集整理 ,地址为: http://www.ositren.com/htmls/47438.html