While installing the OpenStack Yoga release, after the yum repository setup from the server-world guide, RabbitMQ server installation error showed up as below:
[root@controller ~]# dnf -y install rabbitmq-server memcached nginx-mod-stream Last metadata expiration check: 0:00:34 ago on Mon 14 Nov 2022 10:25:26 AM IST. Error: Problem: package erlang-lager-3.8.0-2.el8.noarch requires erlang-common_test, but none of the providers can be installed - package erlang-common_test-22.3.4.1-1.el8.x86_64 requires erlang-observer(x86-64) = 22.3.4.1-1.el8, but none of the providers can be installed - package erlang-cuttlefish-2.0.11-10.el8.noarch requires erlang-lager, but none of the providers can be installed - package erlang-observer-22.3.4.1-1.el8.x86_64 requires erlang-wx(x86-64) = 22.3.4.1-1.el8, but none of the providers can be installed - package rabbitmq-server-3.8.3-1.el8.x86_64 requires erlang-cuttlefish, but none of the providers can be installed - package erlang-wx-22.3.4.1-1.el8.x86_64 requires libwx_gtk3u_core-3.0.so.0()(64bit), but none of the providers can be installed - package erlang-wx-22.3.4.1-1.el8.x86_64 requires libwx_gtk3u_core-3.0.so.0(WXU_3.0)(64bit), but none of the providers can be installed - package erlang-wx-22.3.4.1-1.el8.x86_64 requires libwx_gtk3u_core-3.0.so.0(WXU_3.0.5)(64bit), but none of the providers can be installed - package erlang-wx-22.3.4.1-1.el8.x86_64 requires libwx_gtk3u_adv-3.0.so.0()(64bit), but none of the providers can be installed - package erlang-wx-22.3.4.1-1.el8.x86_64 requires libwx_gtk3u_aui-3.0.so.0()(64bit), but none of the providers can be installed - package erlang-wx-22.3.4.1-1.el8.x86_64 requires libwx_gtk3u_html-3.0.so.0()(64bit), but none of the providers can be installed - package erlang-wx-22.3.4.1-1.el8.x86_64 requires libwx_gtk3u_stc-3.0.so.0()(64bit), but none of the providers can be installed - package erlang-wx-22.3.4.1-1.el8.x86_64 requires libwx_gtk3u_xrc-3.0.so.0()(64bit), but none of the providers can be installed - package erlang-wx-22.3.4.1-1.el8.x86_64 requires libwx_gtk3u_adv-3.0.so.0(WXU_3.0)(64bit), but none of the providers can be installed - package erlang-wx-22.3.4.1-1.el8.x86_64 requires libwx_gtk3u_aui-3.0.so.0(WXU_3.0)(64bit), but none of the providers can be installed - package erlang-wx-22.3.4.1-1.el8.x86_64 requires libwx_gtk3u_html-3.0.so.0(WXU_3.0)(64bit), but none of the providers can be installed - package erlang-wx-22.3.4.1-1.el8.x86_64 requires libwx_gtk3u_stc-3.0.so.0(WXU_3.0)(64bit), but none of the providers can be installed - package erlang-wx-22.3.4.1-1.el8.x86_64 requires libwx_gtk3u_xrc-3.0.so.0(WXU_3.0)(64bit), but none of the providers can be installed - conflicting requests - nothing provides libSDL2-2.0.so.0()(64bit) needed by wxGTK3-3.0.5.1-1.el8.x86_64 (try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
Solution: PowerTools is a repository that acts as a container for libraries and developer tools. Some of the most popular EPEL packages are dependent on PowerTools packages. Below are some 3 ways to enable the PowerTools repo
Option 1:
Step 1: Firstly if you haven’t installed the EPEL repository, install it.
# dnf -y install epel-release
Step 2: Open the file /etc/yum.repos.d/CentOS-Stream-PowerTools.repo
and make enabled = 1
[powertools] name=CentOS Stream $releasever - PowerTools mirrorlist=http://mirrorlist.centos.org/?release=$stream&arch=$basearch&repo=PowerTools&infra=$infra #baseurl=http://mirror.centos.org/$contentdir/$stream/PowerTools/$basearch/os/ gpgcheck=1 enabled=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
[OR]
Option 2:
Step 1: Install the dnf-plugins package
# dnf -y install dnf-plugins-core
Step 2: Install the EPEL repository
# dnf -y install epel-release
Step 3: Enable the PowerTools repository using config–manager.
# dnf config-manager --set-enabled powertools
[OR]
Option 3:
Step 1: Install the EPEL repository
# dnf -y install epel-release
Step 2: Install the RabbitMQ server with power tools enabled
# dnf --enablerepo=powertools -y install rabbitmq-server memcached
Now the installation will go through without any error
# dnf -y install rabbitmq-server memcached nginx-mod-stream