我要评分
获取效率
正确性
完整性
易理解

Installing Dependencies

Before compiling Open vSwitch, install the required compilation dependencies.

  1. Install the general compilation dependencies.
    1
    $ yum install make gcc clang python3 openssl openssl-libs unbound* libcap-ng* libtool unbound python3 python-netifaces python-twisted-core libreswan
    
  2. (Optional) Install the kernel compilation dependencies.

    You can directly use the built-in kernel module of the Linux kernel or compile the kernel module code provided in the Open vSwitch distribution. You need to perform the operations in this section only when you need to compile the corresponding kernel module code. In addition, you can also choose to use the pure user control implementation of the compilation mode, but there are some functional and performance costs.

    1
    $ yum install kernel kernel-headers gcc
    
  3. (Optional) Install the RPM package compilation dependencies.

    If you need to pack the compilation package into a .deb or .rpm package, run the following command to install the RPM package compilation dependencies:

    1
    $ yum install openssl-devel python-devel groff graphviz selinux-policy-devel python-twisted-core python-zope-interface python-sphinx libcap-devel libcap-ng-devel unbound unbound-devel rpm-*