编译linux-0.11 gcc版本问题的解决

ubuntu中编译linux-0.11因为gcc版本问题可能会出现一下错误

命令:make all
结果:

as86 -0 -a -o boot/bootsect.o boot/bootsect.s
ld86 -0 -s -o boot/bootsect boot/bootsect.o
as86 -0 -a -o boot/setup.o boot/setup.s
ld86 -0 -s -o boot/setup boot/setup.o
gcc-3.4 -m32 -g -I./include -traditional -c boot/head.s
make: gcc-3.4: Command not found
Makefile:62: recipe for target 'boot/head.o' failed
make: *** [boot/head.o] Error 127

原因是系统默认使用更高版本的gcc,即使卸载再下载也不能使用低版本,下面是解决方法。
需要工具:新立得软件管理器、gcc3.4的安装包(我所需要的版本)
1.下载新立得软件管理器:sudo apt-get install synaptic
2.gcc3.4:http://old-releases.ubuntu.com/ubuntu/pool/main/g/gcc-3.4/
需要下载三个文件,分别是
cpp-3.4_3.4.6-6ubuntu2_amd64.deb
gcc-3.4-base_3.4.6-6ubuntu2_amd64.deb
gcc-3.4_3.4.6-6ubuntu2_amd64.deb
文件很多,不要下错

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值