尽历磨难,搞定OPEN VSWITCH安装

时间:2023-08-08 08:23:02

参考贴:

http://sudomakeinstall.com/linux-systems/installing-openvswitch-on-centos-6-6-5

yum install kernel-headers kernel-devel gcc make python-devel openssl-devel kernel-devel, graphviz kernel-debug-devel automake rpm-build redhat-rpm-config libtool git

cd /root/

wget http://ftp.gnu.org/gnu/autoconf/autoconf-2.64.tar.gz

tar xvf autoconf-2.64.tar.gz

cd autoconf-2.64/

./configure

make

make install

cd /root/

git clone git://git.openvswitch.org/openvswitch

cd openvswitch/

./boot.sh;./configure; make dist

mkdir /root/rpmbuild/SOURCES

cp openvswitch*.tar.gz /root/rpmbuild/SOURCES/

rpmbuild -bb rhel/openvswitch.spec
rpmbuild -bb rhel/openvswitch-kmod-rhel6.spec

rpm -ivh /root/rpmbuild/RPMS/*.rpm

出错:

rpmbuild -bb rhel/openvswitch-kmod-rhel6.spec

produces warning:
Installed (but unpackaged) file(s) found:
/etc/depmod.d/openvswitch.conf

解决:

在openvswitch-kmod-rhel6.spec末尾出添加

%files
%defattr(-,root,root,-)
/etc/depmod.d/openvswitch.conf

尽历磨难,搞定OPEN VSWITCH安装