[qistion] ubuntu-amd64-9.04-cann't Compile grub-0.97 through

Colin Watson cjwatson at ubuntu.com
Thu Sep 10 11:34:01 BST 2009

On Tue, Aug 25, 2009 at 08:48:59AM +0800, 深蓝 wrote:
> 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

All this is unnecessary - 'apt-get source grub' (no sudo needed) will
fetch and unpack the source for you.

> sudo ./configure --prefix=/usr

'debian/rules build', again no sudo; or, better, install the
'devscripts' package and use 'debuild -b -uc -us'. In general you should
just build source as an ordinary user.

> checking for C compiler default output file name... configure: error: C
> compiler cannot create executables

You probably forgot to 'sudo apt-get install build-essential' before all
of this, to get basic development packages installed.

Colin Watson                                       [cjwatson at ubuntu.com]

More information about the ubuntu-devel mailing list