From d0e0bb156fc9e255d92b9109ed8d902cd6906e57 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Mon, 6 Feb 2023 08:30:06 +0300 Subject: [PATCH] roles/compute: create link to libbz2.so.1.0 The stt Python package looks for bzip2 libs as libbz2.so.1, which fails on CentOS Stream 8 (and probably all Red Hat-based distros). We fix this for now using a symlink to the location of the library. See: https://github.com/coqui-ai/STT/issues/2341 --- roles/compute/tasks/main.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/roles/compute/tasks/main.yml b/roles/compute/tasks/main.yml index 9f77ccea..90f4cf48 100644 --- a/roles/compute/tasks/main.yml +++ b/roles/compute/tasks/main.yml @@ -108,6 +108,15 @@ when: ansible_distribution_major_version is version('8', '==') tags: packages +# Create a symlink to libbz2.so.1.0 to please stt. +# See: https://github.com/coqui-ai/STT/issues/2341 +- name: Create symlink for libbz2.so.1.0 + ansible.builtin.file: + src: /usr/lib64/libbz2.so.1.0.6 + dest: /usr/lib64/libbz2.so.1.0 + state: link + tags: packages + - name: Clone environment modules ansible.builtin.git: repo: https://github.com/ilri/hpc-environment-modules.git