Performing the Compilation and Installation
- Go to the root directory of the source code.
1cd /home/source_code/openvswitch-2.14.2
- Compile and install Open vSwitch.
1 2 3
./boot.sh ./configure CFLAGS="-march=armv8-a+lse+crc -fstack-protector-all -fstack-protector-strong -g" --prefix=/usr --sysconfdir=/etc --localstatedir=/var --libdir=/lib64 --enable-ssl --enable-shared --enable-Werror make -j 96 && make install
Generally, you can use the preceding method to perform compilation and configuration. If you need to customize the configuration (such as customizing the installation path and specifying the database file path), perform operations by following instructions in Command Reference for Compiling Configuration Scripts.
- Configure Open vSwitch to be started as a service.
1 2 3 4 5 6
cd rhel/ cp etc_init.d_openvswitch /etc/init.d/openvswitch chmod 755 /etc/init.d/openvswitch mkdir /var/log/openvswitch ln -s /usr/lib64/libevent-2.1.so.6 /usr/lib64/libevent-2.0.so.5 ln -s /usr/lib64/libcrypto.so.1.1 /usr/lib64/libcrypto.so.10
- Start the service.
1service openvswitch start

Parent topic: Installing Open vSwitch