LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: [lvs-users] Configuring keepalived on Centos 5.1

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: [lvs-users] Configuring keepalived on Centos 5.1
From: Graeme Fowler <graeme@xxxxxxxxxxx>
Date: Tue, 08 Apr 2008 07:07:52 +0100
Hi Sid

On Mon, 2008-04-07 at 18:06 -0700, Sid Stuart wrote:
> The configure script for keepalived requires that the kernel sources be
> installed. If they are not, it generates the following error messages,
> 
> configure: WARNING: Cannot determine Linux Kernel version.
> 
> configure: WARNING: keepalived will be built without LVS support.

I'm not sure if you're just reporting this, asking for it to be fixed,
or telling us that you did. I'll assume the latter.

> To install the kernel source on Centos, use "yum install kernel-devel"
> 
> Once the source is installed, go /usr/src and make a symbolic link from the
> current kernel source directory to /usr/src/linux. On my machine the command
> is,
> 
> ln -s kernels/2.6.18-53.1.14.el5-x86_64 linux

Better to use the switch to keepalived's configure script:

  --with-kernel-dir=DIR   path to linux kernel source directory

in your case,
--with-kernel-dir=/usr/src/kernels/2.6.18-53.1.14.el5-x86_64

Then run ./configure.

If you start linking things, you could run into problems with other apps
since they may not expect to find /usr/src/linux.

Graeme



<Prev in Thread] Current Thread [Next in Thread>