在 2009年8月25日 星期二 08:27:25,深蓝 写道:
> 我使用apt来获得源码极其补丁
> 
> 
> sudo apt-get sources grub
> sudo tar -xzvf grub_0.97.orig.tar.gz
> sudo gzip -d grub_0.97-29ubuntu53.diff.gz
> 
> cd grub_0.97
> sudo patch -Np1 -i ../grub_0.97-29ubuntu53.diff
> sudo ./configure --prefix=/usr
> 
> 然后就出现如如下错误
> 
> 
> checking for a BSD-compatible install... /usr/bin/install -c
> checking whether build environment is sane... yes
> checking for gawk... gawk
> checking whether make sets $(MAKE)... yes
> checking build system type... x86_64-unknown-linux-gnu
> checking host system type... x86_64-unknown-linux-gnu
> checking whether to enable maintainer-specific portions of Makefiles... no
> checking for gcc... gcc
> checking for gcc... (cached) gcc
> checking for C compiler default output file name... configure: error: C
> compiler cannot create executables
> See `config.log' for more details.
> 
> 
> 上网查询许久也不能找到解决的方法,敬请赐教!
> 
> 
> 不要因为生活的忙碌而放弃了梦想!
> 
 sudo apt-get install build-essential

Attachment: signature.asc
Description: This is a digitally signed message part.

-- 
ubuntu-zh mailing list
ubuntu-zh@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-zh

回复