The problem still exists:
this is in my test environment:
1) i recompile my kernel to support LVS (Trustix , kernel is 2.4.26, )
2) use "rpmbuild --rebuild ipvsadm-1.21-9.src.rpm" , there's no error , the
result is creating ipvsadm-1.21-9.i586.rpm.
3) i try to install it like that:
-------------------------------------------------------------------------------------------------------------------------------
root@Test_Node9 /usr/src/trustix/rpms/i586# rpm -Uvh ipvsadm-1.21-9.i586.rpm
Preparing... ########################################### [100%]
1:ipvsadm ########################################### [100%]
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
-----------------------------------------------------------------------------------------------------------------------------------
i guest , there must be some bug in the ipvs rpm ....can you check it ?
-----原始邮件-----
发件人: lvs-users-bounces@xxxxxxxxxxxxxxxxxxxxxx
[mailto:lvs-users-bounces@xxxxxxxxxxxxxxxxxxxxxx]代表; Horms
发送时间: 2004年6月2日 23:58
收件人: LinuxVirtualServer.org users mailing list.
主题: Re: a problem about installing ipvsadm-1.21-9
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
_______________________________________________
LinuxVirtualServer.org mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Send requests to lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx
or go to http://www.in-addr.de/mailman/listinfo/lvs-users
|