[ovs-discuss] CentOS 8 openvswitch RPM

Arvin arvin at subhosting.net
Sun Feb 2 05:08:14 UTC 2020


Hello Guys,

I was trying to build a RPM of openvswitch on CentOS 8 server using 
https://www.openvswitch.org/releases/openvswitch-2.12.0.tar.gz.

I got the following error while running 'make rpm-fedora'.

====
warning: Macro expanded in comment on line 25: %define kernel 
2.6.40.4-5.fc15.x86_64

error: attempt to use unversioned python, define %__python to 
/usr/bin/python2 or /usr/bin/python3 explicitly
error: line 209:         PYTHON=%{__python}

make: *** [Makefile:8574: rpm-fedora] Error 1
====


So I have defined __python to /usr/bin/pyhton3 in file 
'./rhel/openvswitch-fedora.spec' and ran 'make rpm-fedora' again. Now 
I'm getting following error.

====
warning: Macro expanded in comment on line 25: %define kernel 
2.6.40.4-5.fc15.x86_64

error: Failed build dependencies:
	python-devel is needed by openvswitch-2.12.0-1.el8.x86_64
	python-six is needed by openvswitch-2.12.0-1.el8.x86_64
	python-twisted-core is needed by openvswitch-2.12.0-1.el8.x86_64
	python-zope-interface is needed by openvswitch-2.12.0-1.el8.x86_64
make: *** [Makefile:8574: rpm-fedora] Error 1
====

Some of the python applications are named 'python3-<name>' in CentOS8 
rather than starting with 'python-<name>' which is why dependency 
failing.

Is there any fix for this? Do you have any documentation for building 
RPM of OpenvSwitch on a CentOS 8 server? Please help.

-- 
Best Regards,
Arvin

SubHosting.net - Managed dedicated servers & VPS solutions.
www.subhosting.net


More information about the discuss mailing list