Performing the Compilation and Installation
- Go to the root directory of the source code.
1cd /home/source_code/openvswitch-2.12.0
- Compile and install Open vSwitch.
1 2 3
./boot.sh ./configure CFLAGS="-g -O2 -march=armv8-a+crc" --prefix=/usr --sysconfdir=/etc --localstatedir=/var --libdir=/lib64 --enable-ssl --enable-shared --enable-Werror make -j 96 && make install
- 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: openEuler 20.03