[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: compiling grub2 on Ubuntu (Xubuntu) 8.04
From: |
Pavel Roskin |
Subject: |
Re: compiling grub2 on Ubuntu (Xubuntu) 8.04 |
Date: |
Fri, 11 Jul 2008 14:04:15 -0400 |
On Fri, 2008-07-11 at 12:17 -0400, Tom Carpenter wrote:
> Ran into a few problems compiling grub2 (1.96) on my
> Ubuntu box; highlights of the apparent fixes are
>
> - install liblzo2-2 and liblzo2-dev
That's sufficient for me.
> - create a static link named /usr/lib/liblzo2.so to
> /usr/lib/liblzo2.so.2.0.0
That should not be needed. /usr/lib/liblzo2.so is included in
liblzo2-dev.
> 1. first attempt after installing liblzo2-2
...
> checking for __lzo_init_v2 in -llzo2... no
> checking for __lzo_init_v2 in -llzo... no
> checking for __lzo_init2 in -llzo... no
> configure: error: LZO library version 1.02 or later is required
That's to be expected.
> 2. create static link, ran 'configure', then tried running 'make'
> =================================================================
>
> # ls -la /usr/lib | grep lzo
> lrwxrwxrwx 1 root root 16 2008-05-22 14:30 liblzo2.so.2 ->
> liblzo2.so.2.0.0
> -rw-r--r-- 1 root root 125740 2007-06-16 08:58 liblzo2.so.2.0.0
>
> # ln -s /usr/lib/liblzo2.so.2.0.0 /usr/lib/liblzo2.so
>
>
> # ./configure
...
> checking for __lzo_init_v2 in -llzo2... yes
> checking for lzo1x_999_compress... yes
> checking lzo/lzo1x.h usability... no
> checking lzo/lzo1x.h presence... no
> checking for lzo/lzo1x.h... no
> checking lzo1x.h usability... no
> checking lzo1x.h presence... no
> checking for lzo1x.h... no
...
> util/i386/pc/grub-mkimage.c: In function ‘compress_kernel’:
> util/i386/pc/grub-mkimage.c:49: error: ‘lzo_uint’ undeclared (first use in
> this
> function)
That's to be expected. The headers are still missing.
> 3. install liblzo2-dev, re-ran 'configure'; 'make' runs now
> ==========================================================
>
> lzo related messages from re-run of 'configure'
> .
> .
> .
> checking for __lzo_init_v2 in -llzo2... yes
> checking for lzo1x_999_compress... yes
> checking lzo/lzo1x.h usability... yes
> checking lzo/lzo1x.h presence... yes
> checking for lzo/lzo1x.h... yes
> checking lzo1x.h usability... no
> checking lzo1x.h presence... no
> checking for lzo1x.h... no
Now it's working. Creating the link manually wasn't needed.
--
Regards,
Pavel Roskin