LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: a problem about installing ipvsadm-1.21-9

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: a problem about installing ipvsadm-1.21-9
From: Horms <horms@xxxxxxxxxxxx>
Date: Thu, 3 Jun 2004 00:57:37 +0900
On Wed, Jun 02, 2004 at 07:19:19PM +0800, lu.peng wrote:
> hi, all,
>       my machine is Trustix Box(http://www.trustix.org), kernel is
>       2.4.26.  I download linux-2.4.21.tar.bz2 and patch
>       linux-2.4.21-ipvs-1.0.10.patch, and recompile the kernel , all
>       the things seems ok. 

So far so good. Although 2.4.26 includes LVS, so you 
can probably just use the Trustix kernel. That is,
assuming they compile LVS into the kernel or as a
module.

>       Then i try to install
>       ipvsadm-1.21-9(ipvsadm-1.21-9.src.rpm),use rpm --rebuild
>       ipvsadm-1.21-9.src.rpm, error information exist:
>       
> --------------------------------------------------------------------------------------------------------------
>       error reading information on service ipvsadm: No such file or
>       directory error: execution of %post scriptlet from
>       ipvsadm-1.21-9 failed, exit status 1

That seems pretty strange. Seems that rpm is trying to
do something other than rebuild the package. Have you
tried rpmbuild --rebuild ipvsadm-1.21-9.src.rpm ?
>       
> --------------------------------------------------------------------------------------------------------------
>       and  i try to uninstall it by "rpm -e" , it doesn't wok. the
>       error messages like that :
>       
> --------------------------------------------------------------------------------------------------------------
>       error reading information on service ipvsadm: No such file or
>       directory error: execution of %preun scriptlet from
>       ipvsadm-1.21-9 failed, exit status 1
>       
> ----------------------------------------------------------------------------------------------------------------
>
> what's the problem ????

--rebuild does not install the package. It just tries
to build a binary package from the source package.
So natrually, you can't subsequently uninstall ipvsadm,
it was never installed.

Try this

rpmbuild --rebuild ipvsadm-1.21-9.src.rpm

If this succedes it should produce ipvsadm-1.21-9.i386.rpm,
the output of the above command should tell you the exact name
and location of this package. Install it using

rpm -hUv ipvsadm-1.21-9.i386.rpm

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