Skip to content

Commit d0e0bb1

Browse files
committed
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: coqui-ai/STT#2341
1 parent 690e0a0 commit d0e0bb1

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

roles/compute/tasks/main.yml

+9
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,15 @@
108108
when: ansible_distribution_major_version is version('8', '==')
109109
tags: packages
110110

111+
# Create a symlink to libbz2.so.1.0 to please stt.
112+
# See: https://github.com/coqui-ai/STT/issues/2341
113+
- name: Create symlink for libbz2.so.1.0
114+
ansible.builtin.file:
115+
src: /usr/lib64/libbz2.so.1.0.6
116+
dest: /usr/lib64/libbz2.so.1.0
117+
state: link
118+
tags: packages
119+
111120
- name: Clone environment modules
112121
ansible.builtin.git:
113122
repo: https://github.com/ilri/hpc-environment-modules.git

0 commit comments

Comments
 (0)