<div><blockquote class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none; padding: 0px;"></blockquote><blockquote class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none; padding: 0px;">我使用apt来获得源码极其补丁<blockquote class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none; padding: 0px;">
<br>sudo apt-get sources grub<br>sudo tar -xzvf grub_0.97.orig.tar.gz<br>sudo gzip -d grub_0.97-29ubuntu53.diff.gz<br><br>cd grub_0.97<br>sudo patch -Np1 -i ../grub_0.97-29ubuntu53.diff<br>sudo ./configure --prefix=/usr<br>
</blockquote></blockquote>然后就出现如如下错误<br><blockquote class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none; padding: 0px;"><div><br></div><div>checking for a BSD-compatible install... /usr/bin/install -c</div>
<div>checking whether build environment is sane... yes</div><div>checking for gawk... gawk</div><div>checking whether make sets $(MAKE)... yes</div><div>checking build system type... x86_64-unknown-linux-gnu</div><div>checking host system type... x86_64-unknown-linux-gnu</div>
<div><font class="Apple-style-span" color="#FF0000">checking whether to enable maintainer-specific portions of Makefiles... no</font></div><div>checking for gcc... gcc</div><div>checking for gcc... (cached) gcc</div><div>
<font class="Apple-style-span" color="#FF0000">checking for C compiler default output file name... configure: error: C compiler cannot create executables</font></div><div><div>See `config.log&#39; for more details.</div></div>
</blockquote></div><div><div><br></div><div>上网查询许久也不能找到解决的方法,敬请赐教! </div><div><br></div><div><br>不要因为生活的忙碌而放弃了梦想!<br>
</div></div>